Ubuntu 使用 awn 美化類 MAC 風格的補充

來源:互聯網
上載者:User

    網上有很多將 Ubuntu 美化為 MAC 介面的文章(可見本人轉帖 Turn Your Ubuntu Hardy to Mac OSX Leopard
,針對ubuntu 9.10 的安裝不同的地方,已在文中修改),其中 awn 工具類比了 MAC 底部托盤的啟動欄。大大的表徵圖確實很好用。

 

   缺陷:

   但是上面文中提到刪除 Ubuntu 底部的 panel ,在應用程式最大化時會有個問題,應用程式的底部會到顯示器的最底端,和 awn 重合。這樣在使用 word 等程式的時候會帶來一些不便,awn 可能會檔住 word 底部的一些按鈕。

 

   解決思路:

   使用一個縮在左下角或右下角的透明的高度合適的 panel 阻止應用程式視窗到顯示器底部。

 

   做法:

   在頂部panel中右擊->new panel,在目錄 ~
/.gconf/apps/panel/toplevels 下可能存在 panel_0  檔案夾(此檔案夾名稱可能個人各有不同),修改 ~
/.gconf/apps/panel/toplevels /panel_0

/%gconf.xml 檔案,可參照或修改使用小弟的。其中主要是紅色兩行,第一紅色行“48”表示panel的高度;等二紅色行是y軸位置,值=顯示器y軸總像素-上面的48
.
<?xml version="1.0"?>
<gconf>
    <entry name="size" mtime="1265035829" type="int" value="48"/>

    <entry name="x_right" mtime="1265035426" schema="/schemas/apps/panel/toplevels/x_right" type="int" value="-1"/>
    <entry name="screen" mtime="1265033883" schema="/schemas/apps/panel/toplevels/screen" type="int" value="0"/>
    <entry name="unhide_delay" mtime="1265033883" schema="/schemas/apps/panel/toplevels/unhide_delay"/>
    <entry name="animation_speed" mtime="1265033883" schema="/schemas/apps/panel/toplevels/animation_speed" />
    <entry name="monitor" mtime="1265033883" schema="/schemas/apps/panel/toplevels/monitor" type="int" value="0"/>
    <entry name="auto_hide_size" mtime="1265033883" schema="/schemas/apps/panel/toplevels/auto_hide_size"/>
    <entry name="x" mtime="1265035854" schema="/schemas/apps/panel/toplevels/x" type="int" value="0"/>
    <entry name="y" mtime="1265035854" schema="/schemas/apps/panel/toplevels/y" type="int" value="852"/>

    <entry name="orientation" mtime="1265035985" schema="/schemas/apps/panel/toplevels/orientation" type="string">
        <stringvalue>bottom</stringvalue>
    </entry>
    <entry name="y_bottom" mtime="1265033883" schema="/schemas/apps/panel/toplevels/y_bottom"/>
  
 <entry name="auto_hide" mtime="1265034058"
schema="/schemas/apps/panel/toplevels/auto_hide" type="bool"
value="false"/>
</gconf>

此時panel會縮小到螢幕左下角,在應用程式視窗最大化時,阻止繼續向下和awn重合。
此外panel的背景是在 ~/.gconf/apps/panel/toplevels/panel_0/background/%gconf.xml 檔案中進行配置的,可在panel上右擊->屬性,將背景設定為透明,也可參照我的設定檔:

<?xml version="1.0"?>
<gconf>
    <entry name="stretch" mtime="1265033883" schema="/schemas/apps/panel/toplevels/background/stretch"/>
    <entry name="fit" mtime="1265033883" schema="/schemas/apps/panel/toplevels/background/fit"/>
    <entry name="image" mtime="1265036624" schema="/schemas/apps/panel/toplevels/background/image" type="string">
        <stringvalue>/home/miao/Pictures/壁紙/DSCF0090.JPG</stringvalue>
    </entry>
    <entry name="color" mtime="1265033883" schema="/schemas/apps/panel/toplevels/background/color"/>
    <entry name="type" mtime="1265036634" schema="/schemas/apps/panel/toplevels/background/type" type="string">
        <stringvalue>color</stringvalue>
    </entry>
    <entry name="rotate" mtime="1265033883" schema="/schemas/apps/panel/toplevels/background/rotate"/>
  
 <entry name="opacity" mtime="1265033961"
schema="/schemas/apps/panel/toplevels/background/opacity" type="int"
value="0"/>
</gconf>

 

    最終效果:    csdn圖傳不上,後會補充。   缺陷:   在右下角會有點 panel 的邊緣露在外,在 panel enpand 時邊緣會消失,但是有時會檔住 awn .

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.