bspwm : add scratch pad

This commit is contained in:
2025-03-19 16:26:05 +09:00
parent e559352d85
commit 8a0e52ab03
3 changed files with 21 additions and 0 deletions

View File

@ -70,6 +70,7 @@ 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
# TODO heres polybar
if [[ $JUPCID == "HOME-DESKTOP" ]]; then

View File

@ -2,6 +2,8 @@
super+Return
alacritty
super+shift+Return
~/scripts/scpad
#Apps and programs
super+e
emacsclient -c -a 'emacs'

18
scripts/scpad Executable file
View File

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