vincentbernat.i3wm-configur.../xsession

71 lines
2.1 KiB
Text
Raw Normal View History

#!/bin/sh
# Setup PATH
export PATH=$HOME/bin:/sbin:/usr/local/sbin:/usr/sbin:/bin:/usr/local/bin:/usr/bin:/usr/local/games:/usr/games
# 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
# Workaround a bug in XI focus-in events. See:
# https://bugzilla.gnome.org/show_bug.cgi?id=677329
export GDK_CORE_DEVICE_EVENTS=1
# Make QT automatically scale according to screen DPI
export QT_AUTO_SCREEN_SCALE_FACTOR=1
2013-08-27 09:27:05 +02:00
# Environment variables
[ -e ~/.zsh/env ] && . ~/.zsh/env
# GDM move Xauthority in some obscure place
# See:
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614972
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586685
[ "$XAUTHORITY" = $HOME/.Xauthority ] || {
XAUTHORITY=$HOME/.Xauthority xauth merge $XAUTHORITY
export XAUTHORITY=$HOME/.Xauthority
}
systemctl --user import-environment
case "$(hostname)" in
neo)
xrandr --output HDMI-0 --auto --primary --output DP-0 --auto --right-of HDMI-0 --dpi 192
;;
zoro)
2014-06-17 21:52:58 +02:00
xrandr --output eDP1 --auto --dpi 144
;;
esac
. ~/.config/awesome/bin/xsettingsd-setup
~/.config/awesome/bin/xss-lock start &
inputplug -0 -c ~/.config/awesome/bin/input-event 2> /dev/null
nmcli radio all off
rfkill block all 2> /dev/null
redshift -l 6.666:46.533 -t 6500:3900 2> /dev/null &
2016-06-01 08:09:14 +02:00
systemd-run -q --scope --user tmux start-server
case $(glxinfo | awk -F': ' '($1 == "OpenGL vendor string") {print $2}') in
"NVIDIA Corporation")
# --glx-swap-method 2 causes cursor to be duplicated earlier on the line
# --glx-no-rebind-pixmap causes text not being redrawn when chaging to another line in Emacs
compton --daemon --backend glx --vsync opengl-swc --glx-swap-method 3
;;
*)
compton --daemon --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay
;;
esac
exec awesome