-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
60 lines (45 loc) · 1.56 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
#!/bin/sh
[ -z $userresources ] && userresources=$HOME/.Xresources
[ -z $usermodmap ] && usermodmap=$HOME/.Xmodmap
[ -z $sysresources ] && sysresources=/etc/X11/xinit/.Xresources
[ -z $sysmodmap ] && sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xinput set-prop "DualPoint Stick" "Evdev Wheel Emulation" 1
xinput set-prop "DualPoint Stick" "Evdev Wheel Emulation Button" 2
xinput set-prop "DualPoint Stick" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "DualPoint Stick" "Evdev Wheel Emulation Axes" 6 7 4 5
xinput set-prop "DualPoint Stick" "Device Accel Constant Deceleration" 1.00
command -v setxkbmap && setxkbmap -option caps:escape
#setxkbmap -option grp:alts_toggle
#Usually in /lib, only runs if the exec has been linked
command -v kdeconnectd && kdeconnectd &
command -v kdeconnect-indicator && kdeconnect-indicator &
command -v xfce4-power-manager && xfce4-power-manager
command -v lxpolkit && lxpolkit &
command -v pasystray && pasystray &
command -v redshift && redshift -b 1:0.8 -t 6500K:3500K &
runfile() { [ -f "$1" ] && sh "$1"; }
runfile ~/.screenlayout/default.sh
runfile ~/.fehbg
command -v compton && compton &
i3 -d all
#exec startlxde