diff --git a/README.md b/README.md index fda6063..c3db46f 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ You also need to install all the dependencies: - Curved Square font https://www.1001freefonts.com/curved-square.font - FontAwesome - JetBrainsMono Font +- xdg-desktop-portal-hyprland +- xdg-desktop-portal-gtk There are probably more, I will update the list next time I'm installing it on a new computer. diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 01c9921..1622cfe 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -43,6 +43,7 @@ exec-once = hypridle exec-once = waybar exec-once = swaybg -i ~/.config/hypr/wallpapers/Purple.jpg -m fill exec-once = ~/.config/hypr/scripts/dynamic-borders.sh +exec-once = ~/.config/hypr/scripts/xdg-desktop-portal-hyprland.sh source = ~/.config/hypr/autostart.conf diff --git a/hypr/scripts/xdg-desktop-portal-hyprland.sh b/hypr/scripts/xdg-desktop-portal-hyprland.sh new file mode 100755 index 0000000..a1ea640 --- /dev/null +++ b/hypr/scripts/xdg-desktop-portal-hyprland.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +sleep 1 +killall -e xdg-desktop-portal-hyprland +killall xdg-desktop-portal +/usr/lib/xdg-desktop-portal-hyprland & +sleep 2 +/usr/lib/xdg-desktop-portal &