12 lines
619 B
Bash
Executable file
12 lines
619 B
Bash
Executable file
#!/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
|