簡體   English   中英

Linux Awesomewm 配置從菜單欄中排除選項

[英]Linux Awesomewm config exclude option from menubar

所以我讓我的 windows 使用了圓形邊框

c.shape = gears.shape.rounded_rect

但這也會影響我的菜單欄(我正在使用 polybar)有沒有辦法說

if not menubar

當我嘗試這個時,它使所有東西都有尖角。 但我只希望菜單欄有尖角。

您可以使用各種屬性來匹配某些客戶端,例如c.classc.name (有關client對象的完整屬性列表,請參見此處)。

要找出要匹配的值,請在終端中運行xprop並單擊您的 polybar。 It will then list various properties where WM_NAME maps to c.name and WM_CLASS will list c.instance and c.class in that order, separated by a comma.

對於您的用例,與c.class匹配將是推薦的方法,因為這意味着“匹配應用程序 polybar 的任何實例”。 然后它應該看起來像這樣:

if c.class ~= "polybar" then
    c.shape = gears.shape.rounded_rect
end

您將polybar替換為從xprop獲得的值。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM