root: add elogind

This commit is contained in:
lelgenio 2021-06-16 03:32:46 -03:00
parent 0951afb313
commit d28ecaaea8
2 changed files with 65 additions and 1 deletions

View File

@ -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:

52
root/elogind.conf Normal file
View File

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