feat: add zellij again

This commit is contained in:
Leon Schwarzäugl 2025-02-25 14:00:26 +01:00
parent 5b591ba10b
commit f2267de522
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
10 changed files with 564 additions and 658 deletions

7
scripts/swarselzellij.sh Normal file
View file

@ -0,0 +1,7 @@
KITTIES=$(($(pgrep -P 1 kitty | wc -l) - 1))
if [[ $KITTIES -lt 1 ]]; then
exec kitty -o confirm_os_window_close=0 zellij attach --create main
else
exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES"
fi