Setup hyprpolkitagent separately with dark mode applied

This commit is contained in:
David Heinemeier Hansson
2025-07-09 10:29:39 -07:00
parent 841596c5a3
commit 1df37bd3d7
3 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,8 @@
yay -S --noconfirm --needed \ yay -S --noconfirm --needed \
hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils \ hyprland hyprshot hyprpicker hyprlock hypridle hyprland-qtutils \
wofi waybar mako swaybg \ wofi waybar mako swaybg \
xdg-desktop-portal-hyprland xdg-desktop-portal-gtk xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
# Start Hyprland on first session # Start Hyprland on first session
echo "[[ -z \$DISPLAY && \$(tty) == /dev/tty1 ]] && exec Hyprland" >~/.bash_profile echo "[[ -z \$DISPLAY && \$(tty) == /dev/tty1 ]] && exec Hyprland" >~/.bash_profile

View File

@ -0,0 +1,8 @@
yay -S --noconfirm --needed hyprpolkitagent
# Ensure hyprpolkitagent is running in dark mode
mkdir -p ~/.config/systemd/user/hyprpolkitagent.service.d
cat >~/.config/systemd/user/hyprpolkitagent.service.d/override.conf <<EOF
[Service]
Environment=GTK_THEME=Adwaita-dark
EOF

7
migrations/1752081300.sh Normal file
View File

@ -0,0 +1,7 @@
echo "Switching system authentication prompt to dark mode"
source ~/.local/share/omarchy/install/hyprpolkitagent.sh
# Reload user systemd and restart service
systemctl --user daemon-reexec
systemctl --user daemon-reload
systemctl --user restart hyprpolkitagent