aboutsummaryrefslogtreecommitdiff
path: root/xinitrc
blob: 515bcddca978dd6792c2e8b465083386b73524ab (plain)
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
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# set the random wallpaper as early as possible
feh --recursive --randomize --bg-fill --no-fehbg ~/.wallpaper

if [ -d /etc/X11/xinit/xinitrc.d ]; then
 for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# Load local .Xresources
xrdb -merge $HOME/.Xresources

# start pulseaudio -.-
# start-pulseaudio-x11 &

xset -b
xrandr --dpi 96 &
setxkbmap de &
sct 4400

if [ "$(hostname)" = "fly" ]; then
	xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
	xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
	xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
	xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
	xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 0.95
fi

exec $STARTUP runsvdir -P $HOME/service.x 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'