mirror of
https://github.com/roles-ansible/ansible_role_sway.git
synced 2024-08-16 13:49:49 +02:00
9 lines
574 B
Django/Jinja
9 lines
574 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
# import variables into system-user enviroment
|
|
# based on the instructions in the sway wiki
|
|
# see also https://github.com/swaywm/sway/issues/5732
|
|
# and https://github.com/systemd/systemd/blob/dfc637d0ff756889e8e5b7cb4ec991eb06069aa1/xorg/50-systemd-user.sh
|
|
|
|
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
|
exec hash dbus-update-activation-environment 2>/dev/null && \
|
|
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_CURRENT_DESKTOP=sway
|