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

@ -14604,13 +14604,14 @@ This app checks for different apps that I keep around in the scratchpad for quic
:END:
#+begin_src shell :tangle files/scripts/swarselzellij.sh
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
#+end_src
#+begin_src nix-ts :tangle pkgs/swarselzellij/default.nix