mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
19 lines
303 B
Bash
Executable File
19 lines
303 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
winclass="$(xdotool search --class scpad)";
|
|
|
|
if [ -z "$winclass" ]; then
|
|
alacritty --class scpad
|
|
else
|
|
if [ ! -f /tmp/scpad ]; then
|
|
touch /tmp/scpad && xdo hide "$winclass"
|
|
elif [ -f /tmp/scpad ]; then
|
|
rm /tmp/scpad && xdo show "$winclass"
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
|