.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 25 Feb 2011 14:51:38 +0200
changeset 123 05fbac105c1d
parent 56 47272014a49a
child 281 754e4ee92fc0
permissions -rw-r--r--
Set root window image.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
#!/bin/sh
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
xrdb -merge ~/.Xdefaults &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
# xrdb -load ~/.Xdefaults &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
# Set lang switch.
4
2f2d520e22ee Because of bug in xorg invoking setxkbmap cause disable repeat char when key pressed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 3
diff changeset
     7
# Because of bug in xorg invoking setxkbmap cause disable repeat char when key pressed.
2f2d520e22ee Because of bug in xorg invoking setxkbmap cause disable repeat char when key pressed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 3
diff changeset
     8
# setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" &
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
123
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    10
# Root window parameter.
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    11
# Color names check from /etc/X11/rgb.txt or enter in hex: #aabbcc.
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    12
# xsetroot -gray -fg red -bg white
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    13
# xsetroot -bitmap dir/file.bitmap -fg red -bg white
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    14
# xsetroot -mod 3 3 -fg red -bg white
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    15
xsetroot -gray
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    16
56
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    17
# Don't use fvwm under Cygwin.
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    18
if [ -z "$COMSPEC" ]; then
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    19
  fvwm &
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    20
fi
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
# Last command.
38
76d2bf3ac7c3 Free memory by exec.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 18
diff changeset
    23
exec xterm -e bash -i