environment: Set up environment variables via systemd
We were setting these in fish shell setup during login. Move them here so that they can be correctly inherited by systemd services. Without this, the tmux session service does not get the environment variables which do not get set by the time tmux session service starts. https://www.freedesktop.org/software/systemd/man/environment.d.html
This commit is contained in:
parent
fbae9fcea3
commit
0fcf2563ad
5 changed files with 23 additions and 5 deletions
10
environment/.config/environment.d/10-xdg.conf
Normal file
10
environment/.config/environment.d/10-xdg.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
XDG_CONFIG_HOME=$HOME/.config
|
||||||
|
XDG_CACHE_HOME=$HOME/.cache
|
||||||
|
XDG_DATA_HOME=$HOME/.local/share
|
||||||
|
XDG_STATE_HOME=$HOME/.local/state
|
||||||
|
|
||||||
|
XDG_SESSION_TYPE=tty
|
||||||
|
XDG_SESSION_DESKTOP=sway
|
||||||
|
XDG_CURRENT_DESKTOP=sway
|
||||||
|
|
||||||
|
SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
|
2
environment/.config/environment.d/20-firefox.conf
Normal file
2
environment/.config/environment.d/20-firefox.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
MOZ_ENABLE_WAYLAND=1
|
||||||
|
MOZ_DBUS_REMOTE=1
|
2
environment/.config/environment.d/30-qt.conf
Normal file
2
environment/.config/environment.d/30-qt.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
QT_QPA_PLATFORM=wayland
|
||||||
|
QT_QPA_PLATFORMTHEME=qt5ct
|
9
environment/.config/environment.d/40-misc.conf
Normal file
9
environment/.config/environment.d/40-misc.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
MANPAGER=nvim +Man!
|
||||||
|
EDITOR=nvim
|
||||||
|
VISUAL=nvim
|
||||||
|
|
||||||
|
GST_DEBUG_NO_COLOR=1
|
||||||
|
GST_DEBUG_COLOR_MODE=off
|
||||||
|
GST_DEBUG_DUMP_DOT_DIR=/tmp/gst-dot
|
||||||
|
|
||||||
|
GHCUP_USE_XDG_DIRS=1
|
|
@ -1,5 +0,0 @@
|
||||||
XDG_CURRENT_DESKTOP="sway"
|
|
||||||
MOZ_ENABLE_WAYLAND=1
|
|
||||||
GTK_USE_PORTAL=0
|
|
||||||
QT_QPA_PLATFORM=wayland
|
|
||||||
QT_QPA_PLATFORMTHEME=qt5ct
|
|
Loading…
Reference in a new issue