KWin/zh-tw: Difference between revisions

From KDE UserBase Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 11: Line 11:
:* 改進的效率
:* 改進的效率


<span class="mw-translate-fuzzy">
'''KWin''' (pronounced "kwin" in one word) is the window manager for the '''KDE Plasma Desktop'''. It gives you complete control over your windows, making sure they're not in the way but aid you in your task. It paints the window decoration, the bar on top of every window with (configurable) buttons like close, maximize and minimize. It also handles placing of windows and switching between them.
'''KWin''' (發音"kwin")'''KDE Plasma 桌面''' 的視窗管理員。他讓你完全操控你的視窗,確保他們不是在妨礙工作而是在說明你完成任務。他繪製視窗裝飾,每個視窗頂部的欄,帶有(可定製的)按鈕比如關閉,最大化和最小化。他同樣處理視窗移動和互相切換。
</span>


'''KWin''' 支援''混成''特性(compositing), 意味著能夠使用 3D 效果來處理你的視窗。這使得視窗管理更平滑,更容易,更有效和更自然。它的硬體要求非常的適當,幾乎每個相當於2002年之後的現代系統都支援它。與某些硬體還存在一些問題,要了解更多資訊,請點擊[http://techbase.kde.org/Projects/KWin_(zh_TW) techbase]
'''KWin''' 支援''混成''特性(compositing), 意味著能夠使用 3D 效果來處理你的視窗。這使得視窗管理更平滑,更容易,更有效和更自然。它的硬體要求非常的適當,幾乎每個相當於2002年之後的現代系統都支援它。與某些硬體還存在一些問題,要了解更多資訊,請點擊[http://techbase.kde.org/Projects/KWin_(zh_TW) techbase]
Line 21: Line 19:
右擊視窗裝飾(就是標題列)或開啟 [[Special:myLanguage/System Settings|系統設定]] 存取 '''KWin''' 新的更容易的設定。在這你可以啟用特效以便更有效的管理你的視窗。比如你能用'''視窗輪轉(Present Windows)'''作為"視窗切換"的特效。不同於顯示圖示或是小的程式預覽縮圖,他安排整理執行中的視窗在同一個網格內,然後你能快速的選擇你要的那個視窗。只要使用 <keycap>Alt-Tab</keycap>快捷鍵組合,保持ALT按鍵一直按住。現在你能用 <keycap>Alt</keycap>按鍵遍歷選擇視窗或用滑鼠; 啟動相應的視窗。快速的擊打 <keycap>Alt-Tab</keycap>按鍵會顯示佇列中下一個視窗,就如以前一樣。
右擊視窗裝飾(就是標題列)或開啟 [[Special:myLanguage/System Settings|系統設定]] 存取 '''KWin''' 新的更容易的設定。在這你可以啟用特效以便更有效的管理你的視窗。比如你能用'''視窗輪轉(Present Windows)'''作為"視窗切換"的特效。不同於顯示圖示或是小的程式預覽縮圖,他安排整理執行中的視窗在同一個網格內,然後你能快速的選擇你要的那個視窗。只要使用 <keycap>Alt-Tab</keycap>快捷鍵組合,保持ALT按鍵一直按住。現在你能用 <keycap>Alt</keycap>按鍵遍歷選擇視窗或用滑鼠; 啟動相應的視窗。快速的擊打 <keycap>Alt-Tab</keycap>按鍵會顯示佇列中下一個視窗,就如以前一樣。


<span class="mw-translate-fuzzy">
If your X server already supports compositing, switching it on is as easy as opening System Settings, opening the <menuchoice>Worskpace Appearance and Behaviour</menuchoice> module, choosing <menuchoice>Desktop Effects</menuchoice> and enabling the checkbox <menuchoice>Enable desktop effects at startup</menuchoice>. More advanced compositing settings (such as ''Use VSync'', ''Scale method'', ''Compositing type'') are available through the <menuchoice>Advanced</menuchoice> dialog. Customising the behaviour of the KWin effects means opening the <menuchoice>All effects</menuchoice> tab, and choosing the plugins you want to use. Please note that only a subset of the plugins works with ''XRender''-based compositing. For the full experience, you need to use OpenGL mode.
如果你的 X server 已經支援「混成」,那簡單的開啟「系統設定」,進入<menuchoice>桌面</menuchoice>模組,選擇<menuchoice>桌面效果</menuchoice>,然後勾選「啟用桌面效果」來切換。更多高階的混成設定(比如''VSync 操作''''直接渲染''''混成型式'')可透過<menuchoice>高階</menuchoice>分頁操作。自訂KWin特效的行為可開啟<menuchoice>全部效果</menuchoice>標籤,選擇你想要用的外掛程式。請注意只有一部份外掛程式能在 ''XRender'' 型式混成下工作。要獲得完全的體驗,你需要使用 OpenGL 型式。
</span>


使用物理學動力,'''KWin''' 給視窗提供了更自然的感覺。新的桌面特效像是'''立方體'''桌面切換和'''魔燈'''最小化動畫都已經有添加。現有特效的改進使得視窗管理員相比以前更順暢。KWin在效能上有很多改進以使得在低配置硬體上能夠開啟那些特效。精細的檢查確保低配置硬體的使用者不會面對一套無法使用的配置方案。KWin檢查硬體的效能如果需要會適當的調低效果。你可以選擇自己控制,禁用那些功能檢查或修改設定像是調整全域動畫速度到自己喜歡的。當你電腦在高負載時,'''KWin''' 會臨時自動取消混成特性保證其他任務執行流暢。如果取消特效了他會通知你,你能按住<keycap>Shift+Alt+F12</keycap>重新啟用混成特性。最後,對多螢幕處理的支援已經由使用新的'''Kephal''' 函式庫在'''KWin'''中得到改進。你可以在'''Xinerama'''螢幕之間移動最大化的視窗,額外的外部螢幕都會正確處理。
使用物理學動力,'''KWin''' 給視窗提供了更自然的感覺。新的桌面特效像是'''立方體'''桌面切換和'''魔燈'''最小化動畫都已經有添加。現有特效的改進使得視窗管理員相比以前更順暢。KWin在效能上有很多改進以使得在低配置硬體上能夠開啟那些特效。精細的檢查確保低配置硬體的使用者不會面對一套無法使用的配置方案。KWin檢查硬體的效能如果需要會適當的調低效果。你可以選擇自己控制,禁用那些功能檢查或修改設定像是調整全域動畫速度到自己喜歡的。當你電腦在高負載時,'''KWin''' 會臨時自動取消混成特性保證其他任務執行流暢。如果取消特效了他會通知你,你能按住<keycap>Shift+Alt+F12</keycap>重新啟用混成特性。最後,對多螢幕處理的支援已經由使用新的'''Kephal''' 函式庫在'''KWin'''中得到改進。你可以在'''Xinerama'''螢幕之間移動最大化的視窗,額外的外部螢幕都會正確處理。


<span class="mw-translate-fuzzy">
More information about what was introduced in KDE SC 4.9 can be found at the following link:
更多 KDE 4.2 新加特性的資訊能在下列鏈結找到:
</span>


<span class="mw-translate-fuzzy">
* [http://blog.martin-graesslin.com/blog/2012/09/performance-improvements-in-kwin-4-9-2-and-4-10 kwin improvements]
:* [http://nowwhatthe.blogspot.com/2008/12/kwin-screencast.html kwin視訊]
</span>


== 教學 ==
== 教學 ==
Line 39: Line 31:
===你想要一個程式每次都以特定的大小,在特定的螢幕位置啟動===
===你想要一個程式每次都以特定的大小,在特定的螢幕位置啟動===


<span class="mw-translate-fuzzy">
[[Image:KWin_Settings_Geometry.png|thumb|400px|center|Size and Position]]
[[Image:KWin_Settings_Geometry.png|thumb|400px|center|幾何分頁]]
</span>


有時候一個程式的螢幕位置都對你的舒適至關重要,使用 '''KWin''' 的靈活性確保他總是出現在你期望的地方。
有時候一個程式的螢幕位置都對你的舒適至關重要,使用 '''KWin''' 的靈活性確保他總是出現在你期望的地方。


<span class="mw-translate-fuzzy">
Position the window where you want it to open, then right-click on the title-bar, choosing <menuchoice>Advanced -> Special Window Settings</menuchoice>.  This will open a settings window, with appropriate entries already made.  All you need to do now is select the <menuchoice>Size & Position</menuchoice> tab and check <menuchoice>Position</menuchoice> and <menuchoice>Size</menuchoice>.  OK - you are finished!
放置視窗到你想要他開啟的位置,然後右擊標題列,選擇 <menuchoice>高階 > 特殊視窗設定 </menuchoice>。這會開啟一個設定視窗,裡面適當的內容都已經寫好了。現在你所需要做的就是選擇 <menuchoice>幾何 </menuchoice>內容頁並勾選 <menuchoice>位置 </menuchoice><menuchoice>大小 </menuchoice>。OK - 完成了!
</span>


===從命令列用指令碼控制視窗管理員===
===從命令列用指令碼控制視窗管理員===
Line 57: Line 45:
[[Image:KWin_Configure_Buttons.png|thumb|400px|center|定制按鈕]]
[[Image:KWin_Configure_Buttons.png|thumb|400px|center|定制按鈕]]


<span class="mw-translate-fuzzy">
Take a look at <menuchoice>System Settings -> Application Style -> Window Decorations -> Buttons</menuchoice> tab. The options open to you may depend on your distribution or theme, and it's clear that there is more to come.
看一下 <menuchoice>系統設定 > 外觀 > 視窗 > 按鈕 </menuchoice>- 並勾選 <menuchoice>使用定製的標題條按鈕位置 </menuchoice>。你開啟的選項可能要依賴你發行版或主題,有可能會不同,很明顯後面還有更多選項。
</span>


<span class="mw-translate-fuzzy">
可能你想要在<menuchoice>關閉<menuchoice>按鈕和<menuchoice>最小化/最大化</menuchoice>按鈕組合之間有更多的<menuchoice>間隙</menuchoice>?所以你想要添加一個間距或兩個。怎麼做的方法對我來說不夠直觀。自訂頁面的描述一旦你能理解的話貌似是說的很清楚,但對我來說不夠直接。
</span>


簡單的移動里標題列模板(the speciman titlebar)的東西 - 就是那是個帶有巨大KDE字樣的黑藍色的一欄。在上面拖動圖示,你會看到他們在螢幕底部的預覽視窗里移動了。
簡單的移動里標題列模板(the speciman titlebar)的東西 - 就是那是個帶有巨大KDE字樣的黑藍色的一欄。在上面拖動圖示,你會看到他們在螢幕底部的預覽視窗里移動了。
Line 77: Line 60:
|}
|}


<span class="mw-translate-fuzzy">
Right-click on your desktop - select <menuchoice>Desktop Settings</menuchoice> (or <menuchoice>Appearance Settings</menuchoice>, in some distros).  Change the <menuchoice>Layout:</menuchoice> from <menuchoice>Desktop</menuchoice> to <menuchoice>Folder View</menuchoice>.  The whole desktop is now a folderview, and another right-click on the desktop will allow you to select <menuchoice>FolderView Settings</menuchoice>.  Set the folderview to the directory you want to use as your desktop.
右擊桌面-選擇<menuchoice>桌面設定</menuchoice>(在某些發行版中或叫<menuchoice>外觀設定</menuchoice>)。修改<menuchoice>型式</menuchoice>:從<menuchoice>桌面</menuchoice>修改成<menuchoice>資料夾檢視</menuchoice>。現在整個桌面就成了一個資料夾檢視,再右擊桌面會允許你選擇資料夾檢視設定。設定資料夾檢視到任何你想要拿來當桌面的目錄。
</span>


===直接在不同的桌面開啟程式===
===直接在不同的桌面開啟程式===
Line 91: Line 72:
===視窗裝飾更小===
===視窗裝飾更小===


[[Image:KWin_Small_Decorations.png|thumb|400px|center|Oxygen 和 Laptop 樣式]]
[[Image:KWin_Small_Decorations.png|thumb|400px|center|Breeze, Plastik, and Oxygen Styles]]


<span class="mw-translate-fuzzy">
<menuchoice>System Settings -> Application Style -> Window Decorations</menuchoice> tab. Two good options there:
<menuchoice>系統設定 > 外觀 > 窗口 > 窗口裝飾</menuchoice>分頁。有2個不錯的選項:
</span>


[[Image:KWin_Oxygen_Small.png|thumb|300px|center|設定 Oxygen 樣式]]
[[Image:KWin_Oxygen_Small.png|thumb|300px|center|設定 Oxygen 樣式]]


<span class="mw-translate-fuzzy">
* Using the default style (Breeze), select <menuchoice>Configure Decoration</menuchoice> and set <menuchoice>Button size</menuchoice> to <menuchoice>Tiny</menuchoice> or <menuchoice>Small</menuchoice>.
* 使用默認樣式(Oxygen),選擇 <menuchoice>配置裝飾</menuchoice> 設定 <menuchoice>按鈕大小</menuchoice><menuchoice></menuchoice><menuchoice>邊框大小</menuchoice> 為<menuchoice>小</menuchoice>
* Using an other style, with smaller windows decorations.
* 選擇 <menuchoice>筆記本(Laptop)</menuchoice>
</span>


2條路都能獲得實用的細窗口標題欄和邊框。
2條路都能獲得實用的細窗口標題欄和邊框。
Line 108: Line 85:
===修改基礎字體大小===
===修改基礎字體大小===


<span class="mw-translate-fuzzy">
On many netbooks the screen is very clear, so that reading fonts much smaller than you expect is feasible.  On Acer Aspire One I find that 8 point is a good base settings.
很多小筆電的螢幕都很小,所以閱讀比期望小的多的字型也是可行的。在我的 Acer Aspire One 上,我找到8號是很不錯的基礎字型設定。
</span>


==='''Firefox'''  採用更小的字型===
==='''Firefox'''  採用更小的字型===

Revision as of 14:10, 2 October 2018

KDE 4.5 空桌面
KDE Plasma 桌面可靠又靈活的視窗管理員,現在支援 3D 特效!

特性預覽

  • 穩定和可靠
  • 混合的 3D 效果
  • 容易設定
  • 改進的效率

KWin (pronounced "kwin" in one word) is the window manager for the KDE Plasma Desktop. It gives you complete control over your windows, making sure they're not in the way but aid you in your task. It paints the window decoration, the bar on top of every window with (configurable) buttons like close, maximize and minimize. It also handles placing of windows and switching between them.

KWin 支援混成特性(compositing), 意味著能夠使用 3D 效果來處理你的視窗。這使得視窗管理更平滑,更容易,更有效和更自然。它的硬體要求非常的適當,幾乎每個相當於2002年之後的現代系統都支援它。與某些硬體還存在一些問題,要了解更多資訊,請點擊techbase

實用功能

右擊視窗裝飾(就是標題列)或開啟 系統設定 存取 KWin 新的更容易的設定。在這你可以啟用特效以便更有效的管理你的視窗。比如你能用視窗輪轉(Present Windows)作為"視窗切換"的特效。不同於顯示圖示或是小的程式預覽縮圖,他安排整理執行中的視窗在同一個網格內,然後你能快速的選擇你要的那個視窗。只要使用 Alt-Tab快捷鍵組合,保持ALT按鍵一直按住。現在你能用 Alt按鍵遍歷選擇視窗或用滑鼠; 啟動相應的視窗。快速的擊打 Alt-Tab按鍵會顯示佇列中下一個視窗,就如以前一樣。

If your X server already supports compositing, switching it on is as easy as opening System Settings, opening the Worskpace Appearance and Behaviour module, choosing Desktop Effects and enabling the checkbox Enable desktop effects at startup. More advanced compositing settings (such as Use VSync, Scale method, Compositing type) are available through the Advanced dialog. Customising the behaviour of the KWin effects means opening the All effects tab, and choosing the plugins you want to use. Please note that only a subset of the plugins works with XRender-based compositing. For the full experience, you need to use OpenGL mode.

使用物理學動力,KWin 給視窗提供了更自然的感覺。新的桌面特效像是立方體桌面切換和魔燈最小化動畫都已經有添加。現有特效的改進使得視窗管理員相比以前更順暢。KWin在效能上有很多改進以使得在低配置硬體上能夠開啟那些特效。精細的檢查確保低配置硬體的使用者不會面對一套無法使用的配置方案。KWin檢查硬體的效能如果需要會適當的調低效果。你可以選擇自己控制,禁用那些功能檢查或修改設定像是調整全域動畫速度到自己喜歡的。當你電腦在高負載時,KWin 會臨時自動取消混成特性保證其他任務執行流暢。如果取消特效了他會通知你,你能按住Shift+Alt+F12重新啟用混成特性。最後,對多螢幕處理的支援已經由使用新的Kephal 函式庫在KWin中得到改進。你可以在Xinerama螢幕之間移動最大化的視窗,額外的外部螢幕都會正確處理。

More information about what was introduced in KDE SC 4.9 can be found at the following link:

教學

你想要一個程式每次都以特定的大小,在特定的螢幕位置啟動

Size and Position

有時候一個程式的螢幕位置都對你的舒適至關重要,使用 KWin 的靈活性確保他總是出現在你期望的地方。

Position the window where you want it to open, then right-click on the title-bar, choosing Advanced -> Special Window Settings. This will open a settings window, with appropriate entries already made. All you need to do now is select the Size & Position tab and check Position and Size. OK - you are finished!

從命令列用指令碼控制視窗管理員

使用這個WMIface工具。

自定義標題欄按鈕位置

定制按鈕

Take a look at System Settings -> Application Style -> Window Decorations -> Buttons tab. The options open to you may depend on your distribution or theme, and it's clear that there is more to come.


簡單的移動里標題列模板(the speciman titlebar)的東西 - 就是那是個帶有巨大KDE字樣的黑藍色的一欄。在上面拖動圖示,你會看到他們在螢幕底部的預覽視窗里移動了。

你可能會找到其他可用的圖示。圓圈指的是設定視窗到所有桌面的按鈕。另一個你能找到的有用圖示是陰影 - 在捲起(只有標題列可見)和正常檢視間切換。直接拖動文字描述框內的圖示到標題列模板(the speciman titlebar)就成 - 隨你喜歡放哪

如果你更喜歡傳統KDE3類型的桌面

切換到傳統桌面

Right-click on your desktop - select Desktop Settings (or Appearance Settings, in some distros). Change the Layout: from Desktop to Folder View. The whole desktop is now a folderview, and another right-click on the desktop will allow you to select FolderView Settings. Set the folderview to the directory you want to use as your desktop.

直接在不同的桌面開啟程式

用如下命令

kstart --desktop 4 kate

小尺寸屏幕下的使用(比如上網本)

視窗裝飾更小

Breeze, Plastik, and Oxygen Styles

System Settings -> Application Style -> Window Decorations tab. Two good options there:

設定 Oxygen 樣式
  • Using the default style (Breeze), select Configure Decoration and set Button size to Tiny or Small.
  • Using an other style, with smaller windows decorations.

2條路都能獲得實用的細窗口標題欄和邊框。

修改基礎字體大小

On many netbooks the screen is very clear, so that reading fonts much smaller than you expect is feasible. On Acer Aspire One I find that 8 point is a good base settings.

Firefox 採用更小的字型

調整 about:config 並沒帶來滿意的結果。那這樣做。下載安裝gtk-chtheme。使用那個工具,你能設定特定的字型大小,或更好的是,告訴他使用你的KDE字型設定。對包括 Firefox 在內的所有你用的gtk 程式都有用。

KMail 的聚合(Aggregation)選項占了太多空間

閱讀 這份 FAQ 來修改。

KMail 文件夾列表(Folder-List)的工具提示隱藏了太多文件夾名稱

閱讀 這份 FAQ 來修改它們的行為。

畫廊

畫廊 展示多種過去和當前的桌面、特效截圖。

圖形顯示故障

顯示問題基本上都是顯卡驅動引起的,請查閱 桌面特效效能

定義視窗規則

KWin 規則 介紹了如何定制視窗規則。