os/arch (bspwm): polish config
This commit is contained in:
parent
9025fe1e73
commit
b949486fef
|
@ -1,22 +1,25 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
bspc config border_width 2
|
#
|
||||||
bspc config window_gap 20
|
# Displays
|
||||||
bspc config top_padding 70
|
#
|
||||||
bspc config bottom_padding 40
|
|
||||||
bspc config left_padding 50
|
|
||||||
bspc config right_padding 50
|
|
||||||
|
|
||||||
bspc config split_ratio 0.50
|
touch /tmp/bspwm-init
|
||||||
bspc config gapless_monocle true
|
nmon=$(bspc query -M | wc -l)
|
||||||
bspc config borderless_monocle true
|
host=$(hostname)
|
||||||
bspc config paddingless_monocle true
|
case $host in
|
||||||
bspc config click_to_focus true
|
triton*)
|
||||||
|
{
|
||||||
|
bspc monitor DVI-I-1 -n C
|
||||||
|
bspc monitor HDMI-0 -n R
|
||||||
|
bspc monitor DVI-D-0 -n L
|
||||||
|
} 2>&1 >/dev/null
|
||||||
|
|
||||||
bspc config pointer_modifier mod4
|
bspc monitor C -d C/{desktop,web,code,art,games}
|
||||||
bspc config pointer_action1 move
|
[[ $nmon > 1 ]] && bspc monitor R -d R/{desktop,music,chat}
|
||||||
bspc config pointer_action2 resize_side
|
[[ $nmon > 2 ]] && bspc monitor L -d L/{media,chat}
|
||||||
bspc config pointer_action3 resize_corner
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -30,28 +33,26 @@ for ((i=0;i<=END;i++)); do
|
||||||
done
|
done
|
||||||
|
|
||||||
bspc config normal_border_color "${COLOR[0]}"
|
bspc config normal_border_color "${COLOR[0]}"
|
||||||
bspc config focused_border_color "#263f4a"
|
bspc config active_border_color "${COLOR[0]}"
|
||||||
bspc config active_border_color "${COLOR[13]}"
|
bspc config focused_border_color "#263f5a"
|
||||||
|
|
||||||
|
bspc config border_width 8
|
||||||
|
bspc config window_gap 18
|
||||||
|
bspc config top_padding 50
|
||||||
|
bspc config bottom_padding 30
|
||||||
|
bspc config left_padding 30
|
||||||
|
bspc config right_padding 30
|
||||||
|
|
||||||
#
|
bspc config split_ratio 0.50
|
||||||
# Displays
|
bspc config gapless_monocle true
|
||||||
#
|
bspc config borderless_monocle true
|
||||||
|
bspc config paddingless_monocle true
|
||||||
|
bspc config click_to_focus true
|
||||||
|
|
||||||
host=$(hostname)
|
bspc config pointer_modifier mod4
|
||||||
case $host in
|
bspc config pointer_action1 move
|
||||||
triton*)
|
bspc config pointer_action2 resize_side
|
||||||
bspc monitor DVI-I-1 -n 1
|
bspc config pointer_action3 resize_corner
|
||||||
bspc monitor HDMI-0 -n 2
|
|
||||||
bspc monitor DVI-D-0 -n 3
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
nmon=$(bspc query -M | wc -l)
|
|
||||||
bspc monitor 1 -d 1/{desktop,web,code,art,games}
|
|
||||||
[[ $nmon > 2 ]] && bspc monitor 2 -d 2/{desktop,music,chat}
|
|
||||||
[[ $nmon > 3 ]] && bspc monitor 3 -d 3/{desktop,media}
|
|
||||||
[[ $nmon > 4 ]] && bspc monitor 4 -d 4/{desktop,web,chat,media}
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue