-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_xsessionrc.tmpl
37 lines (34 loc) · 1.22 KB
/
dot_xsessionrc.tmpl
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
# This file is managed with a chezmoi template
# Verify the machine is properly detected
{{ if eq .chezmoi.hostname "WeatherLight" }}
# Detected Thinkpad X1 Carbon
{{ end }}
{{ if eq .chezmoi.hostname "iceage" }}
# Detected Vaio VGN-P21Z
{{ end }}
{{ if eq .chezmoi.hostname "WeatherLight" }}
<<<<<<< HEAD
# Thinkpad X1 Carbon trackpoint
ID=`xinput list | grep "TrackPoint" | awk '{ split($6,id,"="); print id[2] }'`
=======
ID=`xinput list | grep "TrackPoint" | awk '{ split($6,id,"="); print id[2] }'`
# Thinkpad X1 Carbon trackpoint wheel
>>>>>>> d625b39e2a78fe257e06a878512517e354873d2b
xinput set-int-prop $ID "Evdev Wheel Emulation" 8 1
xinput set-int-prop $ID "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop $ID "Evdev Wheel Emulation Axes" 8 6 7 4 5
xinput set-prop $ID "Evdev Wheel Emulation Inertia" 10
xinput set-prop $ID "Evdev Wheel Emulation Timeout" 200
<<<<<<< HEAD
=======
# Thinkpad X1 Carbon trackpoint acceleration
xinput --set-prop 12 "Accel Profile Enabled" 0 1
>>>>>>> d625b39e2a78fe257e06a878512517e354873d2b
{{ end }}
# Locale settings
export LC_TIME="en_GB.UTF-8"
export LC_NUMERIC="en_GB.UTF-8"
export LC_MEASUREMENT="en_GB.UTF-8"
setxkbmap -layout us -variant intl
# Set the terminal to URXVT
export TERMINAL=urxvt