diff options
| author | bee <beebeeb5k@gmail.com> | 2026-05-08 02:03:19 +0530 |
|---|---|---|
| committer | bee <beebeeb5k@gmail.com> | 2026-05-08 02:03:19 +0530 |
| commit | 34d86d83e848020764f419458ca888532893eec3 (patch) | |
| tree | e806e485c28edf658e02fea032cd6ed14b0078e8 /common/modules/window_managers/hyprland/default.nix | |
| parent | 819cba6808c560628ec46176297a76219cebf9b4 (diff) | |
tmux wrapped terminal script
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" |
