aboutsummaryrefslogtreecommitdiff
path: root/bash/99-wm.profile
blob: bb5cd2a762d6e9f98eb49afcb10ab20bf5cd43be (plain)
1
2
3
4
5
6
7
# vi: ft=sh

if [ "$WM_AUTO_START" = "yes" ] && [ -z $DISPLAY ] && [ "$(tty)" = "$WM_TTY" ]; then
	systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
	dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
	exec "$WM_WM"
fi