Added hiding feature to personal bspwm setup

This commit is contained in:
z3rOR0ne 2023-04-08 23:59:01 -07:00
parent 90f366ee89
commit a5e58c8e4d
2 changed files with 16 additions and 3 deletions

View file

@ -161,7 +161,7 @@ super + alt + {h,j,k,l}
super + a
pavucontrol &
super + z
lxappearance &
zoom &
super + f
librewolf &
super + c
@ -171,9 +171,10 @@ super + i
super + g
gimp --no-splash &
super + h
keepassxc &
$HOME/scripts/bsphide &
super + k
krita --nosplash &
keepassxc &
# krita --nosplash &
super + t
thunderbird &
super + p

12
scripts/bsphide Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# bound to sxhkd, allows hiding of windows in bspwm
hidden=$(bspc query -N -n .hidden -d focused)
if [ -z "$hidden" ]; then
bspc node focused -g hidden=on
else
bspc node "$hidden" -h hidden=off
fi
# found: https://lecorbeausvault.wordpress.com/2020/07/04/bspwm-hide-minimize-window/