nixos-config/templates/themes/fair-and-square/{{ cookiecutter.slug }}/config/bspwm/bspwmrc

31 lines
777 B
Plaintext
Raw Normal View History

2020-12-29 14:29:29 +00:00
#!/usr/bin/env sh
2020-08-17 04:46:20 +00:00
# Open all of the programs needed.
2020-10-06 22:24:55 +00:00
pkill polybar; polybar "fds-bar" &
pkill feh; feh --bg-fill $HOME/.background-image
pkill dunst; dunst &
2020-08-17 04:46:20 +00:00
2020-10-06 22:24:55 +00:00
# Removing all rules at startup to prevent duplicating rules.
2020-08-17 04:46:20 +00:00
bspc rule -r "*"
# Set up the desktops (workspaces) for the monitor
2020-10-06 22:24:55 +00:00
bspc monitor -d I II III IV V
2020-08-17 04:46:20 +00:00
bspc config border_width 2
2020-12-29 14:29:29 +00:00
bspc config window_gap 5
2020-08-17 04:46:20 +00:00
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
2020-12-29 14:29:29 +00:00
bspc config focused_border_color "#{{ cookiecutter.base05 }}"
2020-08-17 04:46:20 +00:00
bspc config focus_follows_pointer true
# Set the default cursor to pointer
xsetroot -cursor_name left_ptr
# Rules
bspc rule -a code-oss desktop=^2
bspc rule -a firefox desktop=^1
2020-10-06 22:24:55 +00:00
bspc rule -a emacs state=tiled
2020-08-17 04:46:20 +00:00