helm/os/arch/.config/bspwm/bspwmrc
2016-12-24 19:09:20 -05:00

72 lines
1.7 KiB
Bash
Executable file

#!/bin/sh
#
# Displays
#
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/{desktop,web,code,art,games}
[[ $nmon > 1 ]] && bspc monitor R -d R/{desktop,music,chat}
[[ $nmon > 2 ]] && bspc monitor L -d L/{media,chat}
;;
esac
#
# Appearance
#
declare -A COLOR
END=15
for ((i=0;i<=END;i++)); do
COLOR[$i]=$(xrdb -query | awk "/^\*\.color$i:/ {print \$2}")
done
bspc config normal_border_color "${COLOR[0]}"
bspc config active_border_color "${COLOR[0]}"
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
bspc config gapless_monocle true
bspc config borderless_monocle true
bspc config paddingless_monocle true
bspc config click_to_focus true
bspc config pointer_modifier mod4
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner
#
# Rules
#
bspc rule -a scratchpad state=floating sticky=on center=on
bspc rule -a Emacs split_ratio=0.25 state=tiled
bspc rule -a Gimp desktop=^6
bspc rule -a mplayer2 state=floating
bspc rule -a Vlc state=floating
bspc rule -a feh state=fullscreen
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
bspc rule -a love state=floating center=on sticky=on
bspc rule -a SimpleScreenRecorder state=floating center=on sticky=on