-
Notifications
You must be signed in to change notification settings - Fork 1
/
xinitrc
62 lines (47 loc) · 1.47 KB
/
xinitrc
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
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# stop beeping at me, yo
xset -b
# maps Caps Lock to Esc
xmodmap ~/.Xmodmap
# set background
# xsetroot -solid "#eee8d5"
xsetroot -solid "#93a1a1"
# get xresources
xrdb -merge -cpp /usr/bin/cpp ~/.Xresources
# hide the mouse
unclutter -noevents -idle 1 &
# set cursor
xsetroot -cursor_name left_ptr
# enable trackpoint vertical scrolling
xinput --set-prop "TPPS/2 ALPS TrackPoint" "Evdev Wheel Emulation" 1
xinput --set-prop "TPPS/2 ALPS TrackPoint" "Evdev Wheel Emulation Button" 2
xinput --set-prop "TPPS/2 ALPS TrackPoint" "Evdev Wheel Emulation Timeout" 200
# enable trackpoint horizontal scrolling
xinput --set-prop "TPPS/2 ALPS TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
# disable touchpad
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0
# set a different accel profile
xinput --set-prop "TPPS/2 ALPS TrackPoint" "Device Accel Profile" 3
# start xscreensaver
# xscreensaver -no-splash &
# lxpolkit as a polkit-agent so 1password-cli works
lxpolkit &
xset s 300
# Hunch: letting the display go to sleep/power off doesn't let the USB keyboard/mouse wake it up?
# Action: disable DPMS and see what happens
# Result: It works
xset dpms 0 0 0
xss-lock --transfer-sleep-lock ~/.config/i3lock/transfer-sleep-i3lock.sh &
# start our WM
# exec spectrwm
exec i3