From 68580bcd472510e273a09fabd91bc6b2853b52af Mon Sep 17 00:00:00 2001 From: Artem Proskurnev Date: Tue, 15 Mar 2022 00:40:46 +0300 Subject: [PATCH] Power management --- kometa-std-desktop.spec | 7 ++- kometa-std-desktop/powermanagementprofilesrc | 60 ++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 kometa-std-desktop/powermanagementprofilesrc diff --git a/kometa-std-desktop.spec b/kometa-std-desktop.spec index 5ac9fbc..017a30d 100644 --- a/kometa-std-desktop.spec +++ b/kometa-std-desktop.spec @@ -1,5 +1,5 @@ Name: kometa-std-desktop -Version: 1.8 +Version: 1.9 Release: kometa1 Summary: Kometa default desktop settings @@ -41,6 +41,7 @@ mkdir -p %buildroot%skeldesktopdir mkdir -p %buildroot%ftdir mkdir -p %buildroot%aptdir +install -pm644 powermanagementprofilesrc %buildroot%skelconfigdir install -pm644 inkscape.xml %buildroot%skelconfigdir/inkscape/preferences.xml install -pm644 chromium.json %buildroot%skelconfigdir/chromium/Default/Preferences install -pm644 libreoffice.xcu %buildroot%skelconfigdir/libreoffice/4/user/registrymodifications.xcu @@ -55,6 +56,7 @@ install -pm755 previewplugins.filetrigger %buildroot%ftdir install -pm644 kometa.list %buildroot%aptdir %files +"/etc/skel/.config/powermanagementprofilesrc" "/etc/skel/.config/inkscape/preferences.xml" "/etc/skel/.config/chromium/Default/Preferences" "/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu" @@ -69,6 +71,9 @@ install -pm644 kometa.list %buildroot%aptdir "/etc/apt/sources.list.d/kometa.list" %changelog +* Thu Mar 15 2022 Artem Proskurnev 1.9-kometa1 +- Power management + * Fri Mar 11 2022 Artem Proskurnev 1.8-kometa1 - OpenBoard settings diff --git a/kometa-std-desktop/powermanagementprofilesrc b/kometa-std-desktop/powermanagementprofilesrc new file mode 100644 index 0000000..567a543 --- /dev/null +++ b/kometa-std-desktop/powermanagementprofilesrc @@ -0,0 +1,60 @@ +[AC] +icon=battery-charging + +[AC][BrightnessControl] +value=100 + +[AC][DPMSControl] +idleTime=3000 + +[AC][DimDisplay] +idleTime=2700000 + +[AC][HandleButtonEvents] +lidAction=1 +powerButtonAction=16 +triggerLidActionWhenExternalMonitorPresent=false + +[Battery] +icon=battery-060 + +[Battery][BrightnessControl] +value=100 + +[Battery][DPMSControl] +idleTime=1500 + +[Battery][DimDisplay] +idleTime=1320000 + +[Battery][HandleButtonEvents] +lidAction=1 +powerButtonAction=16 +triggerLidActionWhenExternalMonitorPresent=false + +[Battery][SuspendSession] +idleTime=1800000 +suspendThenHibernate=false +suspendType=1 + +[LowBattery] +icon=battery-low + +[LowBattery][BrightnessControl] +value=30 + +[LowBattery][DPMSControl] +idleTime=120 + +[LowBattery][DimDisplay] +idleTime=60000 + +[LowBattery][HandleButtonEvents] +lidAction=2 +powerButtonAction=16 +triggerLidActionWhenExternalMonitorPresent=true + +[LowBattery][SuspendSession] +idleTime=300000 +suspendThenHibernate=false +suspendType=1