dotfiles/modules/desktop/bspwm/bspwmrc

37 lines
874 B
Text
Raw Normal View History

2021-09-09 21:55:28 +02:00
#!/usr/bin/env bash
# MONITORS #
2021-09-30 19:42:27 +02:00
monitors=($(bspc query -M --names))
desktops=$(expr 10 / ${#monitors[@]})
start=1
end=$desktops
for monitor in ${monitors[@]}; do
bspc monitor $monitor -d $(seq -s ' ' $start $end)
start=$(expr $start + $desktops)
end=$(expr $end + $desktops)
done
2021-09-09 21:55:28 +02:00
# CONFIGURATION #
bspc config border_width 2
bspc config window_gap 5
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
# Dracula theme #
bspc config focused_border_color "#bd93f9"
# WINDOW RULES #
bspc rule -a Steam state=tiled
bspc rule -a Zathura state=tiled
bspc rule -a Emacs state=tiled
2021-09-29 13:35:39 +02:00
bspc rule -a 'Emacs:emacs-everywhere' state=floating sticky=on
bspc rule -a feh state=floating
2021-09-09 21:55:28 +02:00
# AUTOSTART #
[[ ! $(pidof -x sxhkd) ]] && sxhkd &
2021-09-12 15:12:11 +02:00
feh --bg-fill ~/.config/wallpaper/dracula.png
2021-09-09 21:55:28 +02:00
systemctl --user start polybar