7 lines
196 B
Bash
Executable File
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
|