summaryrefslogtreecommitdiff
path: root/.config/yadm/scripts/bootstrap/gammastep/bootstrap
blob: 7e023e297acbb61390d7daa932f72d4c5cf39c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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