Files
.dotfiles/.config/sway/scripts/light.sh
2024-03-21 12:35:55 +01:00

7 lines
196 B
Bash
Executable File

#!/bin/sh
# install wlsunset
CONTENT=$(curl -s https://freegeoip.app/json/)
longitude=$(echo $CONTENT | jq .longitude)
latitude=$(echo $CONTENT | jq .latitude)
wlsunset -l $latitude -L $longitude