From 371a430031933dde58a03de8a3c7c2dfcda3ada0 Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Wed, 29 Oct 2025 12:37:52 +0100 Subject: [PATCH] niri: try to get rid of hyprland-ideas --- modules/desktop/niri.nix | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/modules/desktop/niri.nix b/modules/desktop/niri.nix index 5870e07..0bec2b7 100644 --- a/modules/desktop/niri.nix +++ b/modules/desktop/niri.nix @@ -194,27 +194,6 @@ binds = with config.lib.niri; - let - workspaces = (builtins.genList (x: x + 1) 9); - - focus-workspaces = builtins.listToAttrs ( - map (num: { - name = "Mod+${toString num}"; - value = { - action.focus-workspace = num; - }; - }) workspaces - ); - move-to-workspaces = builtins.listToAttrs ( - map (num: { - name = "Mod+Ctrl+${toString num}"; - value = { - action.move-window-to-workspace = num; - }; - }) workspaces - ); - in - lib.mkMerge [ { "Mod+Shift+Slash".action = actions.show-hotkey-overlay; @@ -235,6 +214,11 @@ repeat = false; }; + "Mod+1".action = actions.focus-workspace "zen"; + "Mod+2".action = actions.focus-workspace "steam"; + "Mod+3".action = actions.focus-workspace "communication"; + "Mod+4".action = actions.focus-workspace "work"; + "Mod+J" = { action = actions.focus-window-or-workspace-down; }; @@ -365,8 +349,6 @@ allow-when-locked = true; }; } - focus-workspaces - move-to-workspaces ]; spawn-at-startup = [