From e1337e0f9927c4f8ce04aaf892339d1065f88711 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 20 May 2025 17:35:21 +0800 Subject: [PATCH] feat(hyprland): make zellij open when terminal opens --- modules/home/cli/default.nix | 1 + modules/home/cli/multiplexer/default.nix | 2 +- modules/home/desktop/windowManager/hyprland/keybinds.nix | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/home/cli/default.nix b/modules/home/cli/default.nix index 965e0ea..a1a5657 100644 --- a/modules/home/cli/default.nix +++ b/modules/home/cli/default.nix @@ -18,6 +18,7 @@ config = lib.mkMerge [ { + home.shell.enableShellIntegration = true; programs.zoxide.enable = true; home.shellAliases.cd = "z"; home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [ diff --git a/modules/home/cli/multiplexer/default.nix b/modules/home/cli/multiplexer/default.nix index 0ef85da..834d3cf 100644 --- a/modules/home/cli/multiplexer/default.nix +++ b/modules/home/cli/multiplexer/default.nix @@ -1,7 +1,7 @@ { config, lib, ... }: { config = lib.mkIf (config.cli.multiplexer == "zellij") { - home.sessionVariables.multiplexer = "zellij -c"; + home.sessionVariables.MULTIPLEXER = "zellij"; programs.zellij = { enable = true; attachExistingSession = true; diff --git a/modules/home/desktop/windowManager/hyprland/keybinds.nix b/modules/home/desktop/windowManager/hyprland/keybinds.nix index 742113e..20c4f31 100644 --- a/modules/home/desktop/windowManager/hyprland/keybinds.nix +++ b/modules/home/desktop/windowManager/hyprland/keybinds.nix @@ -4,7 +4,7 @@ "$hypr, Q, exec, uwsm stop" "SUPER, W, killactive" - "SUPER, return, exec, uwsm app -- $TERMINAL" + "SUPER, return, exec, uwsm app -- $TERMINAL $MULTIPLEXER" "SUPER, O, exec, uwsm app -- $BROWSER" "SUPER, H, cyclenext, visible"