From d28ecaaea8e2dc2065de61e572c43d5cb7d96766 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 16 Jun 2021 03:32:46 -0300 Subject: [PATCH] root: add elogind --- root/config.yaml | 14 ++++++++++++- root/elogind.conf | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 root/elogind.conf diff --git a/root/config.yaml b/root/config.yaml index 9dd5322..66178c7 100644 --- a/root/config.yaml +++ b/root/config.yaml @@ -23,10 +23,16 @@ actions: greetd_install: | sudo chown -R greeter:greeter /etc/greetd/ + elogind_install: > + { + sv restart elogind || + rc-service elogind restart + } < /dev/null & disown + ############################################################### -dotfiles: # Just a bunch of paths and action mappings +dotfiles: ############################################################### greetd: @@ -35,6 +41,12 @@ dotfiles: # Just a bunch of paths and action mappings actions: - greetd_install + elogind: + src: elogind.conf + dst: /etc/elogind/logind.conf + actions: + - elogind_install + ############################################################### profiles: diff --git a/root/elogind.conf b/root/elogind.conf new file mode 100644 index 0000000..78fc8d3 --- /dev/null +++ b/root/elogind.conf @@ -0,0 +1,52 @@ +# {{@@ header() @@}} +# _____ _ _ _ +# | ____| | ___ __ _(_)_ __ __| | +# | _| | |/ _ \ / _` | | '_ \ / _` | +# | |___| | (_) | (_| | | | | | (_| | +# |_____|_|\___/ \__, |_|_| |_|\__,_| +# |___/ + + +[Login] +#KillUserProcesses=no +#KillOnlyUsers= +#KillExcludeUsers=root +#InhibitDelayMaxSec=5 +HandlePowerKey=suspend +#HandleSuspendKey=suspend +#HandleHibernateKey=hibernate +#HandleLidSwitch=ignore +HandleLidSwitchExternalPower=suspend +HandleLidSwitchDocked=ignore +#PowerKeyIgnoreInhibited=no +#SuspendKeyIgnoreInhibited=no +#HibernateKeyIgnoreInhibited=no +#LidSwitchIgnoreInhibited=yes +#HoldoffTimeoutSec=30s +#IdleAction=ignore +#IdleActionSec=30min +#RuntimeDirectorySize=10% +#RuntimeDirectoryInodes=400k +#RemoveIPC=yes +#InhibitorsMax=8192 +#SessionsMax=8192 + +[Sleep] +#AllowSuspend=yes +#AllowHibernation=yes +#AllowSuspendThenHibernate=yes +#AllowHybridSleep=yes +#AllowPowerOffInterrupts=no +#BroadcastPowerOffInterrupts=yes +#AllowSuspendInterrupts=no +#BroadcastSuspendInterrupts=yes +#HandleNvidiaSleep=no +#SuspendState=mem standby freeze +#SuspendMode= +#HibernateState=disk +#HibernateMode=platform shutdown +#HybridSleepState=disk +#HybridSleepMode=suspend platform shutdown +#HibernateDelaySec=10800 + +# vim: ft=ini