This commit is contained in:
Daniel Flanagan 2016-08-30 17:14:27 -05:00
parent 8d384a4dfc
commit 1ce4bbf075
5 changed files with 11 additions and 2 deletions

4
env/sh/bashrc vendored
View file

@ -25,6 +25,7 @@ if [ -t 0 ]; then
# navigation aliases # navigation aliases
alias cd..="cd .." alias cd..="cd .."
alias cdd="cd \"$DOTFILES_PATH\""
alias ..="cd .." alias ..="cd .."
alias ...="cd ../.." alias ...="cd ../.."
alias ....="cd ../../.." alias ....="cd ../../.."
@ -49,6 +50,7 @@ if [ -t 0 ]; then
# networking aliases # networking aliases
alias p="ping 8.8.8.8" alias p="ping 8.8.8.8"
alias wifi-menu="sudo wifi-menu"
alias wifi="sudo systemctl start netctl-auto@$(for wli in /sys/class/net/wl*; do echo $(basename $wli); break; done)" alias wifi="sudo systemctl start netctl-auto@$(for wli in /sys/class/net/wl*; do echo $(basename $wli); break; done)"
# emacs aliases # emacs aliases
@ -166,4 +168,6 @@ if [ -t 0 ]; then
if [ -a "$HOME/.bashrc_env" ]; then if [ -a "$HOME/.bashrc_env" ]; then
. "$HOME/.bashrc_env" . "$HOME/.bashrc_env"
fi fi
cd "$HOME/.."
fi fi

3
env/wm/bspwm_config vendored
View file

@ -32,3 +32,6 @@ for mon in $(bspc query -M); do
i=$((max + 1)) i=$((max + 1))
done done
if [[ -f "$HOME/.bspwm_env" ]]; then
source "$HOME/.bspwm_env"
fi

View file

@ -38,6 +38,7 @@ fi
# get width of our main monitor # get width of our main monitor
WIDTH=`xrandr -q | egrep '(^| )connected( |$)' | tr 'x' '\n' | head -n 1 | awk '{print $NF}'` WIDTH=`xrandr -q | egrep '(^| )connected( |$)' | tr 'x' '\n' | head -n 1 | awk '{print $NF}'`
WIDTH=$((WIDTH-BAR_MARGIN-BAR_MARGIN)) WIDTH=$((WIDTH-BAR_MARGIN-BAR_MARGIN))
OFFSET=$((BAR_MARGIN+BAR_OFFSET))
BAR_B="" BAR_B=""
if [ $BAR_TOP -eq 1 ]; then if [ $BAR_TOP -eq 1 ]; then
@ -49,4 +50,4 @@ fi
source "$BAR_PATH/colors.bash" source "$BAR_PATH/colors.bash"
cat "$BAR_FIFO" | "$BAR_PATH/formatter.bash" | \ cat "$BAR_FIFO" | "$BAR_PATH/formatter.bash" | \
lemonbar $BAR_B -g "$WIDTH"x"$BAR_HEIGHT"+"$BAR_MARGIN"+"$POS_Y" -u "$BAR_BORDER_WIDTH" -f "$BAR_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B"$COLOR_BACKGROUND" -n "$BAR_WID" lemonbar $BAR_B -g "$WIDTH"x"$BAR_HEIGHT"+"$OFFSET"+"$POS_Y" -u "$BAR_BORDER_WIDTH" -f "$BAR_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B"$COLOR_BACKGROUND" -n "$BAR_WID"

2
env/x/xinitrc vendored
View file

@ -21,7 +21,7 @@ if [ "$BAR_ON_XINIT" -eq 1 ]; then
fi fi
# fire up wm # fire up wm
unclutter & # unclutter &
sxhkd & sxhkd &
urxvtd & urxvtd &
exec bspwm exec bspwm

View file

@ -23,6 +23,7 @@ export BAR_FONT_FAMILY="$PRIMARY_FONT_FAMILY_WITH_SIZE"
export BAR_UNDERLINE=1 export BAR_UNDERLINE=1
# export BAR_MARGIN=$WINDOW_GAP # export BAR_MARGIN=$WINDOW_GAP
export BAR_MARGIN=700 export BAR_MARGIN=700
export BAR_OFFSET=0
export BAR_WID="wmpanel" export BAR_WID="wmpanel"
export TOP_BAR_PADDING=0 export TOP_BAR_PADDING=0