lua - Awesome WM 不再最大化窗口

标签 lua awesome-wm

昨天,我很棒的配置能够最大化窗口(在我使用的任何布局(平铺/ float )中),但现在最大化命令完全不执行任何操作。

我查看了配置文件(rc.lua),没有发现任何不正确的代码。

这是我的客户端 key :

clientkeys = awful.util.table.join(
    awful.key({ modkey,           }, "f",      function (c) c.fullscreen = not c.fullscreen  end),
    awful.key({ modkey, "Shift"   }, "c",      function (c) c:kill()                         end),
    awful.key({ modkey, "Control" }, "space",  awful.client.floating.toggle                     ),
    awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
    awful.key({ modkey,           }, "o",      awful.client.movetoscreen                        ),
    awful.key({ modkey, "Shift"   }, "r",      function (c) c:redraw()                       end),
    awful.key({ modkey,           }, "t",      function (c) c.ontop = not c.ontop            end),
    awful.key({ modkey            }, "F7",     function(c) c.maximized_horizontal = not c.maximized_horizontal end),
    awful.key({ modkey            }, "F8",     function(c) c.maximized_vertical   = not c.maximized_vertical end),
    awful.key({ modkey,           }, "n",
        function (c)
            -- The client currently has the input focus, so it cannot be
            -- minimized, since minimized clients can't have the focus.
            c.minimized = true
        end),
    awful.key({ modkey,           }, "m",
        function (c)
            c.maximized_horizontal = not c.maximized_horizontal
            c.maximized_vertical   = not c.maximized_vertical
        end)
)

这里最有趣的是 modkey + F7modkey + F8 都可以工作,并且这些热键能够最大化窗口(但我需要它们合二为一),但 modkey + m 不起作用。

awesome -k 表示一切都很好。

有人可以帮忙调查一下这里出了什么问题吗?

最佳答案

第一件事:检查快捷方式是否真正执行:

awful.key({ modkey,           }, "m",
    function (c)
        naughty.notify({text="ok go"})
        c.maximized_horizontal = not c.maximized_horizontal
        c.maximized_vertical   = not c.maximized_vertical
    end)

然后你可以做更多调查

关于lua - Awesome WM 不再最大化窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29670635/

相关文章:

ios - "There are no Facebook accounts configured"在 iOS 上使用 IS 通过设置登录时出现错误消息 - 使用 Corona SDK 构建的应用程序

lua - Awesome 中缺少 Xpdf pid

lua - awesome-wm:可以映射 Alt+Shift 吗?

linux - 如何在很棒的 WM 上使用快捷方式运行 bash

Jabber 的 Lua 库

arrays - Lua - 在循环中扩展表

python - 在python中使用selenium启动非最大化的firefox

awesome-wm - 很棒的 WM : what do the icons of the title bar mean?

lua - 如何在 Lua-C API 5.2 中创建类对象?

sockets - 带有代理的lua https请求返回501错误代码