diff options
Diffstat (limited to 'common/modules/window_managers/mango')
| -rw-r--r-- | common/modules/window_managers/mango/default.nix | 16 |
1 files changed, 2 insertions, 14 deletions
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 |
