歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> Compiz是什麼?

Compiz是什麼?

日期:2017/3/6 15:34:30   编辑:關於Unix
Compiz 使眾多視效成為可能,使 Linux 桌面更易用、強大、直觀、對有特殊要求的用戶更易於操作。 Compiz 結合了窗口管理器和復合管理器,使用 OpenGL 進行渲染。一個“窗口管理器”允許對屏幕上顯示的多程序和對話窗口的操縱控制。一個“復合管理器”允許窗口 Compiz 使眾多視效成為可能,使 Linux 桌面更易用、強大、直觀、對有特殊要求的用戶更易於操作。
Compiz 結合了窗口管理器和復合管理器,使用 OpenGL 進行渲染。一個“窗口管理器”允許對屏幕上顯示的多程序和對話窗口的操縱控制。一個“復合管理器”允許窗口和其他圖形結合創建復合圖像。Compiz 通過這兩個功能實現眩目特效。
Compiz 目前僅與 Xgl 結合運行。參看一般的安裝說明。
Compiz 插件像 window-decorator 一樣,在 Gnome 和 KDE 都能運行。
使用 compiz 及其插件
第一次安裝使用 compiz 參照 使用 compiz 作為你窗口管理器
這一頁剩下的內容描述現有插件和鍵盤/鼠標快捷方式。
現有插件
Cube
這可能是 compiz 最被期待的插件。它提供一個可旋轉的虛擬立方體,每個面都是一個桌面。
* 沒有旋轉插件的話,立方體將不能旋轉,此時立方體插件將沒有任何用處。
* 立方體插件自帶切換桌面圖像的鍵盤控制。參閱Gconf的設置。
* 使用 svg 或 png 圖像作為立方體頂面地面,而背景(skydome)只能用 png 圖像。比如把一個 1024x1024 png 文件作為背景圖,啟用立方體配置中的 animate 選項後就可以享受顯示效果。
Gconf 選項:
* color -
* draw_caps - 調整立方體頂面和底面,不鉤選使它們保持透明,可以透過兩個面看到 skydome.
* images -
* images_bottom - 顯示於底面的圖像完整路徑。
* images_top - 顯示於頂面的圖像完整路徑。
* in - 鉤選則變成桌面內嵌於立方體的模式。
* next_slide - 在顯示於頂面的 svg 文件列表中,默認的後一個文件。
* prev_slide - 同上,但是前一個。
* rotate_images - 頂面底面圖像是否自動跟著立方體旋轉。
* scale_image -
* scale_image_bottom - 底面圖像是否縮放。
* scale_image_top - 頂面圖像是否縮放。
* skydome - 鉤選則開啟立方體旋轉時的背景圖像。
* skydome_animated - 鉤選則旋轉立方體時似乎你在動而立方體不動。
* skydome_image - 立方體旋轉背景圖像的完整路徑。(需先鉤選 Skydome)

