os/arch (bspwm): adjust config + start lemonbar from bspwmrc

This commit is contained in:
Henrik Lissner 2017-01-03 03:47:02 -05:00
parent 3144792277
commit 77825f848f

View file

@ -1,25 +1,7 @@
#!/bin/sh #!/usr/bin/bash
# # lemonbar
# Displays $HOME/.config/panel/panel 2>&1 >$HOME/.config/panel/panel.log &
#
touch /tmp/bspwm-init
nmon=$(bspc query -M | wc -l)
host=$(hostname)
case $host in
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 monitor C -d C/{1,2,3,4,5}
[[ $nmon > 1 ]] && bspc monitor R -d R/1
[[ $nmon > 2 ]] && bspc monitor L -d L/1
;;
esac
# #
@ -36,17 +18,10 @@ bspc config normal_border_color "${COLOR[0]}"
bspc config active_border_color "${COLOR[0]}" bspc config active_border_color "${COLOR[0]}"
bspc config focused_border_color "${COLOR[4]}" bspc config focused_border_color "${COLOR[4]}"
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 bspc config split_ratio 0.50
bspc config gapless_monocle true bspc config gapless_monocle true
bspc config borderless_monocle true bspc config borderless_monocle true
bspc config paddingless_monocle true bspc config paddingless_monocle false
bspc config click_to_focus true bspc config click_to_focus true
bspc config pointer_modifier mod4 bspc config pointer_modifier mod4
@ -54,17 +29,50 @@ bspc config pointer_action1 move
bspc config pointer_action2 resize_side bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner bspc config pointer_action3 resize_corner
bspc config remove_disabled_monitors false
bspc config remove_unplugged_monitors true
bspc config border_width 0
bspc config window_gap 16
bspc config top_padding 32
bspc config bottom_padding 34
bspc config left_padding 32
bspc config right_padding 32
#
# Displays
#
nmon=$(bspc query -M | wc -l)
host=$(hostname)
case $host in
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 monitor C -d C/{1,2,3,4,5}
[[ $nmon > 1 ]] && bspc monitor R -d R/1
[[ $nmon > 2 ]] && bspc monitor L -d L/1
bspc config -m C top_padding 64
;;
esac
# #
# Rules # Rules
# #
bspc rule -r '*' bspc rule -r '*'
bspc rule -a scratchpad state=floating sticky=on center=on bspc rule -a scratchpad state=floating sticky=on center=on monitor=C
bspc rule -a Emacs split_ratio=0.25 bspc rule -a Emacs split_ratio=0.25 border=off state=tiled
bspc rule -a Gimp desktop=^6 bspc rule -a Gimp desktop=^6
bspc rule -a mplayer2 state=floating bspc rule -a mplayer2 state=floating
bspc rule -a Vlc state=floating bspc rule -a Vlc state=floating monitor=C center=on
bspc rule -a feh state=fullscreen bspc rule -a feh state=fullscreen
bspc rule -a Kupfer.py focus=on bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off bspc rule -a Screenkey manage=off