notes/scripts/bsphide
2023-04-08 23:59:01 -07:00

12 lines
314 B
Bash
Executable file

#!/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/