From 51896dabeaf431d1c0792cfc02aba05aee32862c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Schwarz=C3=A4ugl?= Date: Mon, 14 Jul 2025 17:04:54 +0200 Subject: [PATCH] fix: zellij not opening after reboot --- SwarselSystems.org | 13 +++++++------ files/scripts/swarselzellij.sh | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index baba124..e90e8f2 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -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 diff --git a/files/scripts/swarselzellij.sh b/files/scripts/swarselzellij.sh index fc82258..24a1ac6 100644 --- a/files/scripts/swarselzellij.sh +++ b/files/scripts/swarselzellij.sh @@ -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