LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: luckybird

compiz独立做wm的桌面。

[复制链接]
发表于 2009-5-7 19:18:02 | 显示全部楼层
原来还是有metacity的.
那就不搞了
回复 支持 反对

使用道具 举报

发表于 2009-5-7 19:31:54 | 显示全部楼层
Post by YCF_name;1984585
原来还是有metacity的.
那就不搞了

你可以选择使用compiz/emerald或者matacity,或者随便什么都可以,这个是不一定的,根据你的需求而定
回复 支持 反对

使用道具 举报

发表于 2009-5-7 19:59:35 | 显示全部楼层
我以为compiz有什么新特性呢!
还是beryl时代这些我都用过了!
3D桌面最轻的是lxde+compiz
回复 支持 反对

使用道具 举报

发表于 2009-5-7 20:07:12 | 显示全部楼层
Post by YCF_name;1984606
我以为compiz有什么新特性呢!
还是beryl时代这些我都用过了!
3D桌面最轻的是lxde+compiz


我这里没有讲3D,  是楼主用3D,桌面最轻是不用3D, 不用lxde之类, 我说了,按需求而定,而我选择最少的功能模块满足所需
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-7 22:34:26 | 显示全部楼层

  1. #!/bin/sh

  2. #
  3. # ~/.xinitrc
  4. #
  5. # Executed by startx (run your window manager from here)
  6. #

  7. # exec gnome-session
  8. # exec startkde
  9. # exec startxfce4
  10. # exec icewm
  11. # exec openbox
  12. # exec blackbox
  13. # exec fluxbox
  14. # exec ratpoison
  15. # exec dwm
  16. # ... or any other WM of your choosing ...

  17. export GTK_MODULES=rgba
  18. export GTK_RGBA_APPS=pcmanfm:ccsm:deluge:easytag:evince:exaile:eog:file-roller:gedit:gnome-terminal:gpicview:leafpad:pidgin:screenlets:stardict:thunar:tomboy:totem:xchat:xfburn:emerald:epiphany:lxappearance:lxpanel:emerald-theme-manager:notecase:xarchiver:lxtask:audacious:gimp:FBReader:epdfview:gimp-2.6
  19. export XMODIFIERS=@im=fcitx
  20. export GTK_IM_MODULE=xim
  21. export QT_IM_MODULE=xim
  22. xrdb ~/.Xresources
  23. fcitx -d &
  24. urxvtd -q -o -f &

  25. DEFAULTSESSION=fvwm
  26. case "$1" in
  27.         "fvwm")
  28.           exec fvwm
  29.           ;;
  30.         "compiz")
  31.           feh --bg-center /mnt/media/Picture/壁纸/4248026_1244.jpg
  32.           compiz --loose-binding --sm-disable --ignore-desktop-hints ccp &
  33.           exec tint2
  34.           ;;
  35.         "openbox")
  36.           feh --bg-center /mnt/media/Picture/壁纸/4248026_1244.jpg
  37.           xcompmgr -cCfF -r5 -o.65 -l-5 -t-5 -D1 &
  38.           tint2 &
  39.           exec openbox
  40.           ;;
  41.         "fluxbox")
  42.           exec startfluxbox
  43.           ;;
  44.         "awesome")
  45.           exec awesome
  46.           ;;
  47.         "lxde")
  48.           exec startlxde
  49.           ;;
  50.         *)
  51.           exec $DEFAULTSESSION
  52.           ;;
  53. esac
复制代码


