fix: zellij not opening after reboot

This commit is contained in:
Leon Schwarzäugl 2025-07-14 17:04:54 +02:00
parent 21c1067572
commit 51896dabea
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 14 additions and 12 deletions

View file

@ -1,7 +1,8 @@
KITTIES=$(($(pgrep -P 1 kitty | wc -l) - 1))
# KITTIES=$(($(pgrep -P 1 kitty | wc -l) - 1))
if ((KITTIES < 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
# if ((KITTIES < 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
exec kitty -o confirm_os_window_close=0 zellij