dotfiles/.config/bspwm/scratchpad.sh

8 lines
142 B
Bash
Raw Normal View History

#!/bin/ksh
ID=$(xdotool search --class scratchpad)
if [ -e $ID ]; then
sterm -c scratchpad &
else
bspc node "$ID" --flag hidden -f
fi