From 642148b24fcfb50220dcb6db29f7a3edf32541e3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 30 Oct 2023 09:39:18 +0100 Subject: [gammastep] use "pass" to pass location --- .config/gammastep/systemd/gammastep-user.service | 4 ++-- .config/yadm/bootstrap | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/gammastep/systemd/gammastep-user.service b/.config/gammastep/systemd/gammastep-user.service index dadf8e0..65aefcf 100644 --- a/.config/gammastep/systemd/gammastep-user.service +++ b/.config/gammastep/systemd/gammastep-user.service @@ -1,8 +1,8 @@ [Unit] -Description=gammastep +Description=gammastep at %I [Service] -ExecStart=/usr/bin/gammastep +ExecStart=/usr/bin/gammastep -l %I Restart=on-failure RestartSec=5 diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 06e079f..9be53e9 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -32,8 +32,8 @@ fi # # if command -v gammastep > /dev/null 2>&1; then - sudo ln -s "$HOME/.config/gammastep/systemd/gammastep-user.service" /etc/systemd/user/ - systemctl --user enable "gammastep-user" --now + sudo ln -s "$HOME/.config/gammastep/systemd/gammastep-user@.service" /etc/systemd/user/ + systemctl --user enable "gammastep-user$(pass latitude):$(pass longitude)" --now fi # # -- cgit v1.2.3