summaryrefslogtreecommitdiff
path: root/scripts/sarc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sarc.sh')
-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;;