Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- winclass="$(xdotool search --class scpad_nc)";
- if [ -z "$winclass" ]; then
- alacritty -e ncmpcpp --class scpad_nc
- else
- if [ ! -f /tmp/scpad_nc ]; then
- touch /tmp/scpad_nc && xdo hide "$winclass"
- elif [ -f /tmp/scpad_nc ]; then
- rm /tmp/scpad_nc && xdo show "$winclass"
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment