diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-02-19 18:46:58 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-02-22 16:40:15 +0100 |
commit | d4645d2c48434ba7210921a7a170596fb987db03 (patch) | |
tree | 9116640e2fd6a612fd3c7e5e01d1b3bab5b3d76c /.config/yadm/scripts/bootstrap/gammastep | |
parent | 2daa93b9985ecb8aba6531fdd93859a8dd451be3 (diff) |
[yadm] bootstrap packages for complete install
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 |