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
|
#modified to be a posix shell script, and to save location data to a file
|
||||||
#so gammastep still works if internet is out.
|
#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"
|
FN="$HOME/.cache/gs_geoclue.txt"
|
||||||
gammastep -l "$( cat "$FN" | jq ".latitude" )":"$( cat "$FN" | jq ".longitude" )" -m wayland
|
|
||||||
|
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
|
wob
|
||||||
wayland-idle-inhibitor-git
|
wayland-idle-inhibitor-git
|
||||||
tofi
|
tofi
|
||||||
librewolf-bin
|
sway-audio-idle-inhibit-git"
|
||||||
hyprland
|
|
||||||
waybar-hyprland-git"
|
|
||||||
|
|
||||||
sudo pacman -S base-devel fakeroot
|
sudo pacman -S base-devel fakeroot
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue