make redshift actually get location instead of using hard-coded value

This commit is contained in:
Adam 2024-01-01 06:31:22 -05:00
parent 1f87966dc7
commit 8cf64ea4ac
2 changed files with 19 additions and 6 deletions

View file

@ -7,9 +7,23 @@ if [ -f ".screenlayout/default.sh" ]; then
. ".screenlayout/default.sh" & . ".screenlayout/default.sh" &
fi 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 & /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
picom -b & # Compositor
xset r rate 200 100 & # Key repeat rate # Compositor
unclutter & # Hide mouse cursor after inactivity picom -b &
redshift -l 43:-70 & # Tint screen at night if you're in new england (this should be changed)
xclip & # Make clipboard work # Key repeat rate
xset r rate 200 100 &
# Hide mouse cursor after inactivity
unclutter &
# Make clipboard work
xclip &

View file

@ -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 - 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, - 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 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 - lsp-zero (nvim plugin) changed some things and needs to be reconfigured
## Future: ## Future: