From 37de97df461ad610c79bd71870c0f4747e843692 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Fri, 10 Jan 2025 20:50:46 +0100 Subject: [PATCH] Use `rofi-power-menu` --- hmModules/niri/config.kdl | 4 ++++ hmModules/waybar/default.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/hmModules/niri/config.kdl b/hmModules/niri/config.kdl index 7634d04..7d25a06 100644 --- a/hmModules/niri/config.kdl +++ b/hmModules/niri/config.kdl @@ -300,6 +300,9 @@ window-rule { open-maximized true } +window-rule { + match app-id=r#"^Emacs Selector$"# +} @@ -332,6 +335,7 @@ binds { Mod+G { spawn "emacsclient" "-c" "--eval" "(switch-to-buffer (gptel \"*ChatGPT*\"))"; } Mod+Shift+C { spawn "emacsclient" "-c" "--eval" "(org-roam-dailies-capture-today)"; } Super+Alt+L { spawn "swaylock"; } + Mod+Space { spawn "rofi" "-show" "menu" "-modi" "menu:rofi-power-menu"; } // Example volume keys mappings for PipeWire & WirePlumber. diff --git a/hmModules/waybar/default.nix b/hmModules/waybar/default.nix index f8e5c85..0e544d9 100644 --- a/hmModules/waybar/default.nix +++ b/hmModules/waybar/default.nix @@ -19,6 +19,10 @@ fi ''; + home.packages = with pkgs; [ + rofi-power-menu + ]; + # waybar needs the hyprctl binary in PATH when started in hyprland # TODO still needed? systemd.user.services.waybar.Service.Environment = "PATH=${lib.makeBinPath [ pkgs.hyprland ]}";