From dafbc86433b63fea8e309c72f53ad0ff8f4696d6 Mon Sep 17 00:00:00 2001 From: stkhan Date: Fri, 11 Nov 2022 21:04:46 -0600 Subject: fix redshift --- scripts/sarc.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/sarc.sh b/scripts/sarc.sh index f810fae..5c4baca 100755 --- a/scripts/sarc.sh +++ b/scripts/sarc.sh @@ -58,6 +58,11 @@ power() { *) exit 1 ;; esac } + +redshift_run() { + redshift -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | jq -r '"\(.location.lat):\(.location.lng)"') +} + case $1 in --get_weather) rm -rf ~/.cache/weather_report @@ -65,6 +70,8 @@ case $1 in $sarc_terminal less -Srf ~/.cache/weather_report;; --search_web) search_web;; + --redshift) + redshift_run;; --unicode) get_unicode;; --power) power;; --goto-website) goto_website;; -- cgit v1.2.3