Redshift: Configuring redshift

This commit is contained in:
Zoe Roux
2021-12-29 21:30:51 +01:00
parent d11690703e
commit 59f6251d78
2 changed files with 12 additions and 13 deletions
+11 -12
View File
@@ -3,20 +3,19 @@
pid=$(pidof redshift)
case $BUTTON in
1)
redshift -x
if [ ! "$pid" = "" ]; then
kill -9 $pid
redshift -x
pid=""
else
redshift -r -l "$LATLONG" > /dev/null 2> /dev/null &
pid="1"
fi;;
1)
if [ ! "$pid" = "" ]; then
kill -9 $pid
redshift -x > /dev/null 2> /dev/null &
pid=""
else
redshift -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') > /dev/null 2> /dev/null &
pid="1"
fi;;
esac
if [ "$pid" = "" ]; then
echo "^c#ebcb8b^^d^"
echo "^c#ebcb8b^^d^"
else
echo "^c#ebcb8b^^d^"
echo "^c#ebcb8b^^d^"
fi
+1 -1
View File
@@ -21,7 +21,7 @@ feh --bg-center ~/.wallpapers/blue-period.jpg
dwmblocks &
sxhkd &
clipmenud &
playerctld daemon
redshift -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') &
while true; do
dwm