mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
bspwm : add scratch pad
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
18
scripts/scpad
Executable 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user