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 + + + + +