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: :END:
#+begin_src shell :tangle files/scripts/swarselzellij.sh #+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 # if ((KITTIES < 1)); then
exec kitty -o confirm_os_window_close=0 zellij attach --create main # exec kitty -o confirm_os_window_close=0 zellij attach --create main
else # else
exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES" # exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES"
fi # fi
exec kitty -o confirm_os_window_close=0 zellij
#+end_src #+end_src
#+begin_src nix-ts :tangle pkgs/swarselzellij/default.nix #+begin_src nix-ts :tangle pkgs/swarselzellij/default.nix

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 # if ((KITTIES < 1)); then
exec kitty -o confirm_os_window_close=0 zellij attach --create main # exec kitty -o confirm_os_window_close=0 zellij attach --create main
else # else
exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES" # exec kitty -o confirm_os_window_close=0 zellij attach --create "temp $KITTIES"
fi # fi
exec kitty -o confirm_os_window_close=0 zellij