From 5c1df5b42348fed02ea3a571738514f8d017854b Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 27 Jun 2025 00:22:02 +0200 Subject: [PATCH] new mouse --- .../modules/default.nix | 1 + .../monosodium-glutamate-g/modules/input.nix | 37 +++++++++++++++++++ modules/desktop/home/niri/binds.nix | 3 ++ 3 files changed, 41 insertions(+) create mode 100644 hosts/monosodium-glutamate-g/modules/input.nix diff --git a/hosts/monosodium-glutamate-g/modules/default.nix b/hosts/monosodium-glutamate-g/modules/default.nix index 34ffd52..bbddfc4 100644 --- a/hosts/monosodium-glutamate-g/modules/default.nix +++ b/hosts/monosodium-glutamate-g/modules/default.nix @@ -2,5 +2,6 @@ { imports = [ ./graphics.nix + ./input.nix ]; } diff --git a/hosts/monosodium-glutamate-g/modules/input.nix b/hosts/monosodium-glutamate-g/modules/input.nix new file mode 100644 index 0000000..54ddc8f --- /dev/null +++ b/hosts/monosodium-glutamate-g/modules/input.nix @@ -0,0 +1,37 @@ +{ ... }: +{ + jade.input.remapping = { + enable = true; + devices."SOAI USB Gaming Mouse Keyboard".remap = [ + { + input = [ "KEY_A" ]; + output = [ + "KEY_LEFTMETA" + "KEY_H" + ]; + } + { + input = [ "KEY_D" ]; + output = [ + "KEY_LEFTMETA" + "KEY_L" + ]; + } + { + input = [ "KEY_W" ]; + output = [ + "KEY_LEFTMETA" + "KEY_G" + ]; + } + { + input = [ "KEY_S" ]; + output = [ + "KEY_LEFTMETA" + "KEY_LEFTCTRL" + "KEY_G" + ]; + } + ]; + }; +} diff --git a/modules/desktop/home/niri/binds.nix b/modules/desktop/home/niri/binds.nix index b268507..2dc622a 100644 --- a/modules/desktop/home/niri/binds.nix +++ b/modules/desktop/home/niri/binds.nix @@ -72,6 +72,9 @@ "Mod+Ctrl+L".action.move-column-right = [ ]; "Mod+R".action.switch-preset-column-width = [ ]; + "Mod+G".action.open-overview = [ ]; + "Mod+Ctrl+G".action.close-overview = [ ]; + "Mod+V".action.toggle-window-floating = [ ]; "Mod+Shift+V".action.switch-focus-between-floating-and-tiling = [ ];