dotfiles/.config/bspwm/scratchpad.sh

8 lines
142 B
Bash
Executable File

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