From 05d995f8e0c19eb2b0232d98c7e3af8ef4e2d847 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sat, 13 Jun 2026 20:39:12 +0100 Subject: [PATCH] feat(keybinds): direct SUPER+CTRL binds for the menu functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each nomarchy-menu module is now reachable directly, not just through the SUPER+M picker: SUPER+CTRL+ V clipboard · C calc · W web · F files · N network · B bluetooth · S capture · A ask. Added to keybinds.nix (the single source), so they render in the SUPER+? cheatsheet too. No key collisions; nix flake check passes. Co-Authored-By: Claude Opus 4.8 --- README.md | 8 ++++---- modules/home/keybinds.nix | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f94415f..92acc4d 100644 --- a/README.md +++ b/README.md @@ -372,10 +372,10 @@ close · `SUPER+1..9` workspaces · `Print` region screenshot. - ✓ **xfce deprecation warnings:** moved `xfce.exo` → `pkgs.xfce4-exo` and the three Thunar plugins to their new top-level names in `modules/nixos/file-manager.nix`; the eval warnings are gone. -- **Rofi function keybindings:** add direct Hyprland binds for the - `nomarchy-menu` sub-functions (calc, web search, file search, clipboard, - …) instead of only reaching them through the menu — see the planned binds - in the Menu-system roadmap item and `modules/home/hyprland.nix`. +- ✓ **Rofi function keybindings:** direct `SUPER+CTRL+` binds jump + straight to each `nomarchy-menu` module — V clipboard · C calc · W web · + F files · N network · B bluetooth · S capture · A ask — added to + `modules/home/keybinds.nix`, so they also show in the SUPER+? cheatsheet. - ✓ **Enable nix-ld by default:** `programs.nix-ld.enable` is on distro-wide (`modules/nixos/default.nix`), so prebuilt/foreign dynamically-linked binaries run out of the box. diff --git a/modules/home/keybinds.nix b/modules/home/keybinds.nix index 0fe7f52..de2ade5 100644 --- a/modules/home/keybinds.nix +++ b/modules/home/keybinds.nix @@ -33,10 +33,20 @@ { mods = "$mod"; key = "X"; action = "exec, nomarchy-menu power"; desc = "Power menu"; } { mods = "$mod"; key = "N"; action = "exec, swaync-client -t"; desc = "Notification centre"; } - { mods = "$mod CTRL"; key = "V"; action = "exec, nomarchy-menu clipboard"; desc = "Clipboard history"; } # SUPER+? (the "question" keysym already implies Shift on most layouts). { mods = "$mod"; key = "question"; action = "exec, nomarchy-menu keybinds"; desc = "Keybindings cheatsheet"; } + # Menu functions — SUPER+CTRL+ jumps straight to a + # nomarchy-menu module (all also reachable from the SUPER+M picker). + { mods = "$mod CTRL"; key = "V"; action = "exec, nomarchy-menu clipboard"; desc = "Clipboard history"; } + { mods = "$mod CTRL"; key = "C"; action = "exec, nomarchy-menu calc"; desc = "Calculator"; } + { mods = "$mod CTRL"; key = "W"; action = "exec, nomarchy-menu web"; desc = "Web search"; } + { mods = "$mod CTRL"; key = "F"; action = "exec, nomarchy-menu files"; desc = "File search"; } + { mods = "$mod CTRL"; key = "N"; action = "exec, nomarchy-menu network"; desc = "Network (nmtui)"; } + { mods = "$mod CTRL"; key = "B"; action = "exec, nomarchy-menu bluetooth"; desc = "Bluetooth"; } + { mods = "$mod CTRL"; key = "S"; action = "exec, nomarchy-menu capture"; desc = "Screenshot / capture"; } + { mods = "$mod CTRL"; key = "A"; action = "exec, nomarchy-menu ask"; desc = "Ask Claude"; } + # Focus { mods = "$mod"; key = "H"; action = "movefocus, l"; desc = "Focus left"; } { mods = "$mod"; key = "L"; action = "movefocus, r"; desc = "Focus right"; }