summaryrefslogtreecommitdiff
path: root/.config/sway/xdpw
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2022-03-12 13:47:10 +0100
committerMehdi Sadeghi <mehdi@mehdix.org>2022-03-12 13:50:56 +0100
commit86c3a2253e8761846e79bbf4164766a73bdfd732 (patch)
treeaba624ce82a8e6b85da0a6aceab3eb3e6d8ef6a2 /.config/sway/xdpw
parent001d17542cdda531fa7a2ee8ab90d47e01d251dc (diff)
Adjust KB layout. Add xdg desktop portal config.
- Swap right meta and control. - Add xdg-portal-desktop-wlroot - Set term to foot (foot-extra was a mistake) - Remove Plan9 from generic path
Diffstat (limited to '.config/sway/xdpw')
-rwxr-xr-x.config/sway/xdpw7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/sway/xdpw b/.config/sway/xdpw
new file mode 100755
index 0000000..81fc8ca
--- /dev/null
+++ b/.config/sway/xdpw
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Import the WAYLAND_DISPLAY env var from sway into the systemd user session.
+dbus-update-activation-environment --systemd 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 pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
+systemctl --user start pipewire-media-session