From 9fef601a9b47a05b46f1ba829f36db50842d420a Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 13 Mar 2024 12:33:48 +0100 Subject: [gammastep] fix systemd service --- .config/gammastep/systemd/gammastep-user.service | 10 ---------- .config/gammastep/systemd/gammastep-user@.service | 10 ++++++++++ .config/yadm/scripts/bootstrap/gammastep/bootstrap | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 .config/gammastep/systemd/gammastep-user.service create mode 100644 .config/gammastep/systemd/gammastep-user@.service (limited to '.config') diff --git a/.config/gammastep/systemd/gammastep-user.service b/.config/gammastep/systemd/gammastep-user.service deleted file mode 100644 index 65aefcf..0000000 --- a/.config/gammastep/systemd/gammastep-user.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=gammastep at %I - -[Service] -ExecStart=/usr/bin/gammastep -l %I -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=sway-session.target diff --git a/.config/gammastep/systemd/gammastep-user@.service b/.config/gammastep/systemd/gammastep-user@.service new file mode 100644 index 0000000..65aefcf --- /dev/null +++ b/.config/gammastep/systemd/gammastep-user@.service @@ -0,0 +1,10 @@ +[Unit] +Description=gammastep at %I + +[Service] +ExecStart=/usr/bin/gammastep -l %I +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=sway-session.target diff --git a/.config/yadm/scripts/bootstrap/gammastep/bootstrap b/.config/yadm/scripts/bootstrap/gammastep/bootstrap index d3cedd1..7e023e2 100755 --- a/.config/yadm/scripts/bootstrap/gammastep/bootstrap +++ b/.config/yadm/scripts/bootstrap/gammastep/bootstrap @@ -5,7 +5,7 @@ sudo pacman -Sy gammastep if [[ -f "$HOME/.password-store/latitude.gpg" ]]; then sudo ln -s "$HOME/.config/gammastep/systemd/gammastep-user@.service" /etc/systemd/user/ - systemctl --user enable "gammastep-user$(pass latitude):$(pass longitude)" --now + systemctl --user enable "gammastep-user@$(pass latitude):$(pass longitude)" --now else echo "[gammastep] setup pass and insert latitude and longitude first to enable the service unit." echo "[gammastep] press Enter to acknowledge" -- cgit v1.2.3