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