.xinitrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 02 Jan 2012 20:25:08 +0200
changeset 288 a489262dc345
parent 282 3710f0a122cd
child 289 914736b32f8a
permissions -rw-r--r--
Wait for 'xrdb' complete.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
281
754e4ee92fc0 Switch to bash interpreter to get more advanced string matching functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 123
diff changeset
     1
#!/bin/bash
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
282
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     3
if [[ -f ~/.bash_path ]]; then
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     4
  . ~/.bash_path
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     5
fi
3710f0a122cd Load PATH settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 281
diff changeset
     6
288
a489262dc345 Wait for 'xrdb' complete.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 282
diff changeset
     7
xrdb -merge ~/.Xdefaults
a489262dc345 Wait for 'xrdb' complete.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 282
diff changeset
     8
# xrdb -load ~/.Xdefaults
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
# 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
    11
# 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
    12
# 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
    13
123
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    14
# Root window parameter.
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    15
# 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
    16
# xsetroot -gray -fg red -bg white
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    17
# xsetroot -bitmap dir/file.bitmap -fg red -bg white
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    18
# xsetroot -mod 3 3 -fg red -bg white
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    19
xsetroot -gray
05fbac105c1d Set root window image.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 56
diff changeset
    20
56
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    21
# Don't use fvwm under Cygwin.
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    22
if [ -z "$COMSPEC" ]; then
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    23
  fvwm &
47272014a49a Don't use fvwm under Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 38
diff changeset
    24
fi
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
# Last command.
38
76d2bf3ac7c3 Free memory by exec.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 18
diff changeset
    27
exec xterm -e bash -i