ref: a3188c16c2d36b1e3262955452bff6c36edc3f48 dotfiles/overlay/.xsession -rw-r--r-- 1.3 KiB View raw
                                                                                
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
53
54
55
56
57
58
59
60
61
62
63
64
# set default language
export LANG=en_US.UTF-8

# export ENV for ksh
export ENV=$HOME/.kshrc

# setup xresources
xrdb -merge $HOME/.Xresources

# set wallpaper
feh --bg-fill $HOME/.wallpapers/wallpaper

# auto lock screen, use mate-settings-daemon on non-OpenBSD systems
if [ "$(uname)" = "OpenBSD" ] ; then
	xidle &
fi

# disable bell
xset b off

# enable pointer scrolling
if [ -e /dev/wsmouse ] ; then
	xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
	xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
	xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
fi

# load xmodmap settings
xmodmap $HOME/.Xmodmap

# source profile (set PATH)
. $HOME/.profile

# configure display settings
$HOME/bin/configure-display

# launch redshift
redshift &

# make sure everything is set up right
$HOME/bin/restore-sanity

# on non-OpenBSD systems, launch mate-settings daemon for volume control
# and screen locking
if [ "$(uname)" != "OpenBSD" ] ; then
	mate-settings-daemon &
	mate-power-manager &
	gnome-keyring-deamon &
fi

# disable caps lock from being engaged - this does not prevent caps lock from
# being asserted, but rather causes the state of caps lock to be ignored by
# Xorg.
xkbset nullify lock

# launch Albert and xbindkeys
if [ "$(uname)" != "OpenBSD" ] ; then
	albert &
	xbindkeys &
fi

# launch cwm
exec cwm