diff --git a/hypr/conf/autostart.conf b/hypr/conf/autostart.conf index cda2d6a..b66a4f6 100644 --- a/hypr/conf/autostart.conf +++ b/hypr/conf/autostart.conf @@ -2,6 +2,9 @@ # Autostart # ----------------------------------------------------- +# Setup XDG for screen sharing +exec-once = ~/dotfiles/hypr/scripts/xdg.sh + # Load Dunst Notification Manager exec-once = dunst diff --git a/hypr/scripts/xdg.sh b/hypr/scripts/xdg.sh new file mode 100755 index 0000000..32983ec --- /dev/null +++ b/hypr/scripts/xdg.sh @@ -0,0 +1,12 @@ +#!/bin/bash +sleep 1 +killall xdg-desktop-portal-hyprland +killall xdg-desktop-portal-gnome +killall xdg-desktop-portal-kde +killall xdg-desktop-portal-lxqt +killall xdg-desktop-portal-wlr +killall xdg-desktop-portal +sleep 1 +/usr/lib/xdg-desktop-portal-hyprland & +sleep 2 +/usr/lib/xdg-desktop-portal &