From e4b097773e616106a488c7ac4bbc122e0ba46201 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 17 Oct 2023 09:09:42 -0500 Subject: [PATCH] feat(hypr): add launcher for xdg desktop portal --- dots/.config/hypr/hyprland.conf | 1 + .../hypr/scripts/launchers/launch-desktop-portal.bash | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index 29bf65a4..3920a826 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -8,6 +8,7 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK 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 diff --git a/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash b/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash new file mode 100755 index 00000000..bea00051 --- /dev/null +++ b/dots/.config/hypr/scripts/launchers/launch-desktop-portal.bash @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +sleep 1 +killall -e xdg-desktop-portal-hyprland +killall -e xdg-desktop-portal-wlr +killall xdg-desktop-portal +/usr/lib/xdg-desktop-portal-hyprland & +sleep 2 +/usr/lib/xdg-desktop-portal &