BSPWM: reset padding on WM reset

This commit is contained in:
Filippo Berto 2023-05-04 13:07:36 +02:00
parent d31c2da2e9
commit 3828c0b3ca
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -24,6 +24,7 @@
xbacklight = "${pkgs.xorg.xbacklight}/bin/xbacklight";
resetBspwm = pkgs.writeShellScript "resetBspwm" ''
bspc wm -r
for p in {top,bottom,left,right}; do bspc config -m any ''${p}_padding 0; done # Reset padding
systemctl --user restart polybar # Restart polybar
'';
moveAllNodesToPrimary = pkgs.writeShellScript "moveAllNodesToPrimary" ''