From 65112394b46bb9046c95b54c2421dbe88d52fef5 Mon Sep 17 00:00:00 2001 From: coast Date: Tue, 4 Nov 2025 03:09:34 +0330 Subject: [PATCH] change niri a bit, and add tmux to nix config --- config/niri/config.kdl | 2 +- nixos/home-configuration/apps/zsh.nix | 3 +++ nixos/home-configuration/configuration.nix | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 957488e..8b85848 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -221,7 +221,7 @@ binds { Mod+Shift+Minus { set-window-height "-10%"; } Mod+Shift+Equal { set-window-height "+10%"; } - Mod+V { toggle-window-floating; } + Mod+Space { toggle-window-floating; } Mod+Shift+V { switch-focus-between-floating-and-tiling; } Mod+Shift+F { toggle-column-tabbed-display; } diff --git a/nixos/home-configuration/apps/zsh.nix b/nixos/home-configuration/apps/zsh.nix index da7fd97..2ba4396 100644 --- a/nixos/home-configuration/apps/zsh.nix +++ b/nixos/home-configuration/apps/zsh.nix @@ -54,6 +54,9 @@ bindkey -e PS1="[%n in %m %~] " eval "$(starship init zsh)" + if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then + tmux attach -t default || tmux new -s default + fi ''; }; } diff --git a/nixos/home-configuration/configuration.nix b/nixos/home-configuration/configuration.nix index b41d33e..5078247 100644 --- a/nixos/home-configuration/configuration.nix +++ b/nixos/home-configuration/configuration.nix @@ -84,4 +84,11 @@ in { userName = "coast"; }; + programs.tmux = { + enable = true; + }; + + programs.tmate = { + enable = true; + }; }