Background Wallpaper on XDM (简体中文)

From ArchWiki
Revision as of 09:32, 14 June 2012 by Kynikos.bot (Talk | contribs) (Template:i18n is deprecated, use interlanguage links, see Help talk:I18n#"Dummy" interlanguage links and deprecation of Template:i18n + merge request)

Jump to: navigation, search

Merge-arrows-2.pngThis article or section is a candidate for merging with XDM (简体中文).Merge-arrows-2.png

Notes: note that en:Background Wallpaper on XDM already redirects to XDM. (Discuss in Talk:Background Wallpaper on XDM (简体中文)#)

这里有个小技巧可以让XDM漂亮些:

  • 安装Quick Image Viewer:
 pacman -S qiv
  • 创建一个目录用来存放背景图片。(例如/root/backgrounds
  • 把图片放到新目录里。如果没有的话可以到这里找些。
  • 编辑/etc/X11/xdm/Xsetup_0,将xconsole的命令改为:
 /usr/bin/qiv -zr /root/backgrounds/*
  • 编辑/etc/X11/xdm/Xresources。增加/替换如下内容:
 xlogingreetFont:  -adobe-helvetica-bold-o-normal--20------iso8859-1
 xloginfont:       -adobe-helvetica-medium-r-normal--14------iso8859-1
 xloginpromptFont: -adobe-helvetica-bold-r-normal--14------iso8859-1
 xloginfailFont:   -adobe-helvetica-bold-r-normal--14------iso8859-1
 xlogin*frameWidth: 1
 xlogin*innerFramesWidth: 1
 xlogin*logoPadding: 0
 xlogin*geometry:    300x175-0-0

注释掉logo定义:

 #xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/xorg.xpm
 #xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/xorg-bw.xpm
  • 修改pacman.conf使得以上更改过的文件不会被升级时删除:
 ~NoUpgrade   = etc/X11/xdm/Xsetup_0 etc/X11/xdm/Xresources

现在登录的时候就会有随机的壁纸,而登录提示被移动到了屏幕右下方。