X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fskel%2F.xinitrc;h=1e413ffc8ff253ac1754e76c0c6f18f72340af44;hb=4b769892734ed3c133bf2f214cc7a0a891184913;hp=717232400c6c43411e0b74e42e7207d8e257fb04;hpb=2f0e6019891c7f9827dbbc63dbc129a1cdfbd252;p=grml-etc.git diff --git a/etc/skel/.xinitrc b/etc/skel/.xinitrc index 7172324..1e413ff 100755 --- a/etc/skel/.xinitrc +++ b/etc/skel/.xinitrc @@ -1,73 +1,25 @@ #!/bin/sh -# Filename: .xinitrc -# Purpose: specify details for xserver +# Filename: ~/.xinitrc +# Purpose: main configuration file of X startup # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -# Latest change: Die Sep 04 01:42:40 CEST 2007 [mika] +# License: This file is licensed under the GPL v2 or any later version. ################################################################################ -# is something goes wrong fall back to plain x-terminal-emulator: -# failsafe="x-terminal-emulator -ls -T failsafe -geometry 80x24-0-0" -# trap "exec $failsafe" EXIT 1 2 13 15 +# configuration: by default all scripts from ~/.xinitrc.d are executed, +# but it's possible to configure this through a configuration file +if [ -r "$HOME/.config/${distri}/xinitrc" ] ; then + . "$HOME/.config/${distri}/xinitrc" +elif [ -r "$HOME/.config/grml/xinitrc" ] ; then + . "$HOME/.config/grml/xinitrc" +fi -# set wallpaper -# wmsetbg -t /usr/share/grml/desktop.png & - if [ -x /usr/bin/Esetroot ] ; then - [ -r /usr/share/grml/desktop.jpg ] && Esetroot -scale /usr/share/grml/desktop.jpg & - fi - -# print info text - if [ -x /usr/bin/osd_cat ] ; then - echo "Starting X window system and loading window manager..." | \ - osd_cat -c white -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15" & - fi - -# add at least one entry to xauth -# xauth add $DISPLAY MIT-MAGIC-COOKIE-1 `mcookie` - -# set default cursor - xsetroot -cursor_name left_ptr - -## set mouse speed behaviour: -# fast: -# xset m 4 2 -# normal: - xset m 2 5 -# slow: -# xset m 1 1 - -# other settings: -# xset m 20/10 4 - -# xresources - [ -r $HOME/.Xresources ] && xrdb -merge $HOME/.Xresources - -# keybindings - if ! [ -r /etc/sysconfig/keyboard ] ; then - [ -r $HOME/.Xmodmap ] && xmodmap $HOME/.Xmodmap || setxkbmap us - else - . /etc/sysconfig/keyboard - if [ $XKEYBOARD == "us" ] ; then - [ -r $HOME/.Xmodmap ] && xmodmap $HOME/.Xmodmap - else - if [ -n "$XKEYMODEL" ] ; then - setxkbmap -model "$XKEYMODEL" -layout "$XKEYBOARD" - else - setxkbmap "$XKEYBOARD" - fi - fi - fi - -# mouse for lefty: -# xmodmap -e "pointer = 3 2 1" -# mouse for right hander: -# xmodmap -e "pointer = 1 2 3" - -# start browser with startpage.html, but only in live-cd mode - [ -r /etc/grml_cd ] && grml-info & +# execute all existing scripts +for f in ~/.xinitrc.d/* ; do + "$f" +done # default entry, use e.g. 'grml-x windowmanager' for changing or just adjust manually - exec /usr/bin/wm-ng +exec /usr/bin/x-window-manager ## END OF FILE #################################################################