1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

xsuspender: write all options to config

This commit is contained in:
Andreas Fehn 2019-07-04 13:44:59 +02:00 committed by Robert Helgesson
parent 7c76f4a71f
commit 2029e104d4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -150,12 +150,16 @@ in
services.xsuspender.iniContent =
let
mkSection = values: filterAttrs (_: v: v != null) {
match_wm_class_contains = values.matchWmClassContains;
match_wm_class_group_contains = values.matchWmClassGroupContains;
match_wm_name_contains = values.matchWmNameContains;
suspend_delay = values.suspendDelay;
resume_every = values.resumeEvery;
resume_for = values.resumeFor;
exec_suspend = values.execSuspend;
exec_resume = values.execResume;
send_signals = values.sendSignals;
suspend_subtree_pattern = values.suspendSubtreePattern;
only_on_battery = values.onlyOnBattery;
auto_suspend_on_battery = values.autoSuspendOnBattery;
downclock_on_battery = values.downclockOnBattery;