diff --git a/users/phundrak/wlr-which-key/default.nix b/users/phundrak/wlr-which-key/default.nix index f1194ed..4216818 100644 --- a/users/phundrak/wlr-which-key/default.nix +++ b/users/phundrak/wlr-which-key/default.nix @@ -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"; diff --git a/users/phundrak/wlr-which-key/logout.nix b/users/phundrak/wlr-which-key/logout.nix new file mode 100644 index 0000000..5d56a43 --- /dev/null +++ b/users/phundrak/wlr-which-key/logout.nix @@ -0,0 +1,4 @@ +{pkgs, ...}: +pkgs.writeShellScriptBin "logout" '' + ${pkgs.procps}/bin/pidof -x Hyprland && uwsm stop +''