2016-11-03 10:56:25 -07:00
|
|
|
#!/bin/sh
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-11-20 17:34:45 -08:00
|
|
|
bspc config border_width 1
|
|
|
|
bspc config window_gap 20
|
|
|
|
bspc config top_padding 80
|
|
|
|
bspc config bottom_padding 50
|
|
|
|
bspc config left_padding 50
|
|
|
|
bspc config right_padding 50
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
bspc config split_ratio 0.50
|
|
|
|
bspc config gapless_monocle true
|
2016-11-04 17:50:32 -07:00
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config paddingless_monocle false
|
2016-11-03 10:56:25 -07:00
|
|
|
bspc config click_to_focus true
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-11-20 17:34:45 -08:00
|
|
|
bspc config pointer_modifier mod4
|
|
|
|
bspc config pointer_action1 move
|
|
|
|
bspc config pointer_action2 resize_side
|
|
|
|
bspc config pointer_action3 resize_corner
|
|
|
|
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Appearance
|
|
|
|
#
|
|
|
|
|
2016-11-04 17:50:32 -07:00
|
|
|
declare -A COLOR
|
|
|
|
END=15
|
|
|
|
for ((i=0;i<=END;i++)); do
|
|
|
|
COLOR[$i]=$(xrdb -query | awk "/^\*\.color$i:/ {print \$2}")
|
|
|
|
done
|
|
|
|
|
2016-11-20 17:34:45 -08:00
|
|
|
bspc config normal_border_color "${COLOR[0]}"
|
|
|
|
bspc config focused_border_color "#263f4a"
|
2016-11-04 17:50:32 -07:00
|
|
|
bspc config active_border_color "${COLOR[13]}"
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Displays
|
|
|
|
#
|
|
|
|
|
2016-11-05 12:29:30 -07:00
|
|
|
NMON=$(bspc query -M | wc -l)
|
2016-11-20 19:21:56 -08:00
|
|
|
bspc monitor ${monitors} -d 1/{desktop,code,web,chat,art,media,music}
|
2016-11-05 08:28:22 -07:00
|
|
|
i=2
|
|
|
|
for monitor in $(bspc query -M | tail -n +2); do
|
2016-11-20 19:21:56 -08:00
|
|
|
bspc monitor $monitor -n "$i" -d $i/{desktop,web,code,chat}
|
2016-10-19 07:56:37 -07:00
|
|
|
let i++
|
|
|
|
done
|
|
|
|
unset i
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Rules
|
|
|
|
#
|
|
|
|
|
2016-11-03 10:56:25 -07:00
|
|
|
bspc rule -a scratchpad state=floating sticky=on center=on
|
2016-11-20 17:34:45 -08:00
|
|
|
bspc rule -a Emacs split_ratio=0.25 state=tiled
|
2016-11-03 10:56:25 -07:00
|
|
|
bspc rule -a Gimp desktop=^6
|
2016-10-19 07:56:37 -07:00
|
|
|
bspc rule -a mplayer2 state=floating
|
2016-11-03 10:56:25 -07:00
|
|
|
bspc rule -a Vlc state=floating
|
2016-12-16 20:11:24 -08:00
|
|
|
bspc rule -a feh state=fullscreen
|
2016-10-19 07:56:37 -07:00
|
|
|
bspc rule -a Kupfer.py focus=on
|
|
|
|
bspc rule -a Screenkey manage=off
|
2016-11-04 17:50:41 -07:00
|
|
|
bspc rule -a love state=floating center=on sticky=on
|
2016-11-20 17:34:45 -08:00
|
|
|
bspc rule -a SimpleScreenRecorder state=floating center=on sticky=on
|