1
0
Fork 0

swayidle service

This commit is contained in:
Massaki Archambault 2019-04-04 19:37:38 -04:00
parent 7b062201a7
commit 0cbc8bb136
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1 @@
/home/marchambault/.config/systemd/user/swayidle.service

View File

@ -0,0 +1,15 @@
[Unit]
Description=Idle manager for Wayland
Documentation=man:swayidle(1)
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/swayidle -w \
timeout 300 'lock' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'lock'
[Install]
WantedBy=sway-session.target

View File

@ -3,6 +3,8 @@
# run units
systemctl --user daemon-reload
systemctl --user enable --now tmux.service
systemctl --user enable --now redshift.service
systemctl --user enable --now swayidle.service
systemctl --user enable --now mpv.service
# install tmux plugins