2017-01-03 00:47:02 -08:00
|
|
|
#!/usr/bin/bash
|
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]}"
|
2016-12-24 16:09:20 -08:00
|
|
|
bspc config active_border_color "${COLOR[0]}"
|
2016-12-25 11:23:26 -08:00
|
|
|
bspc config focused_border_color "${COLOR[4]}"
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-12-24 16:09:20 -08:00
|
|
|
bspc config split_ratio 0.50
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
bspc config borderless_monocle true
|
2017-01-16 19:35:35 -08:00
|
|
|
bspc config paddingless_monocle true
|
2016-12-24 16:09:20 -08:00
|
|
|
bspc config click_to_focus true
|
2016-12-23 00:17:00 -08:00
|
|
|
|
2016-12-24 16:09:20 -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
|
|
|
|
2017-01-03 00:47:02 -08:00
|
|
|
bspc config remove_disabled_monitors false
|
|
|
|
bspc config remove_unplugged_monitors true
|
|
|
|
|
|
|
|
bspc config border_width 0
|
2017-03-16 12:10:09 -07:00
|
|
|
# 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
|
|
|
|
bspc config window_gap 1
|
|
|
|
bspc config top_padding 0
|
|
|
|
bspc config bottom_padding 0
|
|
|
|
bspc config left_padding 0
|
|
|
|
bspc config right_padding 0
|
2017-01-03 00:47:02 -08:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Displays
|
|
|
|
#
|
|
|
|
|
|
|
|
nmon=$(bspc query -M | wc -l)
|
2017-03-16 12:10:09 -07:00
|
|
|
primary=$(bspc query -M -m prmary)
|
2017-01-03 00:47:02 -08:00
|
|
|
host=$(hostname)
|
|
|
|
case $host in
|
|
|
|
triton*)
|
2017-05-05 12:31:39 -07:00
|
|
|
MONITOR=DVI-I-1
|
2017-04-26 15:52:37 -07:00
|
|
|
[[ $nmon > 1 ]] && bspc monitor HDMI-0 -d HDMI-0/1
|
|
|
|
[[ $nmon > 2 ]] && bspc monitor DVI-D-0 -d DVI-D-0/1
|
2017-01-03 00:47:02 -08:00
|
|
|
|
2017-05-04 04:51:11 -07:00
|
|
|
;;
|
|
|
|
proteus*)
|
2017-05-05 12:31:39 -07:00
|
|
|
MONITOR=LVDS-0
|
2017-01-03 00:47:02 -08:00
|
|
|
;;
|
2017-05-05 12:31:39 -07:00
|
|
|
halimede*)
|
2017-05-05 15:59:39 -07:00
|
|
|
MONITOR=HDMI-0
|
|
|
|
;;
|
2017-01-03 00:47:02 -08:00
|
|
|
esac
|
2017-05-04 04:51:11 -07:00
|
|
|
if [[ $MONITOR ]]; then
|
|
|
|
bspc config -m $MONITOR top_padding 30
|
|
|
|
bspc monitor $MONITOR -d {1,2,3,4,5}
|
|
|
|
~/.config/polybar/run.sh
|
2017-05-05 12:31:39 -07:00
|
|
|
|
|
|
|
export MONITOR
|
2017-05-04 04:51:11 -07:00
|
|
|
fi
|
2017-04-29 11:40:38 -07:00
|
|
|
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
# Rules
|
|
|
|
#
|
|
|
|
|
2016-12-30 00:05:14 -08:00
|
|
|
bspc rule -r '*'
|
2017-01-08 21:45:31 -08:00
|
|
|
bspc rule -a URxvt:urxvt-scratch state=floating sticky=on center=on monitor=C
|
2017-04-24 23:39:49 -07:00
|
|
|
bspc rule -a URxvt:urxvt-fuzzy state=floating sticky=on center=on monitor=C
|
2017-01-03 21:42:16 -08:00
|
|
|
bspc rule -a Emacs split_ratio=0.25 border=off state=fullscreen
|
|
|
|
bspc rule -a Emacs:org-capture border=off state=floating
|
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
|
2017-05-10 05:28:25 -07:00
|
|
|
bspc rule -a mpv state=floating center=on
|
2017-01-03 00:47:02 -08:00
|
|
|
bspc rule -a Vlc state=floating monitor=C center=on
|
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
|
2016-12-30 00:05:14 -08:00
|
|
|
bspc rule -a Chromium monitor=L
|
|
|
|
bspc rule -a Firefox monitor=L
|