From 34d86d83e848020764f419458ca888532893eec3 Mon Sep 17 00:00:00 2001 From: bee Date: Fri, 8 May 2026 02:03:19 +0530 Subject: tmux wrapped terminal script --- common/modules/window_managers/mango/default.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'common/modules/window_managers/mango/default.nix') diff --git a/common/modules/window_managers/mango/default.nix b/common/modules/window_managers/mango/default.nix index 41c6f5c..73db1ab 100644 --- a/common/modules/window_managers/mango/default.nix +++ b/common/modules/window_managers/mango/default.nix @@ -12,6 +12,7 @@ }: let cfg = config.${moduleNameSpace}.windowManagers; + scripts = import ../scripts.nix { inherit pkgs config; }; snip = pkgs.writeShellScript "snip" '' case $1 in full) @@ -32,19 +33,6 @@ let ;; esac ''; - smart-alacritty = pkgs.writeShellScript "smart-alacritty" '' - alacritty msg create-window || exec alacritty - ''; - smart-ghostty = pkgs.writeShellScript "smart-ghostty" '' - ghostty +new-window || exec ghostty - ''; - terminal = - if config.beeMods.terminal.default == "alacritty" then - smart-alacritty - else if config.beeMods.terminal.default == "ghostty" then - smart-ghostty - else - config.beeMods.terminal.default; in { imports = @@ -224,7 +212,7 @@ in # reload config bind=SUPER,r,reload_config - bind=SUPER,Return,spawn,${terminal} + bind=SUPER,Return,spawn,${scripts.terminal} bind=SUPER,v,spawn,noctalia-shell ipc call launcher clipboard bind=SUPER,a,spawn,noctalia-shell ipc call launcher toggle -- cgit v1.3.1