From 845da00c71dc3ea4f3fa962ecbfd4d00f31bd324 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Wed, 14 Dec 2022 15:29:48 +0100 Subject: [PATCH] Add some wayland related env variables --- tree/.config/fish/config.fish.tpl | 1 + tree/.config/sway/config.tpl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tree/.config/fish/config.fish.tpl b/tree/.config/fish/config.fish.tpl index 2dcb482..b12473b 100644 --- a/tree/.config/fish/config.fish.tpl +++ b/tree/.config/fish/config.fish.tpl @@ -60,6 +60,7 @@ starship init fish | source if status is-login and set -q XDG_SESSION_TYPE XDG_VTNR and test $XDG_SESSION_TYPE = "tty" -a $XDG_VTNR = "1" + set -x XDG_SESSION_TYPE sway exec sway end {% end %} diff --git a/tree/.config/sway/config.tpl b/tree/.config/sway/config.tpl index aa50caf..5ae784d 100644 --- a/tree/.config/sway/config.tpl +++ b/tree/.config/sway/config.tpl @@ -313,3 +313,6 @@ for_window [app_id="zoom"] floating enable for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable include /etc/sway/config.d/* + +exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +