pythonpad

This commit is contained in:
2025-08-12 16:00:12 +09:00
parent 45830fad57
commit 92c63e4949
2 changed files with 22 additions and 1 deletions

View File

@ -70,7 +70,8 @@ bspc config normal_private_border_color "$color1"
bspc rule -a Emacs state=tiled
# bspc rule -a \* state=tiled
bspc rule -a scpad sticky=on state=floating rectangle=1400x600+660+40
bspc rule -a scpad sticky=on state=floating rectangle=1400x700+660+40
bspc rule -a pythonpad sticky=on state=floating rectangle=1400x700+660+40
# TODO heres polybar
if [[ $JUPCID == "HOME-DESKTOP" ]]; then

20
scripts/pythonpad Executable file
View File

@ -0,0 +1,20 @@
#!/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