Make Awesome让某些窗口处于浮动模式


1

我尝试过使用Awesome Window Manager,虽然我喜欢它,但由于一个程序存在问题,我目前无法迁移到它:Xpad。它通过调用在桌面上创建未修饰的记事本小部件gtk_window_set_decorated ()。似乎因为Awesome没有装饰窗口,所以它不响应这个功能。相反,它将使用此功能的客户端视为普通窗口,在启动时将它们拉伸到整个屏幕并破坏我的像素精确配置。

如何确保我可以在Awesome会话中使用Xpad而不更改打击垫的位置或尺寸,并且当我切换回旧的窗口管理器时,配置将如我离开时那样?

Answers:


0

我想你可以找到一个规则来处理浮动的每个XPad窗口:https://awesome.naquadah.org/wiki/FAQ#How_to_start_clients_on_specific_tags_and_others_as_floating.3F


对不起,我之前没有看到这个。只要我在屏幕上没有改变布局,这似乎就解决了这个问题。现在我只需要重新学习Awesome的基本功能......
Wutaz

1
从长远来看,链接如何毫无价值的答案的完美例子(链接已死):(
qubodup 2017年

0

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开始就是如此

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.