From 2bb77a872fe12b3368f93a1647d570ca6431da21 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Mon, 13 Nov 2023 08:55:17 +0100 Subject: [PATCH] Add xdg script --- hypr/conf/autostart.conf | 3 +++ hypr/scripts/xdg.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 hypr/scripts/xdg.sh 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 &