Use environment.d to load set env variables

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2022-01-04 16:16:08 +01:00
parent 6ed415c41a
commit f14d73dbf4
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 32 additions and 67 deletions

View file

@ -25,6 +25,9 @@ dconf load / < "${XDG_CONFIG_HOME}/dconf/root.conf"
# Activate correct crontab file
crontab "${XDG_CONFIG_HOME}/cron/crontab"
# Load env variables
export "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)"
# If we are on tty1 we start the x-server
if [ "$(tty)" = "/dev/tty1" ]; then
startx "${XDG_CONFIG_HOME}/X11/xinitrc" -- -keeptty > "${XDG_LOG_HOME}/xorg.log" 2>&1 && exit