1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-24 17:11:31 +00:00
Dotfiles/.local/bin/scratchpad.sh

13 lines
220 B
Bash
Raw Normal View History

2020-09-09 13:51:58 +00:00
#!/usr/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