dots-of-war/files/.config/bspwm/bspwm_scripts/bsp_scratchpad.sh

12 lines
221 B
Bash
Raw Normal View History

2020-06-21 10:41:26 +00:00
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <name of hidden scratchpad window>"
exit 1
fi
pids=$(xdotool search --class "${1}")
for pid in $pids; do
echo "Toggle $pid"
bspc node "$pid" --flag hidden -f
done