From 9fec5b56e814e4775326293844ede8ff0aeaae79 Mon Sep 17 00:00:00 2001 From: Adrian G L Date: Tue, 26 Nov 2024 11:07:35 +0100 Subject: [PATCH] added wleave to powerbutton --- home/gunalx/sway.nix | 7 +++++-- profiles/desktop.nix | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/home/gunalx/sway.nix b/home/gunalx/sway.nix index 6a0bc55..b71f9e4 100644 --- a/home/gunalx/sway.nix +++ b/home/gunalx/sway.nix @@ -47,6 +47,8 @@ in #swaybg swww + wleave + #bar applets and notifications waybar networkmanagerapplet @@ -272,6 +274,7 @@ in { #"ctrl+space" = "exec xkb_switch_layout next"; #TODO:verify "${cfg.config.modifier}+tab" = "${menu}"; "Alt+tab" = "workspace back_and_forth"; + "XF86PowerOff" = "exec ${pkgs.wleave}/bin/wleave"; }; }; @@ -280,8 +283,8 @@ in { xkb_capslock disabled xkb_numlock enabled - xkb_layout us,no - xkb_options , + xkb_layout us,no,jp + xkb_options ,, xkb_options grp:win_space_toggle xkb_numlock enabled # enable numlock when logging in } diff --git a/profiles/desktop.nix b/profiles/desktop.nix index 9f98ce7..ec8b092 100644 --- a/profiles/desktop.nix +++ b/profiles/desktop.nix @@ -70,10 +70,11 @@ imports = #}; - - }; + + services.logind.powerKey = "ignore"; + services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enableQt5Integration = true;