Fix dock/undock scripts
This commit is contained in:
parent
0a94eafad3
commit
5b1c018e90
4 changed files with 21 additions and 14 deletions
|
@ -42,16 +42,16 @@ if [ $# -gt 0 ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $BAR_ON_TOP -eq 1 ]; then
|
if [ "$BAR_ON_TOP" -eq 1 ]; then
|
||||||
export BAR_BOTTOM="false"
|
export BAR_BOTTOM="false"
|
||||||
export POS_Y=$GAP
|
export POS_Y=$GAP
|
||||||
bspc config -m ${BAR_MONITOR} top_padding "$EHEIGHT"
|
bspc config -m "${BAR_MONITOR}" top_padding "$EHEIGHT"
|
||||||
bspc config -m ${BAR_MONITOR} bottom_padding "0"
|
bspc config -m "${BAR_MONITOR}" bottom_padding "0"
|
||||||
else
|
else
|
||||||
export BAR_BOTTOM="true"
|
export BAR_BOTTOM="true"
|
||||||
export POS_Y=$GAP
|
export POS_Y=$GAP
|
||||||
bspc config -m ${BAR_MONITOR} top_padding "0"
|
bspc config -m "${BAR_MONITOR}" top_padding "0"
|
||||||
bspc config -m ${BAR_MONITOR} bottom_padding "$EHEIGHT"
|
bspc config -m "${BAR_MONITOR}" bottom_padding "$EHEIGHT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# bspc
|
# bspc
|
||||||
|
|
|
@ -14,15 +14,17 @@ if [ -f "$HOME/.env_bspwm" ]; then
|
||||||
source "$HOME/.env_bspwm"
|
source "$HOME/.env_bspwm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bspc config normal_border_color "$(xrdb -query | sed -ne 's/.*background:\s*//p')"
|
bspc config normal_border_color "$(xrdb -query | sed -ne 's/.*background:\s*//p')"
|
||||||
bspc config focused_border_color "$(xrdb -query | sed -ne 's/.*color0\?4:\s*//p')"
|
bspc config focused_border_color "$(xrdb -query | sed -ne 's/.*color0\?4:\s*//p')"
|
||||||
bspc config active_border_color "$(xrdb -query | sed -ne 's/.*color0\?4:\s*//p')"
|
bspc config active_border_color "$(xrdb -query | sed -ne 's/.*color0\?4:\s*//p')"
|
||||||
bspc config presel_feedback_color "$(xrdb -query | sed -ne 's/.*color0\?4:\s*//p')"
|
bspc config presel_feedback_color "$(xrdb -query | sed -ne 's/.*color0\?4:\s*//p')"
|
||||||
bspc config border_width "$BORDER_WIDTH"
|
bspc config border_width "$BORDER_WIDTH"
|
||||||
bspc config split_ratio 0.3333333
|
bspc config split_ratio 0.3333333
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
bspc config gapless_monocle true
|
bspc config gapless_monocle true
|
||||||
bspc config pointer_modifier "mod4"
|
bspc config pointer_modifier "mod4"
|
||||||
|
bspc config remove_unplugged_monitors true
|
||||||
|
bspc config remove_disabled_monitors true
|
||||||
|
|
||||||
bspc config window_gap "$WINDOW_GAP"
|
bspc config window_gap "$WINDOW_GAP"
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,7 @@
|
||||||
resrc
|
resrc
|
||||||
"${DOTFILES_PATH}/de/x/loadresources"
|
"${DOTFILES_PATH}/de/x/loadresources"
|
||||||
autorandr --change
|
autorandr --change
|
||||||
|
"${DOTFILES_PATH}/de/bspwm/bspwmrc"
|
||||||
|
"${DOTFILES_PATH}/de/x/loadresources"
|
||||||
restartbar
|
restartbar
|
||||||
"${HOME}/.fehbg"
|
"${HOME}/.fehbg"
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
resrc
|
||||||
"${DOTFILES_PATH}/de/x/loadresources" lodpi
|
"${DOTFILES_PATH}/de/x/loadresources" lodpi
|
||||||
autorandr --change
|
autorandr --change
|
||||||
|
"${DOTFILES_PATH}/de/bspwm/bspwmrc"
|
||||||
|
"${DOTFILES_PATH}/de/x/loadresources" lodpi
|
||||||
restartbar
|
restartbar
|
||||||
"${HOME}/.fehbg"
|
"${HOME}/.fehbg"
|
||||||
|
|
Reference in a new issue