找回密码
 注册
查看: 776|回复: 2

哪位贴一下Gentoo的xinitrc吧

[复制链接]
发表于 2003-6-17 22:10:43 | 显示全部楼层 |阅读模式
/etc/X11/xinit/xinitrc,被我不小心给删掉了,哪位好心给贴一下,谢了先!
发表于 2003-6-18 00:23:28 | 显示全部楼层
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
xinitdir=/usr/X11R6/lib/X11/xinit
sysresources=$xinitdir/.Xresources
sysmodmap=$xinitdir/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
        XINITRC="$HOME/.xinitrc"
        exec /bin/sh "$HOME/.xinitrc"
# If not present, try the system default
elif [ -n "`/etc/X11/chooser.sh`" ]; then
        exec "`/etc/X11/chooser.sh`"
# Failsafe
else
        # start some nice programs
        twm &
        xclock -geometry 50x50-1+1 &
        xterm -geometry 80x50+494+51 &
        xterm -geometry 80x20+494-0 &
        exec xterm -geometry 80x66+0+0 -name login
fi
回复

使用道具 举报

发表于 2003-6-23 11:32:04 | 显示全部楼层
hehe, i stick to kde now. linux is a tool for my research, i do not have much time to try all window managers.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-11 22:53 , Processed in 0.023981 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表