summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-27 05:33:41 -0600
committerCraig Jennings <c@cjennings.net>2026-01-27 07:03:35 -0600
commit90b25937a62af59de636a160fdab40439261f35a (patch)
tree07ca7c600c8b8221efbfe160e960e68be0829e0f
parent1e9dd092d37d4e8fdb56d925f95cdcab41797c70 (diff)
fix(hyprland): fix gammastep geoclue integration
Use [general] section header (not [gammastep]), switch to geoclue2 location provider, and start geoclue demo agent in hyprland.conf.
-rwxr-xr-xarchsetup2
-rw-r--r--dotfiles/hyprland/.config/gammastep/config.ini21
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf3
3 files changed, 5 insertions, 21 deletions
diff --git a/archsetup b/archsetup
index 790e966..01faa82 100755
--- a/archsetup
+++ b/archsetup
@@ -1081,7 +1081,7 @@ EOF
action="enabling geoclue geolocation service" && display "task" "$action"
systemctl enable geoclue.service >> "$logfile" 2>&1 || error_warn "$action" "$?"
- # Whitelist gammastep in geoclue (prevents "unable to obtain geoclue client path" error)
+ # Whitelist gammastep in geoclue config (geoclue demo agent is started via hyprland.conf exec-once)
action="whitelisting gammastep in geoclue" && display "task" "$action"
if ! grep -q "^\[gammastep\]" /etc/geoclue/geoclue.conf 2>/dev/null; then
cat >> /etc/geoclue/geoclue.conf << 'EOF'
diff --git a/dotfiles/hyprland/.config/gammastep/config.ini b/dotfiles/hyprland/.config/gammastep/config.ini
index f50a701..bbb15ee 100644
--- a/dotfiles/hyprland/.config/gammastep/config.ini
+++ b/dotfiles/hyprland/.config/gammastep/config.ini
@@ -1,25 +1,8 @@
-[gammastep]
-; Color temperature in Kelvin (same as redshift)
+[general]
temp-day=6500
temp-night=4500
-
-; Brightness (1.0 = full, 0.8 = 20% dimmed)
brightness-day=1.0
brightness-night=1.0
-
-; Gamma correction
gamma=1.0
-
-; Fade between day/night
fade=1
-
-; Wayland adjustment method (not randr)
-adjustment-method=wayland
-
-; Location for sunrise/sunset calculation
-location-provider=manual
-
-[manual]
-; New Orleans, LA
-lat=29.951065
-lon=-90.071533
+location-provider=geoclue2
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index 709865a..1883423 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -15,7 +15,8 @@ exec-once = waybar
exec-once = swww-daemon && sleep 1 && swww img ~/pictures/wallpaper/trondheim-norway.jpg
exec-once = dunst
exec-once = hypridle
-exec-once = gammastep-indicator
+exec-once = /usr/lib/geoclue-2.0/demos/agent
+exec-once = gammastep
exec-once = blueman-applet
exec-once = /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP