forked from vincentbernat/awesome-configuration
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxsession
52 lines (40 loc) · 1.38 KB
/
xsession
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/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
# 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 --output HDMI-1 --auto --right-of HDMI-0
;;
zoro)
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
rfkill block all 2> /dev/null
redshift -l 6.606:46.525 -t 6500:5500 2> /dev/null &
exec awesome