summaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-25 12:12:25 -0600
committerCraig Jennings <c@cjennings.net>2026-02-25 12:12:25 -0600
commit5fc7688def16f8e8c3f4470c2a85f4cfd5b2dd42 (patch)
treef4ca5869b46143178a08181a8d7ff326d700c072 /dotfiles
parent6aa02040d7554300894a2cf27888f9ec1cce2fd1 (diff)
fix(hyprland): add polkit agent, fix portal startup order, restrict ranger to DWM
Launch polkit-kde-authentication-agent at startup. Restart backend portals (GTK, Hyprland) before the main xdg-desktop-portal to prevent 50s GTK settings proxy timeout. Make ranger DWM-only since Hyprland uses nautilus and dirvish.
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf8
1 files changed, 5 insertions, 3 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index 12efa23..e03e18e 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -12,11 +12,13 @@ monitor=,preferred,auto,auto
# ============================================================================
# Portal and D-Bus setup FIRST, then waybar (needs portal for appearance query)
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE
-# Portal restart (not start) reconnects stale portals on Hyprland restart; waybar
-# chained after so it doesn't block 25s waiting for a dead portal's appearance query
-exec-once = systemctl --user restart xdg-desktop-portal-hyprland xdg-desktop-portal && waybar > ~/.local/var/log/waybar-$(date +%Y-%m-%d-%H%M%S).log 2>&1
+# Portal restart (not start) reconnects stale portals on Hyprland restart.
+# Backend portals (GTK, Hyprland) must restart BEFORE the main portal to avoid
+# a 50s GTK settings proxy timeout. Waybar starts after portals are ready.
+exec-once = systemctl --user restart xdg-desktop-portal-hyprland xdg-desktop-portal-gtk && systemctl --user restart xdg-desktop-portal && waybar > ~/.local/var/log/waybar-$(date +%Y-%m-%d-%H%M%S).log 2>&1
# Core services
+exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
exec-once = dunst > ~/.local/var/log/dunst-$(date +%Y-%m-%d-%H%M%S).log 2>&1
exec-once = hyprland-plugins-setup && sleep 1 && hyprctl dismissnotify -1