summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-11-11 21:04:46 -0600
committerstkhan <personal@slickd.xyz>2022-11-11 21:04:46 -0600
commitdafbc86433b63fea8e309c72f53ad0ff8f4696d6 (patch)
treed3199cfd6d55241ddcf62b799bbf3ffc799cf6c8 /scripts
parent1867d262a3098f6e02544c2b58f4fe63798dc0a3 (diff)
fix redshift
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sarc.sh7
1 files changed, 7 insertions, 0 deletions
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;;