Add some wayland related env variables

This commit is contained in:
2022-12-14 15:29:48 +01:00
parent c066783a94
commit 845da00c71
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,7 @@ starship init fish | source
if status is-login if status is-login
and set -q XDG_SESSION_TYPE XDG_VTNR and set -q XDG_SESSION_TYPE XDG_VTNR
and test $XDG_SESSION_TYPE = "tty" -a $XDG_VTNR = "1" and test $XDG_SESSION_TYPE = "tty" -a $XDG_VTNR = "1"
set -x XDG_SESSION_TYPE sway
exec sway exec sway
end end
{% end %} {% end %}

View File

@ -313,3 +313,6 @@ for_window [app_id="zoom"] floating enable
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
include /etc/sway/config.d/* include /etc/sway/config.d/*
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP