summaryrefslogtreecommitdiff
path: root/.config/sway/xdpw
blob: 05ce59460b35a5486e13d6f25d2a8d549b55a43e (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
# Import the WAYLAND_DISPLAY env var from sway into the systemd user session.
dbus-update-activation-environment --systemd \
	XDG_SESSION_TYPE=wayland DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

# Stop any services that are running, so that they receive the new env var when they restart.
systemctl --user stop pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start wireplumber