diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index 3920a826..3078070d 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -4,11 +4,8 @@ source = ~/.config/hypr/wm/bindings.conf source = ~/.config/hypr/wm/appearance.conf source = ~/.config/hypr/wm/monitors.conf source = ~/.config/hypr/wm/window-rules.conf -exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME -exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash exec-once = ~/.config/hypr/scripts/launchers/launch-waybar.bash -exec-once = ~/.config/hypr/scripts/launchers/launch-desktop-portal.bash exec-once = mako --history 1 exec-once = udiskie --tray exec-once = blueman-applet @@ -18,3 +15,6 @@ exec = sleep 5 && opensnitch-ui --background exec = systemd-run --user -u wallpaper-manager ~/.config/hypr/scripts/init-wallpapers.bash || systemctl --user restart wallpaper-manager exec-once = systemctl --user start compositor.target exec-once = xwaylandvideobridge +exec = ~/.config/hypr/scripts/launchers/launch-desktop-portal.bash +exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME diff --git a/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash b/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash index bea00051..d0946abf 100755 --- a/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash +++ b/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash @@ -3,6 +3,9 @@ sleep 1 killall -e xdg-desktop-portal-hyprland killall -e xdg-desktop-portal-wlr killall xdg-desktop-portal -/usr/lib/xdg-desktop-portal-hyprland & +/usr/lib/xdg-desktop-portal-hyprland --verbose & sleep 2 /usr/lib/xdg-desktop-portal & +systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +notify-send "Hyprland Desktop Portal" "Hyprland Desktop Portals Are Ready" -a "Hyprland"