blob: fe1964a345df1d82279c0b93bf84622af806bbd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
#
# hide or show all floating windows in bspwm
#
# dependencies: xargs
IDS=($(bspc query -N -n .floating.hidden))
if [ $? -eq 0 ]; then
# show hidden floaties
echo -n ${IDS[@]} | xargs -d ' ' -I ID bspc node ID -g hidden=off
else
# hide floaties
bspc query -N -n .floating | xargs -I ID bspc node ID -g hidden=on
fi
|