Files
dots/config/bspwm/scripts/nvim_notes.sh
2025-11-24 19:46:30 +07:00

14 lines
369 B
Bash
Executable File

#!/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 &