我试图找到 xev 窗口的名称,以便我可以使 xmonad 浮动它,但 xprop 返回
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified size: 178 by 178
program specified minimum size: 78 by 78
WM_COMMAND(STRING) = { "xev" }
WM_NAME(STRING) = "Event Tester"
“Event Tester”和“xev”似乎都不是正确的名字。至少把它插入这里
myManageHook = composeAll
[ className =? "MPlayer" --> doFloat
, className =? "Gimp" --> doFloat
, className =? "Udiskie" --> doFloat
, className =? "XClock" --> doFloat
, className =? "Xmessage" --> doFloat
, className =? "Event Tester" --> doFloat
]
没有达到预期的效果。我如何找到名字?
答案1
尝试
appName =? "Event Tester" --> doFloat
答案2
如果您想使用窗口管理器名称,请使用title
代替className
。就您而言,您正在寻找的是这个。
myManageHook = composeAll
[ className =? "MPlayer" --> doFloat
, className =? "Gimp" --> doFloat
, className =? "Udiskie" --> doFloat
, className =? "XClock" --> doFloat
, className =? "Xmessage" --> doFloat
, title =? "Event Tester" --> doFloat
]