#! /bin/sh

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

bspc monitor -d I II III IV V VI VII VIII IX X
# bspc monitor eDP1 -d I II III IV
# bspc monitor DP1 -d V VI VII VIII IX X

bspc config border_width 6
bspc config window_gap 15
bspc config top_padding 60

bspc config split_ratio 0.55
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config pointer_follows_focus true
bspc config focus_follows_pointer true

bspc rule -a Gimp desktop='^8' state=floating follow=on
bspc rule -a Chromium desktop='^2'
bspc rule -a firefox desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a Yad state=floating
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
bspc rule -a gl state=floating
bspc rule -a Gl state=floating
bspc rule -a mpv state=floating

# Border
# dracula blue
bspc config focused_border_color "#bd93f9"
bspc config normal_border_color "#073642"
bspc config active_border_color "#073642"

#
# Autostart
#
# Set display from arandr saved script
sh ~/.screenlayout/monitor.sh &
# Notifications
/usr/bin/dunst &
# Polkit
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# Wallpaper
# nitrogen --restore &
# Dex
dex -a -s /etc/xdg/autostart/:~/.config/autostart/
# Picom
picom --config ~/.config/picom/picom.conf &
# Network Applet
nm-applet --indicator &

# SmoothVideoProject
SVPManager &

# screensaver
xss-lock -- xscreensaver-command -lock &

# Bar
# ~/.config/polybar/launch.sh &
~/SudacodeRice/scripts/launch.sh

# Cursor
# xsetroot -cursor_name left_ptr &

# Low battery notifier
# ~/.config/bspwm/scripts/low_bat_notifier.sh