diff --git a/home/modules/plasma/default.nix b/home/modules/plasma/default.nix index 9065c98..e8efd51 100644 --- a/home/modules/plasma/default.nix +++ b/home/modules/plasma/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: { programs.firefox = { nativeMessagingHosts = [ pkgs.plasma-browser-integration ]; @@ -26,6 +26,16 @@ naturalScroll = true; }]; + powerdevil = let + settings = { + powerButtonAction = "sleep"; + }; + + modes = [ "AC" "battery" "lowBattery" ]; + in lib.mergeAttrsList ( + map (m: { "${m}" = settings; }) modes + ); + kwin.edgeBarrier = 0; workspace = { clickItemTo = "open";