feat(wlr-which-key): add logout option to power menu
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
float-window = import ./float-window.nix {inherit pkgs;};
|
float-window = import ./float-window.nix {inherit pkgs;};
|
||||||
focus-urgent = import ./focus-urgent.nix {inherit pkgs;};
|
focus-urgent = import ./focus-urgent.nix {inherit pkgs;};
|
||||||
fullscreen = import ./fullscreen.nix {inherit pkgs;};
|
fullscreen = import ./fullscreen.nix {inherit pkgs;};
|
||||||
|
logout = import ./logout.nix {inherit pkgs;};
|
||||||
ytplay = import ../../modules/cli/scripts/ytplay.nix {inherit pkgs;};
|
ytplay = import ../../modules/cli/scripts/ytplay.nix {inherit pkgs;};
|
||||||
in [
|
in [
|
||||||
{
|
{
|
||||||
@@ -168,6 +169,11 @@
|
|||||||
key = "p";
|
key = "p";
|
||||||
desc = "Power";
|
desc = "Power";
|
||||||
submenu = [
|
submenu = [
|
||||||
|
{
|
||||||
|
key = "l";
|
||||||
|
desc = "Logout";
|
||||||
|
cmd = "";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
key = "s";
|
key = "s";
|
||||||
desc = "Suspend";
|
desc = "Suspend";
|
||||||
|
|||||||
4
users/phundrak/wlr-which-key/logout.nix
Normal file
4
users/phundrak/wlr-which-key/logout.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{pkgs, ...}:
|
||||||
|
pkgs.writeShellScriptBin "logout" ''
|
||||||
|
${pkgs.procps}/bin/pidof -x Hyprland && uwsm stop
|
||||||
|
''
|
||||||
Reference in New Issue
Block a user