aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/system-user/swayidle.service
blob: 9757f0b97b6e61418d8ce50c38130505f31915a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Idle manager for Wayland
Documentation=man:swayidle(1)
PartOf=graphical-session.target

[Service]
Type=simple
ExecStart=/usr/bin/swayidle -w \
            timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \
            timeout 310 "systemctl suspend-then-hibernate" \
            before-sleep "loginctl lock-session" \
            lock "hyprlock" \
            unlock "pkill -USR1 hyprlock"


[Install]
WantedBy=sway-session.target