dotfiles/.config/bspwm/bspwmrc
2025-10-25 15:09:23 -04:00

50 lines
1.2 KiB
Fish
Executable file

#!/usr/bin/fish
#if ! test -e ~/.bspwm_no_lock
# slock &
# touch ~/.bspwm_no_lock
#end
#wmname LG3D
if test $DISPLAY = ":0"
xset s off -dpms
killall -q picom sxhkd polybar ssh-agent
picom -b
xfsettingsd --disable-wm-check --daemon
pgrep deskflow; or deskflow &
eval (ssh-agent -c)
~/.fehbg
else
picom -b --backend xrender
feh --no-fehbg --bg-scale '/home/m/sync/maelstrom.jpg'
end
sxhkd &
polybar m-bar &
pgrep pasystray; or pasystray &
bspc monitor -d I II III IV V
bspc config border_width 2
bspc config window_gap 10
bspc config top_padding -10
bspc config split_ratio 0.52
bspc config borderless_monocle false
bspc config gapless_monocle false
bspc config focused_border_color '#CBC093'
bspc rule -a 'firefox:*:Picture-in-Picture' sticky=on
bspc rule -a 'origin.exe:*' state=floating
bspc rule -a 'osu!:*' state=floating rectangle=1600x1200
bspc rule -a 'mpv:*' rectangle=640x360+1270+710
bspc rule -a 'streamlink-twitch-gui:*' state=floating
# bspc rule -a 'mpv:*' sticky=on
# bspc rule -a Gimp desktop='^8' state=floating follow=on
# bspc rule -a Chromium desktop='^2'
# bspc rule -a mplayer2 state=floating
# bspc rule -a Kupfer.py focus=on
# bspc rule -a Screenkey manage=off