vincentbernat.i3wm-configur.../xsession
Vincent Bernat 2dbfdde5a8 xsession: remove use of _JAVA_OPTIONS
There is no way to suppress those annoying warnings. See:
 https://bugs.openjdk.java.net/browse/JDK-8039152

Let's just use wrapper when we need it.
2014-07-03 23:24:48 +02:00

49 lines
1.3 KiB
Bash

#!/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
# 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
}
case "$(hostname)" in
neo)
xrandr --output HDMI1 --auto --output HDMI2 --auto --right-of HDMI1
;;
alucard)
xrandr --output DVI-0 --auto --primary --output DisplayPort-0 --auto --right-of DVI-0
;;
zoro)
xrandr --output eDP1 --auto --dpi 144
echo Xft.dpi: 144 | xrdb -merge
;;
esac
inputplug -0 -c ~/.config/awesome/bin/input-event 2> /dev/null
rfkill block all 2> /dev/null
xbacklight = 60 2> /dev/null
redshift -l 2.3508:48.8567 -t 6500:5500 2> /dev/null &
exec awesome