Decoration
此插件為窗口裝飾提供支持。
* 除了名稱本身,window decoration 並沒什麼值得迷戀的。他們只是實用的界面窗口部件:最大化、最小化、關閉、標題欄之類。
* 提示:如果你沒有標題欄或者類似東西不對,可能是 window decoration 有問題。
Gconf 選項:
decor_theme -
shadow_offset_x - X-offset for shadows (can be negative for opposite direction).
shadow_offset_y - Y-offset for shadows (can be negative for opposite direction).
shadow_opacity - Opacity level of shadows.
shadow_radius - Radius value for shadows.
shadow_color - Sets the color of the shadow (#000000 - #ffffff).

Fade
給窗口和其他 GUI 部件提供淡入淡出效果。
* 可能是現有最精細的插件。
Gconf options:
* decor_theme -
* shadow_offset_x - X-offset for shadows (can be negative for opposite direction).
* shadow_offset_y - Y-offset for shadows (can be negative for opposite direction).
* shadow_opacity - Opacity level of shadows.
* shadow_radius - Radius value for shadows.

Gconf
在 gconf 注冊信息為 compiz 及其插件保存設置。
* 當 compiz 啟動,任何其他 gconf 插件名都被忽略,因為 compiz 依照 gconf 注冊信息加載插件。
o 所以,首次運行 compiz 先運行:
compiz --replace gconf
*
o 把 compiz 加入到 gnome-session-properties:
compiz --replace gconf cube rotate scale fade minimize zoom place move...
* 你可以用gconf-editor調整設置。關鍵項在 '/apps/compiz/' 下。
* 最有用的關鍵項:
o '/apps/compiz/general/allscreens/options/active_plugins' = 列表關鍵字,定義目前加載的插件
o '/apps/compiz/plugins/cube/screen0/options/color' = 頂面底面背景顏色 (#clearcase/" target="_blank" >cccccc 格式)
o '/apps/compiz/plugins/cube/screen0/options/svgs' = (列表) 定義 svg文件路徑,渲染在立方體頂面
o '/apps/compiz/plugins/fade/screen0/options/window_types' = (列表) 定義使用淡入淡出的窗口類型
o '/apps/compiz/plugins/fade/screen0/options/fade_speed' = 淡入淡出的速度。值越小越慢(0 到 500)
還有更多其他的,盡情發掘吧。
運行此命令激活 Windows Decoration
gnome-window-decorator &
* 使用立方體頂面
首先,保證 snap-top 選項被啟用。在 gconf-editor key apps -> compiz -> plugins -> rotate -> screen0 -> options 啟用 snap-top 選項
你可以在立方體頂面使用一個或多個 svg 文件/幻燈效果。 key apps -> compiz -> plugins -> cube -> screen0 -> options 編輯"svgs"鍵,分別添加幻燈
屏幕截圖教程 (http://moosy.blogspot.com/2006/03/drred-xgl-tweaks-part-2.html)
Minimize
對窗口最大化/最小化過程進行渲染。
Gconf settings:
speed - The speed of the minimize effect.
timestep -
Toolbar -
window_types - Select the windows you want the effect to apply to.
zoom_created_windows - Check to make the effect apply to created windows. Note: This takes priority over wobbly creation.
zoom_created_windows_from_center - Check to make windows zoom in and out from/to their center, not from/to the mouse pointer
Move
允許窗口從立方體一個面移到另一個面。
Place
展開時將窗口擺在合適位置。
* 怎樣使用
o 需要相關信息

Resize
允許調整窗口大小。
* 除了拖動標題欄改變窗口位置,使用正確的按鍵讓你可以把窗口拖到“任何地方”調整大小。這就可以把標題欄在屏幕顯示之外的窗口拖到完全可視的地方。
* 怎樣使用
o Alt + 左鍵單擊,然後拖動移動窗口
o Ctrl + Shift + 左鍵單擊,然後拖拽 移動窗口,同時自動貼近其他窗口邊框
o Alt + 中鍵單擊 調整窗口大小

Rotate
允許在立方體各個面上切換。
* 也可以截圖到立方體頂面。
* 怎樣使用:
o Ctrl + Alt + 左/右箭頭 桌面間切換
o Ctrl + Shift + Alt + 左/右箭頭 桌面間切換,保持活動窗口不動
o Ctrl + Alt + 左鍵單擊 手動旋轉立方體
Gconf options:
* acceleration - Set the acceleration of the cube-rotation. Can be set from 1 to 19.
* edge_flip - Enable edge of screen reactivity
* flip_move -
* flip_time - Time taken to flip
* initiate - Set key combination to rotate the cube with the mouse. You have to click on the desktop, it will not work by clicking in a window.
* invert_x & invert_y - Invert mouse-axis while rotating the cube.
* rotate_left & rotate_right - Set key combination to rotate the cube with keys.
* rotate_left_window & rotate_right_window - Defined keys keep the active window on top while rotating the cube.
* rotate_to_1 & rotate_to_1_window etc.. -
* sensitivity - Changes the mouse-sensitivity on cube-rotating. Can be set from 1 to 100.
* snap_bottom - Makes it possible to rotate to the bottom of the cube and have it stop in that position after releasing the mouse button. Can be used for slideshows of images listed under cube.
* snap_top - Makes it possible to rotate to the top of the cube and have it stop in that position after releasing the mouse button. Can be used for slideshows of images listed under cube.
* speed - Set the speed with which the cube rotates (1-49)
* terminate - Set key combination to terminate the function described in "initiate".
* timestep - not tested yet.

Scale
使得選擇需要的窗口更快捷。
* 把指針移向屏幕一角激活它。
* 用戶可以單擊任何窗口,使其他窗口回到原來位置。
* 和原 Expose 插件相似。
* 怎樣使用:
o 默認把指針移到右上角激活(SUSE Linux Enterprise Desktop 10 用F9)。
o 單擊選定窗口
o 可以和 Taskswitcher (alt+tab) 組合使用

Switcher
Alt-Tab 切換窗口實現膠片預覽效果。除了當前窗口其他都半透明。
* 怎樣使用:
o Alt-Tab

Water
使鼠標指針在屏幕上起波紋,仿佛在水中。
* Hold Ctrl+超級鍵
* 下雨特效在屏幕上隨機顯示雨點滴落桌面的效果。

Wobbly
拖動/調整大小/移動窗口時實現凝膠效果。
* 默認僅開啟移動的效果。
* 快捷鍵。
最大化最小化窗口會搖動,改變 friction 和 spring_k 值試試。關注非官方實驗性 wobbly 插件,它可以實現菜單和工具提示的晃動效果。
Zoom
放大/縮小屏幕某部分,同時可以滾動。
* 增強了 Linux 桌面易用性,為用戶提供直觀視效的強大工具。Zoom 在放大時文字圖像十分平滑。
* 設計師和其它在乎像素的人會喜歡它。
* 怎樣使用:
* 超級鍵 右擊 一次放大
* 超級鍵 + 滾輪向上 手動放大
* 超級鍵 + 滾輪向下 手動縮小(你必須先放大再縮回去)

不透明控制
* 透明度設置
o 最近版本快捷鍵: Alt + 滾輪上/下 調整不透明等級。
o 右擊窗口標題欄設置不透明度。

實驗性插件
* trailfocus
o 依照窗口未被使用的時間改變亮度、飽和度和不透明度
* Transset
o 將預設的透明度賦予所有程序。
* Miniwin
o 允許用戶為某窗口創建一個圖標,叫一個 mindow,顯示主窗口圖片,並可以單擊調出主窗口。是 minimize 功能可能的替代品。
* Enhanced switcher
o 顯示最小化窗口和全部工作域的窗口。
* State
o 設置菜單和工具提示的透明度。
* BS (亮度和飽和度)
o 此插件允許設置每個窗口的亮度(Shift+滾輪)和飽和度(Control+滾輪)。

外部 Compiz 管理工具
* Gset-Compiz
o 易用的 gconf-editor 替代品,可以管理 compiz 插件。

默認插件快捷鍵
Compiz->General->Screen0->Options 有很多設置
* 切換窗口 = Alt + Tab
* 鋪開顯示全部窗口 = 指針移到屏幕右上角作為開關;單擊窗口使之縮放到前台。
* 切換立方體桌面 = Ctrl + Alt + 左/右箭頭
* 切換立方體桌面 + 活動窗口跟隨 = Ctrl + Shift + Alt + 左/右箭頭
* 手動旋轉立方體 = Ctrl + Alt + 左鍵單擊並拖拽桌面空白處
* 窗口透明/不透明 = possible with the "transset" utility or Alt + 滾輪
* 放大一次 = 超級鍵 + 右擊
* 手動放大 = 超級鍵 + 滾輪向上
* 手動縮小 = 超級鍵 + 滾輪向下
* 移動窗口 = Alt + 左鍵單擊
* 移動窗口時貼住邊框 = Ctrl + Shift + 左鍵拖動
* 調整窗口大小 = Alt + 中擊
* Bring up the window below the top window = Alt + 右鍵單擊
* 動態效果減速 = Shift + F10
* 水紋 = 按住 Ctrl+超級鍵
o 雨點 = Shift-F9
* 桌面展開= Ctrl + Alt + 下箭頭,然後按住 Ctrl + Alt 和左/右箭頭選擇桌面

Copyright © Linux教程網 All Rights Reserved