mirror of
https://github.com/eoli3n/dotfiles
synced 2024-05-21 23:16:06 +02:00
fix dbus problem with sway when running with systemd
This commit is contained in:
parent
6e930097db
commit
567a17f32e
|
@ -11,9 +11,9 @@
|
|||
dest: ~/.config/sway/config
|
||||
|
||||
- name: autostart sway
|
||||
copy:
|
||||
src: sway.fish
|
||||
dest: ~/.config/fish/conf.d/
|
||||
template:
|
||||
src: sway.fish.j2
|
||||
dest: ~/.config/fish/conf.d/sway.fish
|
||||
|
||||
- name: create swaylock dir config
|
||||
file:
|
||||
|
|
|
@ -201,7 +201,11 @@ exec_always bash -c "pgrep -x mako || mako"
|
|||
#exec_always bash -c "pgrep -x wlsunset || wlsunset -l 43.6 -L 3.9"
|
||||
|
||||
# xdg-desktop-portal-wlr
|
||||
{% if ansible_service_mgr == "systemd" %}
|
||||
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
|
||||
{% else %}
|
||||
exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
{% endif %}
|
||||
|
||||
# exec foreground apps
|
||||
|
||||
|
|
|
@ -10,6 +10,6 @@ set TTY1 (tty)
|
|||
|
||||
if test -z "$DISPLAY"; and test $TTY1 = "/dev/tty1"
|
||||
# Debug
|
||||
#exec dbus-run-session sway -d 2> ~/sway.log
|
||||
exec dbus-run-session sway
|
||||
# exec {% if not ansible_service_mgr == "systemd" %}dbus-run-session {% endif %} sway -d 2> ~/sway.log
|
||||
exec{% if not ansible_service_mgr == "systemd" %} dbus-run-session{% endif %} sway
|
||||
end
|
Loading…
Reference in New Issue