punktdateien/hypr/scripts/enforce-xdph.sh

13 lines
619 B
Bash
Raw Normal View History

2023-12-08 17:33:11 +01:00
#!/bin/bash
# jstm's xdpw enforcer
sleep 1 # wait for xdg-desktop-portal to start
killall -e xdg-desktop-portal-hyprland # kill all running instances of xdph
killall -e xdg-desktop-portal-wlr # kill all running instances of xdpw
killall xdg-desktop-portal # kill all running instances of xdp
/usr/lib/xdg-desktop-portal-hyprland & # run xdph
sleep 4 # wait for xdph to start
/usr/lib/xdg-desktop-portal & # run xdp
sleep 1s # wait for xdp to start
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & # allow for screensharing