#! /bin/sh

xsetroot -cursor_name left_ptr

# Compose key
setxkbmap -option compose:rctrl

# Polybar
~/.config/polybar/launch.sh > /dev/null

# Picom
picom --config ~/.config/picom/picom.conf --backend xrender &

# Wallpaper
feh --bg-center ~/dotfiles/wallpaper.jpg

pgrep -x mconnect > /dev/null || mconnect -d > /dev/null &

# Kill sxhkd & start a new instance
pgrep -x sxhkd > /dev/null || sxhkd &

# Define workspaces
bspc monitor -d I II III IV V VI VII VIII IX X

bspc config border_width	1
bspc config window_gap		6

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

bspc rule -a SchildiChat desktop=^5
bspc rule -a jetbrains-studio state=floating border=off follow=on
bspc rule -a LibreWolf desktop=^3
bspc rule -a Chromium desktop=^3
bspc rule -a VSCodium desktop=^4
bspc rule -a Spotify desktop=^2
bspc rule -a discord desktop=^1
bspc rule -a Psst desktop=^2
bspc rule -a WebCord desktop=^1
bspc rule -a Pavucontrol state=floating
