mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
[sway/idle] moved to systemd
This commit is contained in:
parent
b923666428
commit
9b00389e38
2 changed files with 16 additions and 6 deletions
16
sway/swayidle.service
Normal file
16
sway/swayidle.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Idle manager for Wayland
|
||||
Documentation=man:swayidle(1)
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/swayidle -w \
|
||||
timeout 285 'notify-send -a lockscreen -c lock-warn -u critical -t 14900 -i system-lock-screen "Locking Screen" "Will Lock Screen in 15s"' \
|
||||
timeout 300 '~/.dotfiles/sway/lock.sh' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep '~/.dotfiles/sway/lock.sh'
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
Loading…
Add table
Add a link
Reference in a new issue