|
|
现在的桌面环境是越来越大,就连以精简著称的xfce也正在向扩大化的方向发展。而那些象ion之类的桌面,又似乎不大符合xgl/aiglx的时尚~毕竟现在compiz基本上是怎样的烂机子都可以用的,能用着好看方便又不费资源,为什么不用?
所以就有一个想法:桌面环境无非就是wm加上desktop管理器,再配上一个dock,然后加上些配套软件就ok了,那为什么不直接把常用的一些软件给组合起来呢?
下面是我的要求:
1、qt的不要。
2、e17的不要。
3、gnome的不要。
4、gstreamer的不要。
gtk有firefox,ooo这样的大家伙,不要是不可能~所以qt二选一,自然就舍弃拉。那这个环境主要有些什么组成呢?
wm+composite:compiz加emerald
wm配置:ccsm
gtk主题:gtk-engines-murrine
主题修改:gtk-chtheme
panel:fbpanel
文件管理器:rox-filer
背景:feh(idesk还有毛病,不过作者的主页上说正在改进,等到搞好了在用)
widget:screenlets
监视器:conky
pdf浏览:epdfview
图片浏览:gqview
bbs:pcmanx
video:mplayer
audio:mpd+mpc+gmpc
term:rxvt-unicode/mlterm/roxterm
屏保:electricsheep
快捷键设置:xbindkeys+xmodmap
doc/xls快速浏览:rox+catdoc
加载可移动介质:ivman+hal
总结介绍完拉。讲讲怎么做的,可以直接emerge的就跳过。只讲我这不能直接emerge搞定的。
1、compiz和emerald用的是xeffects的overlay的。layman一下就行。
2、.xinitrc
[PHP]scim -d
xmodmap ~/.Xmodmap
xbindkeys
feh --bg-scale ~/xxx.jpg
emerald &
conky &
fbpanel &
LIBGL_ALWAYS_INDIRECT=1 exec compiz --replace --indirect-rendering --sm-disable ccp[/PHP]
3、 .fbpanel/default
[PHP]# fbpanel <profile> config file
# see http://fbpanel.sf.net/docs.html for complete configuration guide
Global {
edge = top
allign = center
margin = 0
widthtype = percent
width = 50
height = 26
transparent = false
tintcolor = #ffffff
alpha = 35
setdocktype = true
setpartialstrut = true
autohide = true
heightWhenHidden = 2
}
Plugin {
type = space
config {
size = 2
}
}
Plugin {
type = menu
config {
image = /usr/share/fbpanel/images/star.png
systemmenu {
}
separator {
}
item {
icon = gnome-settings
name = configure
command = configure
}
item {
icon = gnome-terminal
image= /usr/share/icons/hicolor/scalable/apps/roxterm.svg
name = ROX-Terminal
action = roxterm
}
}
}
Plugin {
type = space
config {
size = 5
}
}
Plugin {
type = launchbar
config {
button {
icon = gnome-fs-home
image = /usr/share/pixmaps/ROX-Filer.png
tooltip = ROX file manager
action = rox
}
button {
icon = rxvt-unicode
image=/usr/share/pixmaps/xterm-color_48x48.xpm
tooltip = Terminal
action = urxvt
}
button {
icon = mozilla-firefox
tooltip = Firefox web browser
action = firefox
}
button {
icon = mozilla-thunderbird
image= /usr/share/pixmaps/thunderbird-icon.png
tooltip = Thunderbird email client
action = thunderbird
}
button {
icon = pcmanx
image =/usr/share/pixmaps/pcmanx.png
tooltip = PCManX BBS browser
action = pcmanx
}
button {
icon = pidgin
image = /usr/share/pixmaps/pidgin/logo.png
tooltip = pidgin is a multi protocal IM messenger
action = pidgin
}
button {
icon = stardict
image= /usr/share/pixmaps/stardict.png
tooltip = Best GTK dictionary
action = stardict
}
}
}
Plugin {
type = space
config {
size = 8
}
}
Plugin {
type = wincmd
config {
icon = gnome-fs-desktop
tooltip = Left click to iconify all windows. Middle click to shade them.
}
}
Plugin {
type = space
config {
size = 7
}
}
#Plugin {
# type = pager
# config {
# showwallpaper = true
# }
#}
Plugin {
type = icons
config {
DefaultIcon = /usr/share/fbpanel/images/default.xpm
application {
icon = gnome-terminal
ClassName = XTerm
}
application {
icon = gnome-terminal
ClassName = mlterm
}
application {
icon = gnome-terminal
ClassName = URxvt
}
application {
icon = gnome-emacs
ClassName = Emacs
}
application {
icon = mozilla-firefox
ClassName = Firefox-bin
}
application {
icon = mozilla-firefox
ClassName = Firefox
}
}
}
Plugin {
type = space
config {
size = 5
}
}
#Plugin {
# type = taskbar
# expand = true
# config {
# ShowIconified = true
# ShowMapped = true
# ShowAllDesks = false
# tooltips = true
# IconsOnly = false
# MaxTaskWidth = 150
# }
#}
Plugin {
type = tray
}
Plugin {
type = dclock
config {
ClockFmt = %R
TooltipFmt = %A %x
Action = xmessage Please define some command &
}
}
[/PHP]
4、xbindkeys和xmodmap有写过。此处省略。
5、.mlterm/main
[PHP]receive_string_via_ucs=true
use_anti_alias=false[/PHP]
.mlterm/font
[PHP]ISO8859_1 = -microsoft-consolas-medium-r-normal--0-0-0-0-m-0-iso10646-1
ISO10646_UCS4_1 = -microsoft-consolas-medium-r-normal--0-0-0-0-m-0-iso10646-1
ISO10646_UCS4_1_BIWIDTH = -microsoft-microsoft yahei-medium-r-normal--0-0-0-0-p-0-iso10646-1[/PHP]
6、.Xdefault
[PHP]Xft.dpi:96
!! RXVT-unicode setting
URxvt.geometry: 80x36
URxvt.background: white
URxvt.foreground: black
URxvt.scrollBar: True
URxvt.scrollBar_right: True
URxvt.scrollstyle: plain
URxvt.perl-ext-common: default,tabbed
! Use shift+pageup/down to scroll in screen
URxvt.secondaryScroll: True
!set the artificial transparency of the v.t.
URxvt.inheritPixmap: False
URxvt.visualBell: true
URxvt.tintColor: grey
URxvt.shading: 500
URxvt.saveLines: 1500
!URxvt.preeditType: Root
URxvt.borderLess: False
URxvt.title: panchoat's urxvt
!italicFont and boldItalicFont undefined
URxvt.font:xft:Consolas:Regular:size=10:antialias=False,xft:Microsoft YaHei:Normal:size=10:antialias=False
URxvt*imFont:xft:Consolas:Regular:size=10:antialias=False,xft:Microsoft YaHei:Normal:size=10:antialias=False
URxvt*inputMethod:SCIM
URxvt*preeditType: OverTheSpot
URxvt*multichar_encoding:noenc
!URxvt.boldFont:xft:Microsoft YaHei:Normal:size=9:antialias=True
!URxvt.font:xft:terminus:medium:size=13:antialias=false,\
!xft:wenquanyi bitmap song:medium:pixelsize=13:antialias=False
!redefine color to use tango theme in vim
!Black
URxvt.color0: #000000
URxvt.color8: #555753
!Red
URxvt.color1: #CC0000
URxvt.color9: #EF2929
!Green
URxvt.color2: #4E9A06
URxvt.color10: #8AE234
!Yellow
URxvt.color3: #C4A000
URxvt.color11: #FCE94F
!Blue
URxvt.color4: #3465A4
URxvt.color12: #729FCF
!Magenta
URxvt.color5: #75507B
URxvt.color13: #AD7FA8
!Cyan
URxvt.color6: #06989A
URxvt.color14: #34E2E2
!White
URxvt.color7: #D3D7CF
URxvt.color15: #EEEEEC
XTerm*preeditType: Root
XTerm*font: -microsoft-consolas-medium-r-normal--0-0-0-0-m-0-iso10646-1
XTerm*wideFont: -microsoft-microsoft yahei-medium-r-normal--0-0-0-0-p-0-iso10646-1
Xterm*cjkWidth: True[/PHP]
rxvt-unicode有use perl,这样里面的perl脚本才有用。shift+left/shift+right转变tab。shift+down newtab。
7、rxvt-unicode在utf8和gb转换
.bash.gb
[PHP]export LC_CTYPE=zh_CN.gb2312; printf "\33]701;$LC_CTYPE\007"[/PHP]
.bash.utf8
[PHP]export LC_CTYPE=zh_CN.utf8; printf "\33]701;$LC_CTYPE\007"[/PHP]
转化时source一下就好了。
8、.conkyrc
[PHP]double_buffer yes
own_window yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
draw_borders no
border_margin 1
draw_shades no
gap_x 2
gap_y 2
alignment bottom_right
update_interval 1
default_color bfbfbf
own_window_colour 4c4c4c
use_xft yes
xftfont Tahoma:pixelsize=12
override_utf8_locale yes
use_spacer no
minimum_size 100
TEXT
${voffset -1} ${color dcff82}${font}Arch Linux ${kernel} ${color}
Uptime: ${color dcff82}${font}${uptime_short} ${color}
Processes: ${color dcff82}${font}${processes} ${color}
Running: ${color dcff82}${font}${running_processes} ${color}
Cpu: ${color dcff82}${font}${cpu}% ${color}
Mem: ${color dcff82}${font}${mem} ${color}
Swap: ${color dcff82}${font}${swap} ${color}
Disk I/O: ${color dcff82}${font}${diskio} ${color}
Net: ${color dcff82}${font}${downspeed eth0} Kb/s ${color} ${totaldown eth0} down
${color dcff82}${font}${upspeed eth0} Kb/s ${color} ${totalup eth0} up[/PHP]
9、catdoc
在rox对doc文件类型的动作中定义:
[PHP]mlterm -e catdoc "$@" | less[/PHP]
10、pcmanx是从taiwan的overlay里搞的。感觉比不上qterm,但是也差不多。
11、screenlets
比较耗资源的东西,主意,emerge的时候带上nognome的use(好奇怪,为什么不是use gnome?)
不过开上挺漂亮,想省资源可以关上。
cairo和xft打了ct的补丁。字体有点模糊,个人喜好,用雅黑。
上面很多东西都是抄的,改的很粗糙。绝大多数的快捷都是compiz里的。
不好意思以前的桌面是和个人照片~没敢放上~补上一张 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|