原发gentoo,但是觉得其实debian做这个比gentoo方便,改了个debian版本。
现在的桌面环境是越来越大,就连以精简著称的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/gtk-theme-switch
panel:fbpanel
文件管理器:rox-filer
背景:feh(idesk还有毛病,而且screenlets漂亮太多,干脆用它算了,放弃idesk)
widget:screenlets
监视器:conky
pdf浏览:epdfview
图片浏览:gqview
bbs:pcmanx
video:mplayer
audio:xmms2(mpd使用了很长时间,但是不支持mms和wma,有些不方便,而且在我机子上没有xmms2稳定)
term:mlterm/roxterm(rxvt-unicode用了xft之后,速度感觉总有点问题,既然没有速度优势,就没有必要多一个了)
屏保:electricsheep
快捷键设置:xbindkeys+xmodmap
doc/xls快速浏览:rox+catdoc
加载可移动介质:ivman+hal
总结介绍完拉。讲讲怎么做的,可以直接apt的就跳过。只讲我这不能直接apt搞定的。
1、compiz和emerald用的是的源大家一样。
2、.xinitrc
代码:
scim -d
xmodmap ~/.Xmodmap
xbindkeys
feh --bg-scale ~/xxx.jpg
emerald &
conky &
fbpanel &
python /usr/share/screenlets/Clock/ClockScreenlet.py > /dev/null &
python /usr/share/screenlets/Calendar/CalendarScreenlet.py > /dev/null &
python /usr/share/screenlets/Launcher/LauncherScreenlet.py > /dev/null &
LIBGL_ALWAYS_INDIRECT=1 exec compiz --replace --indirect-rendering --sm-disable ccp
在控制台下startx,已经可以用了。如果要图形启动,可以用slim。
3、 .fbpanel/default
代码:
# 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 = 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 = 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 = tray
}
Plugin {
type = dclock
config {
ClockFmt = %R
TooltipFmt = %A %x
Action = xmessage Please define some command &
}
}
4、xbindkeys和xmodmap有写过。
代码:
"amixer -q sset Master 2- unmute"
XF86AudioLowerVolume
"amixer -q sset Master 2+ unmute"
XF86AudioRaiseVolume
"amixer -q sset Master toggle"
XF86AudioMute
"/usr/bin/xmms2 prev"
XF86AudioPrev
"/usr/bin/xmms2 next"
XF86AudioNext
"/usr/bin/xmms2 stop"
XF86AudioStop
"/usr/bin/xmms2 toggleplay"
XF86AudioPlay
"gmrun"
c:68
引用:
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 160 = XF86AudioMute
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
5、.mlterm/main
代码:
receive_string_via_ucs=true
use_anti_alias=false
.mlterm/font
代码:
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
6、.Xdefault
代码:
Xft.dpi:96
!! RXVT-unicode setting
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
7. 鼠标主题。自己下载一个。然后:
.Xdefaults
代码:
Xcursor.size: 32
Xcursor.theme:gentoo-silver
来指定
8、.conkyrc
已经自己定制了一下了,想看明白man一下,很简单
代码:
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
color0 bfbfbf
color1 4c4c4c
color2 dcff82
post_21_kernel yes
gap_x 2
gap_y 2
alignment bottom_right
update_interval 1
default_color bfbfbf
own_window_colour 4c4c4c
use_xft yes
xftfont 微软雅黑ixelsize=12
override_utf8_locale yes
use_spacer no
minimum_size 180
TEXT
${voffset -1} ${color dcff82}${alignc}Panchoat${color}
Uptime: ${color dcff82}${uptime_short} ${color}
Processes: ${color dcff82}${processes} ${color}
Running: ${color dcff82}${running_processes} ${color}
xmms2:$color2
${xmms2_smart}
${xmms2_bar 3,180} $color
Cpu:${color dcff82}${alignc}${cpu}%
temp:${acpitemp}C${alignr}freq:${freq}MHz
${color}Mem:${color dcff82}${mem} ${color} $alignr Swap: ${color dcff82}${swap} ${color}
Disk I/O:
${color dcff82}total:${diskio} $alignr temp:${hddtemp /dev/sda}
read:${diskio_read} $alignr write:${diskio_write}${color}
Net:
${color dcff82}${downspeed eth0} Kb/s ${totaldown eth0} down
${color dcff82}${upspeed eth0} Kb/s ${totalup eth0} up ${color}
Top 2 connection:
${color2}${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32767 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
9、catdoc
在rox对doc文件类型的动作中定义:
代码:
mlterm -e catdoc "$@" | less
10、pcmanx在gentoo中没有进官方,ubuntu下进了,这是debian的优势。感觉比不上qterm,但是也差不多。
11、screenlets
比较耗资源的东西,同样,没有进gentoo官方,ubuntu也没有,但他们有提供给u的deb源,在他主页上有介绍。
不过开上挺漂亮,想省资源可以关上。
cairo和xft打了ct的补丁。字体有点模糊,个人喜好,用雅黑。
相对mpd,我个人比较推荐xmms2一点。架构更灵活,功能更强大。例如对wma,对lastfm,对mms,对歌曲的管理。在debian中也早进了unstable了,但是gentoo里还只是bug report里的一个ebuild,而且还写的有些毛病,要自己改。
感觉debian的包确实是太多了,其他发行版没有办法比的。
桌面环境
最新推荐文章于 2023-06-15 17:07:17 发布