mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 12:54:24 -05:00
14 lines
350 B
Bash
Executable File
14 lines
350 B
Bash
Executable File
#!/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
|