#! /bin/sh 

pgrep -x sxhkd > /dev/null || sxhkd &
#sxhkd &

#Swallow
pgrep ~/bin/wm/bspswallow || ~/bin/wm/bspswallow &


# not sure if I can count using Roman Numerals :)
bspc monitor -d I II III IV V VI VII VIII IX X

#bspc config ignore_ewmh_fullscreen all
bspc config ignore_ewmh_focus true
bspc config window_gap            0
bspc config border_width          0
bspc config normal_border_color  '#aaaaaa'
bspc config focused_border_color "#FFFFFF"
bspc config presel_feedback_color "#bbbbbb"

bspc config directional_focus_tightness low

bspc config split_ratio           0.52 
bspc config borderless_monocle    true 
bspc config gapless_monocle       true 
bspc config single_monocle        true
bspc config focus_follows_pointer true
bspc config pointer_follows_focus true

# bspc rule -a Gimp desktop='^8' state=floating follow=on 
#bspc rule -a Chromium desktop='^1' 

# these 2 rules are removed after the program starts, in ~/bin/autostart
bspc rule -a Thunderbird desktop='^8' 
bspc rule -a KeePassXC desktop='^8' 
# the confirm dialog
bspc rule -a "KeePassXC:*:Confirm Auto-Type" sticky=on
bspc rule -a "Dragon-drag-and-drop" sticky=on

bspc rule -a Dino desktop='^8' 
bspc rule -a Peek state=floating 
bspc rule -a Connman-gtk state=floating 
bspc rule -a mplayer2 state=floating 
bspc rule -a Emacs state=tiled
bspc rule -a Zathura state=tiled
bspc rule -a Kupfer.py focus=on 
bspc rule -a Screenkey manage=off 

bspc rule -a wmpin sticky=on

bspc rule -a Floating state=floating
bspc rule -a \*:\*:org-capture state=floating

~/bin/autostart 
xsetroot -cursor_name left_ptr &
~/.config/polybar/forest/launch.sh  &
