[英]Linux Awesomewm config exclude option from menubar
所以我讓我的 windows 使用了圓形邊框
c.shape = gears.shape.rounded_rect
但這也會影響我的菜單欄(我正在使用 polybar)有沒有辦法說
if not menubar
當我嘗試這個時,它使所有東西都有尖角。 但我只希望菜單欄有尖角。
您可以使用各種屬性來匹配某些客戶端,例如c.class
或c.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.