added some corrections to bin/statusbar; the xterm font size is
[home.git] / .xinitrc
blobd1d2d0d52735c597323d1a4c221509a3ae2435a6
1 #!/bin/sh
2 # $Id: .xinitrc,v 1.4 2016/11/30 14:43:06 fste Exp $
4 userresources=$HOME/.Xresources
5 usermodmap=$HOME/.Xmodmap
6 sysresources=/etc/X11/xinit/.Xresources
7 sysmodmap=/etc/X11/xinit/.Xmodmap
9 # merge in defaults and keymaps
11 if [ -f $sysresources ]; then
13 xrdb -merge $sysresources
17 if [ -f $sysmodmap ]; then
18 xmodmap $sysmodmap
21 if [ -f "$userresources" ]; then
23 xrdb -merge "$userresources"
27 if [ -f "$usermodmap" ]; then
28 xmodmap "$usermodmap"
31 # if we have private ssh key(s), start ssh-agent and add the key(s)
32 id1=$HOME/.ssh/identity
33 id2=$HOME/.ssh/id_dsa
34 id3=$HOME/.ssh/id_rsa
35 id4=$HOME/.ssh/id_ecdsa
36 id5=$HOME/.ssh/id_ed25519
38 if [ -z "$SSH_AGENT_PID" ];
39 then
40 if [ -x /usr/bin/ssh-agent ] && [ -f $id1 -o -f $id2 -o -f $id3 -o -f $id4 -o -f $id5 ];
41 then
42 eval `ssh-agent -s`
43 ssh-add < /dev/null
47 # lauch dbus
48 if [ -x /usr/local/bin/dbus-lauch -a -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
49 eval `dbus-launch --sh-syntax --exit-with-session`
52 # set the background
53 #feh --bg-scale /home/fstef/pictures/sfondo_openbsd.png &
54 #sh ~/.fehbg &
55 #xsetroot -bg black &
56 /usr/local/bin/bgs -z /home/fstef/pictures/bladerunner.jpeg &
58 # set locale and add support for chinese IM
59 export GTK_IM_MODULE="scim"
60 export XMODIFIERS="@im=SCIM"
61 /usr/local/bin/scim -d
62 export LC_CTYPE=zh_CN.UTF-8
64 # add some fonts to X
65 xset fp+ /usr/local/share/fonts/terminus fp+ /usr/local/share/fonts/ghostscript
66 xset fp rehash
68 # stop noising bell
69 xset b off &
71 # disable touchpad
72 synclient TouchpadOff=1 &
74 # stop the rodent
75 xbanish &
77 # start some nice programs
78 xterm -geometry 80x24+0+14 &
79 /home/fstef/bin/statusbar &
80 cwm || xterm
82 if [ "$SSH_AGENT_PID" ]; then
83 ssh-add -D < /dev/null
84 eval `ssh-agent -s -k`