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 = services.xsuspender.iniContent =
let let
mkSection = values: filterAttrs (_: v: v != null) { 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; suspend_delay = values.suspendDelay;
resume_every = values.resumeEvery; resume_every = values.resumeEvery;
resume_for = values.resumeFor; resume_for = values.resumeFor;
exec_suspend = values.execSuspend; exec_suspend = values.execSuspend;
exec_resume = values.execResume; exec_resume = values.execResume;
send_signals = values.sendSignals; send_signals = values.sendSignals;
suspend_subtree_pattern = values.suspendSubtreePattern;
only_on_battery = values.onlyOnBattery; only_on_battery = values.onlyOnBattery;
auto_suspend_on_battery = values.autoSuspendOnBattery; auto_suspend_on_battery = values.autoSuspendOnBattery;
downclock_on_battery = values.downclockOnBattery; downclock_on_battery = values.downclockOnBattery;