public
Description: My configuration files for various applications
Homepage: http://mina86.com/
Clone URL: git://github.com/mina86/dot-files.git
mina86 (author)
Fri Oct 16 02:33:17 -0700 2009
commit  f20802d27bfc52da3bc4038a3042d3ccb058f875
tree    ee7f0243169d09a22185614288afec6b9cd6c5aa
parent  ba198f5843b077cbeff5ad542b8cccd33dc706d2
dot-files / xinitrc
100755 50 lines (41 sloc) 0.933 kb
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
 
## .xinitrc -- X init script
## Copyright 2008 by Michal Nazarewicz (mina86/AT/mina86.com)
 
cd
for DIR in /usr/X11R6/lib/X11/xinit/ .; do
[ -f "$DIR/.Xresources" ] && xrdb -merge "$DIR/.Xresources"
[ -f "$DIR/.Xmodmap" ] && xmodmap "$DIR/.Xmodmap"
done
 
xset -b -c r rate 250 50 s off +dpms
 
 
run_xcompmgr () {
if which xcompmgr >/dev/null 2>&1; then
(
cd /
exec xcompmgr >/dev/null 2>&1 </dev/null
) &
fi
}
 
 
case "$(hostname)" in
erwin*)
run_xcompmgr
synergys
# exec /usr/bin/gpg-agent --enable-ssh-support --daemon sawfish
exec /usr/bin/gpg-agent --daemon sawfish
;;
tuptus*)
(
sleep 1
[ -e ~/current-bg ] && rm -f -- ~/current-bg
[ -x ~/bin/setbg ] && ~/bin/setbg random
synergyc erwin
) &
exec sawfish
;;
*)
run_xcompmgr
setxkbmap pl
if [ -f ~/.wallpaper.bmp ] && which Esetroot >/dev/null 2>/dev/null; then
nice Esetroot -scale ~/.wallpaper.bmp &
fi
exec sawfish
esac
 
return $?