2024-02-09 08:53:15 -06:00

54 lines
1.3 KiB
Bash
Executable File

#!/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
bspc rule -a Thunar state=floating
bspc rule -a Xarchiver state=floating
bspc rule -a L3afpad state=floating
bspc rule -a copyq state=floating
# --------- #
# autostart #
# --------- #
# screen locker
xset s 600 5
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
# tailscale systray icon
pgrep -f tailscale-systray > /dev/null || tailscale-systray &
# notifications manager
pgrep -x dunst > /dev/null || dunst &
# notify on song changes
pgrep -x notify.sh > /dev/null || ~/.config/bspwm/scripts/notify.sh &
# polybar
~/.config/bspwm/scripts/launch-polybar.sh &
# clipboard manager
pgrep -x copyq > /dev/null || ~/.config/bspwm/scripts/copyq.sh &
# compositor
killall picom
picom --no-fading-openclose &