swayidle service
This commit is contained in:
parent
7b062201a7
commit
0cbc8bb136
|
@ -0,0 +1 @@
|
||||||
|
/home/marchambault/.config/systemd/user/swayidle.service
|
|
@ -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
|
|
@ -3,6 +3,8 @@
|
||||||
# run units
|
# run units
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user enable --now tmux.service
|
systemctl --user enable --now tmux.service
|
||||||
|
systemctl --user enable --now redshift.service
|
||||||
|
systemctl --user enable --now swayidle.service
|
||||||
systemctl --user enable --now mpv.service
|
systemctl --user enable --now mpv.service
|
||||||
|
|
||||||
# install tmux plugins
|
# install tmux plugins
|
||||||
|
|
Loading…
Reference in New Issue