这个是配合slim用的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-7 22:41:55 | 显示全部楼层

  1. <menu>
  2.   <item type="windowlist"/>
  3.   <item type="launcher">
  4.     <icon>gnome-terminal</icon>
  5.     <command>urxvtc</command>
  6.     <name>urxvtc</name>
  7.   </item>
  8.   <item type="launcher">
  9.     <name>firefox</name>
  10.     <command>firefox</command>
  11.     <icon>firefox</icon>
  12.   </item>
  13.   <item type="launcher">
  14.     <name>pcmanfm</name>
  15.     <icon>pcmanfm</icon>
  16.     <command>pcmanfm</command>
  17.   </item>
  18.   <menu name="Office">
  19.     <item type="launcher">
  20.       <name>Open Office 3.01</name>
  21.       <icon>soffice</icon>
  22.       <command>soffice</command>
  23.     </item>
  24.     <item type="launcher">
  25.       <name>E-book Reader</name>
  26.       <icon>FBReader</icon>
  27.       <command>FBReader</command>
  28.     </item>
  29.     <item type="launcher">
  30.       <name>EpdfViewer</name>
  31.       <icon>epdfview</icon>
  32.       <command>epdfview</command>
  33.     </item>
  34.   </menu>
  35.   <menu name="InterNet">
  36.     <item type="launcher">
  37.       <name>Liferea  feed Reader</name>
  38.       <icon>liferea</icon>
  39.       <command>liferea</command>
  40.     </item>
  41.     <item type="launcher">
  42.       <name>Pidgin</name>
  43.       <icon>pidgin</icon>
  44.       <command>pidgin</command>
  45.     </item>
  46.     <item type="launcher">
  47.       <name>Skype</name>
  48.       <icon>skype</icon>
  49.       <command>skype</command>
  50.     </item>
  51.     <item type="launcher">
  52.       <name>aMule</name>
  53.       <icon>amule</icon>
  54.       <command>amule</command>
  55.     </item>
  56.   </menu>
  57.   <menu name="MutiMedia">
  58.     <item type="launcher">
  59.       <name>Gimp</name>
  60.       <icon>gimp</icon>
  61.       <command>gimp</command>
  62.     </item>
  63.     <item type="launcher">
  64.       <name>Audacious</name>
  65.       <icon>audacious</icon>
  66.       <command>audacious</command>
  67.     </item>
  68.     <item type="launcher">
  69.       <name>SMplayer</name>
  70.       <icon>smplayer</icon>
  71.       <command>smplayer</command>
  72.     </item>
  73.   </menu>
  74.   <menu name="Accessories">
  75.     <item type="launcher">
  76.       <name>LeafPad</name>
  77.       <icon>leafpad</icon>
  78.       <command>leafpad</command>
  79.     </item>
  80.     <item type="launcher">
  81.       <name>StarDict</name>
  82.       <icon>stardict</icon>
  83.       <command>stardict</command>
  84.     </item>
  85.     <item type="launcher">
  86.       <name>Xarchiver</name>
  87.       <icon>xarchiver</icon>
  88.       <command>xarchiver</command>
  89.     </item>
  90.     <item type="launcher">
  91.       <name>GpicView</name>
  92.       <icon>gpicview</icon>
  93.       <command>gpicview</command>
  94.     </item>
  95.     <item type="launcher">
  96.       <name>Notecase note manager</name>
  97.       <icon>notecase</icon>
  98.       <command>notecase /mnt/gentoo/home/bigsun/note/notecase.ncd</command>
  99.     </item>
  100.   </menu>
  101.   <menu name="Preferences">
  102.     <item type="launcher">
  103.       <name>CCSM</name>
  104.       <icon>ccsm</icon>
  105.       <command>ccsm</command>
  106.     </item>
  107.     <item type="launcher">
  108.       <name>Emerald Theme Manager</name>
  109.       <command>emerald-theme-manager</command>
  110.       <icon>fusion-icon</icon>
  111.     </item>
  112.     <item type="launcher">
  113.       <name>lxappearance</name>
  114.       <command>lxappearance</command>
  115.       <icon>gtk-preferences</icon>
  116.     </item>
  117.   </menu>
  118.   <separator/>
  119.   <item type="launcher">
  120.     <icon>gtk-edit</icon>
  121.     <command>compiz-deskmenu-editor</command>
  122.     <name>E_dit</name>
  123.   </item>
  124.   <item type="reload"/>
  125.   <separator/>
  126.   <menu name="ShutDown">
  127.     <item type="launcher">
  128.       <icon>xfce-system-lock</icon>
  129.       <name>ShutDown Computer</name>
  130.       <command>sudo halt</command>
  131.     </item>
  132.     <item type="launcher">
  133.       <name>Logout</name>
  134.       <icon>gnome-session-logout</icon>
  135.       <command>killall compiz &amp;&amp; killall tint2</command>
  136.     </item>
  137.     <item type="launcher">
  138.       <name>Reboot</name>
  139.       <command>sudo reboot</command>
  140.       <icon>gnome-session-reboot</icon>
  141.     </item>
  142.   </menu>
  143. </menu>
复制代码

cat /mnt/arch/home/bigsun/.config/compiz/deskmenu/menu.xml,这是compiz-deskmenu的配置文件.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-7 23:06:00 | 显示全部楼层
http://bbs.archlinux.org/viewtopic.php?id=51282
http://bbs.archlinux.org/viewtopic.php?id=58997
http://wiki.archlinux.org/index. ... #As_a_standalone_WM
这是arch官方的文章,我就是参考这个搞的.
X起不来,也遇到过,可能与命令加载顺序和前面加的exec有关,现在这个.xinitrc是我正用的.起动过程和使用中绝对没有调用metacity,大家看截图,alt+f1或桌面右键或顶端右键可呼出菜单.最右下角鼠标滚轮调音量.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-7 23:19:34 | 显示全部楼层
附图为证,进入桌面后内存占用114M,感觉现在compiz很成熟了,并不比其它vm慢或多占多少资源。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-5-7 23:30:38 | 显示全部楼层
Post by luckybird;1984719
附图为证,进入桌面后内存占用114M,感觉现在compiz很成熟了,并不比其它vm慢或多占多少资源。


嘿,真有你都,文章都找了不少。我是没看什么文档。
  
我启动占120M, 不过可能我多运行了笔记本用都后台程序,电源管理,touchpad管理之类。

你的compiz占多少内存?可以top看一下

回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-7 23:40:56 | 显示全部楼层
内存占用图:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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