diff options
Diffstat (limited to '.config/yadm/scripts/bootstrap/gammastep')
-rwxr-xr-x | .config/yadm/scripts/bootstrap/gammastep/bootstrap | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/yadm/scripts/bootstrap/gammastep/bootstrap b/.config/yadm/scripts/bootstrap/gammastep/bootstrap new file mode 100755 index 0000000..d3cedd1 --- /dev/null +++ b/.config/yadm/scripts/bootstrap/gammastep/bootstrap @@ -0,0 +1,13 @@ +#!/bin/zsh + + +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 +else + echo "[gammastep] setup pass and insert latitude and longitude first to enable the service unit." + echo "[gammastep] press Enter to acknowledge" + read ACK +fi |