mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-27 06:32:23 +00:00
11 lines
221 B
Bash
Executable file
11 lines
221 B
Bash
Executable file
#!/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
|