From f7d3f1eed471a171f9b858bc49ca95a4ca359914 Mon Sep 17 00:00:00 2001 From: TheEdgeOfRage Date: Sat, 3 Feb 2024 10:19:34 +0100 Subject: [PATCH] Add wayland env vars to zprofile --- dot_zprofile.tmpl | 2 ++ dot_zshrc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl index cd48432..3cf6d6e 100644 --- a/dot_zprofile.tmpl +++ b/dot_zprofile.tmpl @@ -16,6 +16,8 @@ export QT_STYLE_OVERRIDE="kvantum" export GTK_THEME="Breeze-Dark" export VISUAL="nvim" export XDG_CONFIG_HOME="$HOME/.config" +export XDG_SESSION_TYPE=wayland +export XDG_CURRENT_DESKTOP=sway export VIRTUAL_ENV_DISABLE_PROMPT="true" {{ range $_, $env := .zshrc.env_vars }}export {{ $env.name }}="{{ $env.value }}" {{end}} diff --git a/dot_zshrc b/dot_zshrc index f00bab5..322e023 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -66,4 +66,4 @@ fi # startx on tty1 [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && exec startx -- vt1 # sway on tty2 -[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec sway --unsupported-gpu +[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec sway