diff --git a/sway/autostart b/sway/autostart index c42567d57..bfa2e9960 100644 --- a/sway/autostart +++ b/sway/autostart @@ -5,10 +5,6 @@ # Background utilities ################################################################################ -# Window transparency -exec ${HOME}/scripts/sway/window-transparency.py - - # SSH Add - Should be started by profile instead # exec eval `ssh-agent -a ${SSH_AUTH_SOCK}` exec ssh-add & diff --git a/sway/systemd/sway-transparency.service b/sway/systemd/sway-transparency.service new file mode 100644 index 000000000..8e0cfd694 --- /dev/null +++ b/sway/systemd/sway-transparency.service @@ -0,0 +1,12 @@ +[Unit] +Description=Sway window transparency daemon +PartOf=graphical-session.target +After=sway.service + +[Service] +Type=simple +ExecStart=/var/home/jpm/scripts/sway/window-transparency.py +Restart=unless-stopped + +[Install] +WantedBy=graphical-session.target