From 8cf64ea4acb750fb234bf6138c10f057f6f7fc30 Mon Sep 17 00:00:00 2001 From: Adam <24621027+WhiteDopeOnPunk@users.noreply.github.com> Date: Mon, 1 Jan 2024 06:31:22 -0500 Subject: [PATCH] make redshift actually get location instead of using hard-coded value --- configs/x11/xprofile | 24 +++++++++++++++++++----- readme.md | 1 - 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/configs/x11/xprofile b/configs/x11/xprofile index fa7522b..6f4fc91 100755 --- a/configs/x11/xprofile +++ b/configs/x11/xprofile @@ -7,9 +7,23 @@ if [ -f ".screenlayout/default.sh" ]; then . ".screenlayout/default.sh" & fi +# Tint screen at night +redshift -l \ + $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" \ + | sed 's/.*"lat": \(-\?[0-9.]*\).*"lng": \(-\?[0-9.]*\).*/\1:\2/') & + +# Password prompt popup /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -picom -b & # Compositor -xset r rate 200 100 & # Key repeat rate -unclutter & # Hide mouse cursor after inactivity -redshift -l 43:-70 & # Tint screen at night if you're in new england (this should be changed) -xclip & # Make clipboard work + +# Compositor +picom -b & + +# Key repeat rate +xset r rate 200 100 & + +# Hide mouse cursor after inactivity +unclutter & + +# Make clipboard work +xclip & + diff --git a/readme.md b/readme.md index 4c865f8..f749c5d 100644 --- a/readme.md +++ b/readme.md @@ -79,7 +79,6 @@ servers to update treesitter - Awesomewm reload races the bg/color script and may not update. Just reload awesome again manually for now - Installer can hang at "retrieving packages" - I think this is a pacman/mirror issue. Just kill and restart it, it'll pick up where it left off -- Redshift is hard coded to New England because geolocating had an error and I was lazy - lsp-zero (nvim plugin) changed some things and needs to be reconfigured ## Future: