mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
Init
This commit is contained in:
13
shell/run_kitty.sh
Executable file
13
shell/run_kitty.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This is a script to always have only one instance of kitty running
|
||||
# You can run another one if you wish if you use the menu manager
|
||||
# Use tmux or the
|
||||
|
||||
if hyprctl clients | grep -q 'class: kitty'; then
|
||||
# Focus existing kitty
|
||||
hyprctl dispatch focuswindow class:kitty
|
||||
else
|
||||
# No kitty window found, launch kitty
|
||||
kitty &
|
||||
fi
|
||||
Reference in New Issue
Block a user