在rc.lua
,您可以找到该awful.rules.rule
表。只需将应用程序添加到该-- Floating clients.
部分。
要MPlayer
始终浮动,请添加"MPlayer",
到class
表中,如下所示:
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = 0, --beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
raise = true,
keys = clientkeys,
buttons = clientbuttons,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap+awful.placement.no_offscreen
}
},
-- Floating clients.
{ rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
},
class = {
"Arandr",
"Gpick",
"Kruler",
"MessageWin", -- kalarm.
"MPlayer",
"Sxiv",
"Wpa_gui",
"pinentry",
"veromix",
"xtightvncviewer"},
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, properties = { floating = true }},
然后重启awesome。
从4.0开始就是如此