我有为具有“jetbrains-idea”类的窗口分配特定的标签和屏幕:
-- {{{ Rules
awful.rules.rules = {
[...]
{ rule_any = { class = { "Digikam", "Gimp", "Hugin", "Inkscape", "Keepassx", "libreoffice-startcenter", "Openscad", "Simple-scan", "Sqliteman", "jetbrains-idea" } },
properties = { tag = tags[math.min(2, screen.count())][3] } },
}
这只适用于IDEA的主窗口:首次运行时出现的浮动“欢迎窗口”只会出现在运行时聚焦的标签和屏幕上。这可以修复吗?
该窗口肯定与主应用程序具有相同的类 - 以下命令对于任一窗口输出相同的内容:
$ xprop | grep WM_CLASS
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "jetbrains-idea"