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

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/