Guest User

Untitled

a guest
Aug 25th, 2023
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. winclass="$(xdotool search --class scpad_nc)";
  4. if [ -z "$winclass" ]; then
  5.   alacritty -e ncmpcpp --class scpad_nc
  6. else
  7.     if [ ! -f /tmp/scpad_nc ]; then
  8.       touch /tmp/scpad_nc && xdo hide "$winclass"
  9.     elif [ -f /tmp/scpad_nc ]; then
  10.         rm /tmp/scpad_nc && xdo show "$winclass"
  11.     fi
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment