feat(wlr-which-key): add logout option to power menu

This commit is contained in:
2025-11-16 15:29:21 +01:00
parent 8adeeff9eb
commit 521193d91d
2 changed files with 10 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
float-window = import ./float-window.nix {inherit pkgs;};
focus-urgent = import ./focus-urgent.nix {inherit pkgs;};
fullscreen = import ./fullscreen.nix {inherit pkgs;};
logout = import ./logout.nix {inherit pkgs;};
ytplay = import ../../modules/cli/scripts/ytplay.nix {inherit pkgs;};
in [
{
@@ -168,6 +169,11 @@
key = "p";
desc = "Power";
submenu = [
{
key = "l";
desc = "Logout";
cmd = "";
}
{
key = "s";
desc = "Suspend";

View File

@@ -0,0 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "logout" ''
${pkgs.procps}/bin/pidof -x Hyprland && uwsm stop
''