logind
Type definitions for logind.conf — the systemd-logind (login manager) configuration file.
import type { LogindConf, LogindHandleAction } from '@sysopkit/linux/systemd/logind';LogindConf
Section titled “LogindConf”type LogindHandleAction = | 'ignore' | 'poweroff' | 'reboot' | 'halt' | 'kexec' | 'suspend' | 'hibernate' | 'hybrid-sleep' | 'suspend-then-hibernate' | 'sleep' | 'lock' | 'factory-reset';
type LogindConf = { Login: { NAutoVTs?: number; ReserveVT?: number; KillUserProcesses?: 'yes' | 'no'; KillOnlyUsers?: string; KillExcludeUsers?: string; IdleAction?: LogindHandleAction; IdleActionSec?: number; InhibitDelayMaxSec?: number; UserStopDelaySec?: number | 'infinity'; HandlePowerKey?: LogindHandleAction; HandlePowerKeyLongPress?: LogindHandleAction; HandleRebootKey?: LogindHandleAction; HandleRebootKeyLongPress?: LogindHandleAction; HandleSuspendKey?: LogindHandleAction; HandleSuspendKeyLongPress?: LogindHandleAction; HandleHibernateKey?: LogindHandleAction; HandleHibernateKeyLongPress?: LogindHandleAction; HandleLidSwitch?: LogindHandleAction; HandleLidSwitchExternalPower?: LogindHandleAction; HandleLidSwitchDocked?: LogindHandleAction; PowerKeyIgnoreInhibited?: 'yes' | 'no'; SuspendKeyIgnoreInhibited?: 'yes' | 'no'; HibernateKeyIgnoreInhibited?: 'yes' | 'no'; LidSwitchIgnoreInhibited?: 'yes' | 'no'; RebootKeyIgnoreInhibited?: 'yes' | 'no'; HoldoffTimeoutSec?: number; RuntimeDirectorySize?: string; RuntimeDirectoryInodesMax?: number | string; InhibitorsMax?: number; SessionsMax?: number; RemoveIPC?: 'yes' | 'no'; StopIdleSessionSec?: number | 'infinity'; };};Key Options
Section titled “Key Options”| Option | Description |
|---|---|
NAutoVTs | Number of virtual terminals to allocate for autovt services (default: 6). |
KillUserProcesses | Kill user processes when user logs out completely. |
HandleLidSwitch | Action when laptop lid is closed. |
HandlePowerKey | Action when power button is pressed. |
HandleSuspendKey / HandleHibernateKey | Action for sleep keys. |
InhibitDelayMaxSec | Maximum delay for inhibitor locks before shutdown/sleep. |
RemoveIPC | Remove SysV/POSIX IPC objects when user logs out (default: yes). |