summaryrefslogtreecommitdiff
path: root/.config/yadm/scripts/bootstrap/gammastep/bootstrap
blob: d3cedd17b03eebf9e594c16827363beac3e15398 (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