vincentbernat.i3wm-configur.../xsession
Vincent Bernat ae691bb025 systemd: tentative to manage session with systemd
To me, I think it was cleaner to have a parameter with the current
display. This way, the session is specific to the current display. It
seems BindsTo doesn't think this way.
2020-01-19 19:06:49 +01:00

26 lines
715 B
Bash

#!/bin/sh
# Setup locale
export LANG=fr_FR.utf8
export LC_MESSAGES=en_US.utf8
# Ensure we use the appropriate gtkrc-2.0 file
export GTK2_RC_FILES=$HOME/.gtkrc-2.0
# Java incompatibility with awesome
export _JAVA_AWT_WM_NONREPARENTING=1
# We do not want to rely on crappy mailcap
export MAILCAPS=$HOME/.mailcap
# Make QT automatically scale according to screen DPI
export QT_AUTO_SCREEN_SCALE_FACTOR=1
# Environment variables
[ -e ~/.zshenv ] && . ~/.zshenv
systemctl --user import-environment
systemd-run -q --scope --user tmux start-server
mkdir -p ~/.config/systemd
ln -nsf ~/.config/awesome/systemd ~/.config/systemd/user
exec systemctl --user start --wait xsession@$(systemd-escape -- "$DISPLAY").target