literate-dotfiles/bspwm.org
Thomas Dehaeze bb14d8239c Change indentation of all blocks.
Use (setq org-src-preserve-indentation t) for Emacs.
2021-01-08 01:26:27 +01:00

1.3 KiB

BSPWM

List Desktops

bspc monitor -d code web mail misc figs

Basic Config

bspc config border_width         1
bspc config window_gap           8
bspc config top_padding         27 # top_padding I set equal to polybar's height

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

bspc config focus_follows_pointer       true

Colors

bspc config normal_border_color \#32302f
bspc config focused_border_color \#bdae93

Rules

Use xprop to obtain information about the window.

# If refreshing bspwm, remove all previous rules to prevent doubling up.
bspc rule -r "*"

bspc rule --add qutebrowser desktop='web' follow=on state=tiled
bspc rule --add Emacs desktop='code' follow=on state=tiled

bspc rule --add Zathura state=tiled

bspc rule --add Pavucontrol state=floating
bspc rule --add Blueman-manager state=floating

Run Polybar and SXHKD

polybar top >>/tmp/polybar.log 2>&1 &
sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.bspwm &