fix gammastep-init.sh to not have issues when geoclue web service is
rate limited, change format location data is saved as. add sway-audio-idle-inhibit-git to aur packages remove some packages from aur listmaster
parent
f5dfa7761a
commit
568706c9df
|
@ -4,7 +4,20 @@
|
|||
#modified to be a posix shell script, and to save location data to a file
|
||||
#so gammastep still works if internet is out.
|
||||
|
||||
FN="$HOME/.cache/gs_geoclue.json"
|
||||
JSFN="$HOME/.cache/gs_geoclue.json"
|
||||
|
||||
curl -Ls https://ipapi.co/json > "$FN"
|
||||
gammastep -l "$( cat "$FN" | jq ".latitude" )":"$( cat "$FN" | jq ".longitude" )" -m wayland
|
||||
FN="$HOME/.cache/gs_geoclue.txt"
|
||||
|
||||
curl -Ls https://ipapi.co/json > "$FN".tmp
|
||||
|
||||
#dont update file if error received, could also check if an error flag is present
|
||||
if [ "$(cat "$JSFN".tmp | wc -l)" -gt 4 ]; then
|
||||
mv "$JSFN".tmp "$JSFN"
|
||||
LAT="$( cat "$JSFN" | jq ".latitude" )"
|
||||
LONG="$( cat "$JSFN" | jq ".longitude" )"
|
||||
|
||||
echo "$LAT $LONG" > "$FN"
|
||||
|
||||
fi
|
||||
|
||||
gammastep -l "$( cat "$FN" | cut -d' ' -f1)":"$( cat "$FN" | cut -d' ' -f2)" -m wayland
|
||||
|
|
|
@ -22,9 +22,7 @@ cli-visualizer
|
|||
wob
|
||||
wayland-idle-inhibitor-git
|
||||
tofi
|
||||
librewolf-bin
|
||||
hyprland
|
||||
waybar-hyprland-git"
|
||||
sway-audio-idle-inhibit-git"
|
||||
|
||||
sudo pacman -S base-devel fakeroot
|
||||
|
||||
|
|
Loading…
Reference in New Issue