forked from richo/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 5
/
xinitrc
45 lines (37 loc) · 1.36 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
if [ `uname -s` = 'Darwin' ]; then
exec /usr/bin/quartz-wm
fi
[ -e .xinitrc.local ] && ./.xinitrc.local
xset +fp $(echo $HOME/.fonts)
# Consider just whacking a massief case statement in here and then fixing up
# the screen in here. Seems saner, in some ways
[ -e .xinit.xrandr ] && ./.xinit.xrandr
if [ -e ~/.xcalib.$sHost ]; then
if which xcalib > /dev/null; then
xcalib ~/.xcalib.$sHost
fi
fi
if which xinput > /dev/null; then
# Credit James Layhe
#xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8
#xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
#xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
#xmodmap -quiet -e "pointer = 1 9 3 4 5 6 7 8 2"
:
fi
which xscreensaver > /dev/null && xscreensaver -no-splash &
which xcompmgr > /dev/null && xcompmgr &
which xflux > /dev/null && xflux -l 37 -g 150
# if [ -f ~/.synergy.conf ] && which synergys >/dev/null; then
# synergys --daemon --restart
# fi
# This is a mad hideous Darwin kludge, because for some reason it doesn't hand
# my environment in
which trayer > /dev/null && trayer --edge top --align right --alpha 255 --transparent true --widthtype request &
urxvtd &
if [ -z "$RICHOWM" ]; then
echo "\$RICHOWM is unset, shit ain't gunna work"
exit
fi
ssh-agent $RICHOWM
# vim: ft=sh