Add files via upload
This commit is contained in:
13
config/bspwm/scripts/nvim_notes.sh
Executable file
13
config/bspwm/scripts/nvim_notes.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#kitty --class clipse -e clipse keep
|
||||
# find existing node
|
||||
NODE=$(for id in $(bspc query -N -n .window); do
|
||||
xprop -id $id WM_CLASS 2>/dev/null | grep -q "nvim_notes" && echo $id && break
|
||||
done)
|
||||
if [ -n "$NODE" ]; then
|
||||
bspc node "$NODE" -d focused
|
||||
bspc node "$NODE" -f
|
||||
exit 0
|
||||
fi
|
||||
kitty --class nvim_notes --session ~/.config/kitty/session_nvim.conf &
|
||||
Reference in New Issue
Block a user