#!/bin/sh

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

bspc monitor DP-2 -d 1 2 3 4 5
bspc monitor HDMI-0 -d 6 7 8 9 0

bspc config remove_disabled_monitors false
bspc config remove_unplugged_monitors false

bspc config border_width         2
bspc config window_gap          12

bspc config split_ratio          0.52
bspc config borderless_monocle   true
bspc config gapless_monocle      true

bspc rule -a Lxappearance state=floating
bspc rule -a Nvidia-settings state=floating
bspc rule -a openrgb state=floating
bspc rule -a Sxiv state=floating
bspc rule -a Dconf-editor state=floating

# start screen locker
xset s 600 5
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &

pgrep -x dunst > /dev/null || dunst &

pgrep -x notify.sh > /dev/null || ~/.config/bspwm/scripts/notify.sh &

~/.config/bspwm/scripts/launch-polybar.sh &

pgrep -x greenclip > /dev/null || greenclip daemon &

pgrep -x picom > /dev/null || picom &
