feat(home): add power configuration to plasma

This commit is contained in:
xezo360hye 2024-08-17 19:44:57 +03:00
parent 155e1512de
commit 186afc9cd0

View File

@ -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";