f7d3f1eed471a171f9b858bc49ca95a4ca359914
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Add wayland env vars to zprofile
Diff
1diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl
2index cd48432ea55ec6e9915fbb6c67010381679f2693..3cf6d6e7bf386648776d49d21daf282509e81c70 100644
3--- a/dot_zprofile.tmpl
4+++ b/dot_zprofile.tmpl
5@@ -16,6 +16,8 @@ export QT_STYLE_OVERRIDE="kvantum"
6 export GTK_THEME="Breeze-Dark"
7 export VISUAL="nvim"
8 export XDG_CONFIG_HOME="$HOME/.config"
9+export XDG_SESSION_TYPE=wayland
10+export XDG_CURRENT_DESKTOP=sway
11 export VIRTUAL_ENV_DISABLE_PROMPT="true"
12 {{ range $_, $env := .zshrc.env_vars }}export {{ $env.name }}="{{ $env.value }}"
13 {{end}}
14diff --git a/dot_zshrc b/dot_zshrc
15index f00bab5fbb5c7b4094f021e0a5f5ed000d59ad04..322e023466b7b2dfe6fd70b25b41d6e2d8acb33a 100644
16--- a/dot_zshrc
17+++ b/dot_zshrc
18@@ -66,4 +66,4 @@ fi
19 # startx on tty1
20 [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && exec startx -- vt1
21 # sway on tty2
22-[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec sway --unsupported-gpu
23+[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec sway