2020-02-09 00:03:58 -08:00
|
|
|
#!/usr/bin/env bash
|
2019-08-06 10:56:54 -07:00
|
|
|
|
|
|
|
export MONITOR=$(xrandr -q | grep primary | cut -d' ' -f1)
|
|
|
|
export MONITORS=( $(xrandr -q | grep ' connected' | cut -d' ' -f1) )
|
|
|
|
MONITOR=${MONITOR:-${MONITORS[0]}}
|
|
|
|
|
|
|
|
# Only have workspaces for primary monitor
|
2020-02-09 00:03:58 -08:00
|
|
|
bspc monitor $MONITOR -d {1,2,3,4,5,6}
|
2019-08-06 10:56:54 -07:00
|
|
|
|
|
|
|
bspc config remove_disabled_monitors true
|
|
|
|
bspc config remove_unplugged_monitors true
|
|
|
|
|
|
|
|
|
|
|
|
# Rules
|
|
|
|
bspc rule -r '*'
|
|
|
|
|
|
|
|
bspc rule -a Pinentry state=floating center=on
|
2020-02-09 00:03:58 -08:00
|
|
|
bspc rule -a Emacs split_ratio=0.28 state=tiled
|
2019-08-06 10:56:54 -07:00
|
|
|
bspc rule -a Firefox split_ratio=0.32
|
|
|
|
bspc rule -a feh state=fullscreen
|
2019-12-03 21:00:32 -08:00
|
|
|
bspc rule -a 'Emacs:org*' state=floating
|
|
|
|
bspc rule -a 'Emacs:scratch' state=floating
|
2020-02-09 00:03:58 -08:00
|
|
|
bspc rule -a '*:scratch' state=floating sticky=on center=on border=off rectangle=1000x600+0+0
|
2019-08-06 10:56:54 -07:00
|
|
|
|
|
|
|
#
|
|
|
|
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
|
|
|
source "$file"
|
|
|
|
done
|