Change swayidle to a systemd service
This commit is contained in:
parent
c64a8402bb
commit
49991faf6e
|
@ -1,4 +1,5 @@
|
|||
# vim: ft=sh
|
||||
#TODO: Convert to systemd services, where reasonable
|
||||
|
||||
################################################################################
|
||||
# Background utilities
|
||||
|
@ -7,9 +8,6 @@
|
|||
# Window transparency
|
||||
exec ${HOME}/scripts/sway/window-transparency.py
|
||||
|
||||
# Custom SwayIdle script
|
||||
exec swayidle -w timeout 500 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
|
||||
#exec ${HOME}/scripts/sway/idle.sh start &
|
||||
|
||||
# SSH Add - Should be started by profile instead
|
||||
# exec eval `ssh-agent -a ${SSH_AUTH_SOCK}`
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Swayidle to trigger idle actions
|
||||
Documentation=man:swayidle(1)
|
||||
PartOf=graphical-session.target
|
||||
After=sway.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/var/home/jpm/scripts/sway/idle.sh start
|
||||
ExecStop=/var/home/jpm/scripts/sway/idle.sh stop
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
Loading…
Reference in New Issue