diff options
Diffstat (limited to 'common/modules/window_managers/hyprland/default.nix')
| -rw-r--r-- | common/modules/window_managers/hyprland/default.nix | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/common/modules/window_managers/hyprland/default.nix b/common/modules/window_managers/hyprland/default.nix index aaf202f..fea9db6 100644 --- a/common/modules/window_managers/hyprland/default.nix +++ b/common/modules/window_managers/hyprland/default.nix @@ -12,21 +12,7 @@ }: let cfg = config.${moduleNameSpace}.windowManagers; - 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; + scripts = import ../scripts.nix { inherit pkgs config; }; in { config = lib.mkIf cfg.hyprland.enable ( @@ -222,7 +208,7 @@ in bind = [ "$mainMod, r, exec, hyprctl reload" - "$mainMod, Return, exec, ${terminal}" + "$mainMod, Return, exec, ${scripts.terminal}" "$mainMod, a, exec,noctalia-shell ipc call launcher toggle" "$mainMod, y, exec,noctalia-shell ipc call wallpaper toggle" "$mainMod, v, exec,noctalia-shell ipc call launcher clipboard" |
