mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
15 lines
455 B
Nix
15 lines
455 B
Nix
{ name, writeShellApplication, kitty, ... }:
|
|
writeShellApplication {
|
|
inherit name;
|
|
runtimeInputs = [ kitty ];
|
|
text = ''
|
|
# 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
|
|
exec kitty -o confirm_os_window_close=0 zellij
|
|
'';
|
|
}
|