From 92c63e494937f8c24e5514ccbe13e95bf8c97b62 Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Tue, 12 Aug 2025 16:00:12 +0900 Subject: [PATCH] pythonpad --- .config/bspwm/bspwmrc | 3 ++- scripts/pythonpad | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 scripts/pythonpad diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 7241bdd..95fee60 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -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 diff --git a/scripts/pythonpad b/scripts/pythonpad new file mode 100755 index 0000000..ff680f4 --- /dev/null +++ b/scripts/pythonpad @@ -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 + + + + +