免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 902 | 回复: 0
打印 上一主题 下一主题

openbox “配套马车” [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-03 21:38 |只看该作者 |倒序浏览

                                                                很久没折腾过系统了,最近用 openbox 配了套马车,用起来挺不错的,哈哈
引用一段 openbox 的描述
               
               
                What is Openbox?
To answer that question, it's important to know the difference between a window manager and a desktop environment.
A window manager is the program which draws on your screen
the "box" in which the program is run. A window manager controls how
your program window works, looks and acts. It decides what window
decorations to use and gives you a way to move the windows, hide them,
resize them, minimize them and close them. It controls what buttons you
push to do those things, and what keys you press to make those things
happen.
On the other hand, a desktop environment minds the entire
desktop. It provides a taskbar, a system tray, a login manager,
additional menus or perhaps screensavers and desktop icons. It might
include a file manager, a text editor or some other accessory programs,
too.
Openbox is a window manager, not a desktop environment.
Openbox is only responsible for maintaining the windows you open on
your screen -- nothing else. That means installing Openbox won't give
you easy menu access to wallpaper options, a taskbar or system panel,
or most of those other doo-dads. It does, however, give you a framework
to build incorporate other programs that do those things -- and usually
with a greater degree of freedom over the style and interface.
Openbox can be used alone, without a desktop environment, or it can
be used to replace the window manager in a complete desktop
environment. Either way is acceptable.
配置相关的程序:
桌面: idesk
panel: fbpanel
wm: openbox
监视器: conky  
文件管理器: thunar
openbox 配置: obconf
openbox 菜单: obmenu
theme 配置: gtk-theme-switch
背景设置: feh
X 键映射值抓取: xev
相关的配置文件:
~/.idesktop/....
~/.ideskrc
~/.config/openbox/autostart.sh
~/.config/openbox/menu.xml
~/.config/openbox/rc.xml
~/.conkyrc
~/.fbpanel/default
安装 openbox

使用 openbox
openbox 可以跟 gnome,kde,xfce 等DE结合使用,这里只说 openbox 的单独使用。
在 ~/.xinitrc 下添加
exec openbox-session
直接使用 startx 登录。
如果使用 DM 的话,直接在会话选择 openbox 登录。
配置
openbox 有两个主要的配置文件:rc.xml 和 menu.xml。
都是使用 xml 格式设置,虽然写起来比较麻烦,不过还是比较简单明了的。
/etc/xdg/openbox/ 下有相关的配置文件可以参考。
或者也可以使用 obconf 和 obmenu 这两个 gui 程序进行设置,不过老实说,用处不大。
主题
主题可以安装 openbox-themes,或者可以将相关主题放到 ~/.themes/ 下,用 obconf 就可以直接设置了。
gtk主题的设置可以安装 gtk-theme-switch
sudo aptitude install gtk-theme-switch gtk2-engines
安装后使用 switch2 命令就可以设置 GTK 主题了。
也许有人说 gtk-chtheme,但是不推荐用这个,有时候会影响到 gnome 的相关配置。
相关的 gtk 设置
$ cat ~/.gtkrc-2.0
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/IndustrialTango/gtk-2.0/gtkrc"
style "user-font" {
font_name = "DejaVu Sans Semi-Condensed 11"
}
widget_class "*" style "user-font"
gtk-font-name="DejaVu Sans Semi-Condensed 11"
include "/home/cyh/.gtkrc.mine"
# -- THEME AUTO-WRITTEN DO NOT EDIT
$ cat ~/.gtkrc.mine

gtk-font-name= "DejaVu Sans Condensed 10"
#--gtk-theme-name=""
#--gtk-icon-themename=""
桌面
桌面背景这里使用 feh,在 ~/.config/openbox/autostart.sh 下加入
feh --bg-scale /path/to/your/background/image.jpg
也许会奇怪不用 rox,又轻巧功能又强大,纯属个人不喜欢而已,太不习惯 rox 的操作了。
或者也可以试试 xsetbg,imagemagick 等等,如果有 gnome 的,gnome-settings-daemon 也是不错的选择。
桌面图标使用的是 idesk,感觉比较复杂,没办法,除了 rox,没什么比较好的选择。
idesk 的相关配置文件可以参考 /usr/share/idesk/
引用:
The main configuration file is called .ideskrc and must reside  in  the
       users home-directory (~/.ideskrc). The icons are loaded from lnk-files,
       which must placed in ~/.idesktop/*.lnk.
Sample configuration files can be  found  in  /usr/share/idesk/.  These
       files contains all available options. Please you must read them.
面板
面板的选择比较多, gnome-panel, pypanel, fbpanel, xfce4-panel 等等,我用的是 fbpanel。
相关的配置文件可以参考 /etc/fbpanel/default
其他的如 系统监视器,屏幕保护之类的就不多说了。
参考文档:
ubuntu wiki
arch wiki
oceanboo's blog

鼠标右键->查看图片
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28570/showart_665489.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP