-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
114 lines (101 loc) · 2.68 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
# merge in defaults and keymaps
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Fonts
#xset +fp /usr/share/fonts/cantarell/
#xset fp rehash
# Fix xmonad "X" cursor issue
xsetroot -cursor_name left_ptr
# Siji font
#xset +fp $HOME/.local/share/fonts
#xset fp rehash
# Disable beeping
xset b off
if grep -qe 'ThinkPad' /sys/devices/virtual/dmi/id/product_version; then
# TrackPoint
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
# TouchPad
xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0
fi
# Starts xbindkeys
xbindkeys
# Starts the party
session=${1:-dwm}
case $session in
i3|i3wm)
# Fake running DE to Qt5
#export XDG_CURRENT_DESKTOP=GNOME
#export QT_STYLE_OVERRIDE=gtk
export QT_QPA_PLATFORMTHEME=qt5ct
#compton -b &
feh --bg-fill "/figment/wall/RkJ5hpW.png" &
exec i3
;;
openbox)
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
ck-launch-session dbus-launch --exit-with-session openbox-session > /dev/null 2>&1
else
openbox-session > /dev/null 2>&1
fi
;;
2bwm)
ck-launch-session dbus-launch --exit-with-session ~/.config/2bwm/autostart.sh
;;
awesome)
ck-launch-session dbus-launch --exit-with-session awesome
;;
fvwm)
ck-launch-session dbus-launch --exit-with-session fvwm
;;
echinus)
ck-launch-session dbus-launch --exit-with-session echinus
;;
frankenwm)
ck-launch-session dbus-launch --exit-with-session frankenwm
;;
monsterwm)
ck-launch-session dbus-launch --exit-with-session monsterwm
;;
dwm)
if [ -f /etc/slackware-version ]; then
exec ck-launch-session dwm
else
exec dwm
fi
;;
wmii)
ck-launch-session dbus-launch --exit-with-session wmii
;;
subtle)
ck-launch-session dbus-launch --exit-with-session subtle
;;
plasma|kde)
ck-launch-session dbus-launch --exit-with-session startkde
;;
icewm)
ck-launch-session dbus-launch --exit-with-session icewm
;;
herbstluftwm)
ck-launch-session dbus-launch --exit-with-session herbstluftwm
;;
twm)
ck-launch-session dbus-launch --exit-with-session twm
;;
xmonad)
exec xmonad
;;
# No known session, try to run it as command
*) exec $1;;
esac
# vim:ts=2:sw=2:et