From 83726b08973d5560d30a8b80c87bab4a3966289b Mon Sep 17 00:00:00 2001 From: "Agatha V. Lovelace" Date: Thu, 13 Apr 2023 13:27:55 +0200 Subject: [PATCH] Make bspwm monocle mode work with translucent windows --- common/fragments/graphical/bspwm.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/fragments/graphical/bspwm.nix b/common/fragments/graphical/bspwm.nix index dad5237..289b7f6 100644 --- a/common/fragments/graphical/bspwm.nix +++ b/common/fragments/graphical/bspwm.nix @@ -91,7 +91,8 @@ in { # Close/kill window "super + {_,shift + }w" = "bspc node -{c,k}"; # Monocle layout - "super + m" = "bspc desktop -l next"; + "super + m" = + "for node_i in $(bspc query -N -n '.!focused.window' -d focused); bspc node $node_i -g hidden; end; bspc desktop -l next"; # Toggle hide all windows "super + d" = "bspc query -N -n .window | xargs -I node_id bspc node node_id -g hidden";