~unwox/awm-floatbar

dbdc8e665cab76b89c5e5acc101c8ece3554adee — Vlad Gorenkin 6 years ago 369e291
Add luacheck inline commands
1 files changed, 4 insertions(+), 4 deletions(-)

M init.lua
M init.lua => init.lua +4 -4
@@ 41,21 41,21 @@ function floatbar.init()
    end
  end

  client.connect_signal("property::floating", function(c)
  client.connect_signal("property::floating", function(c) -- luacheck: globals client
    set_titlebar(c, c.floating)
  end)

  client.connect_signal("property::fullscreen", function(c)
  client.connect_signal("property::fullscreen", function(c) -- luacheck: globals client
    set_titlebar(c, not c.fullscreen and c.floating)
    c:emit_signal("request::geometry", "fullscreen", { store_geometry = false })
  end)

  client.connect_signal("tagged", function(c)
  client.connect_signal("tagged", function(c) -- luacheck: globals client
    c.floating = c.first_tag.layout == awful.layout.suit.floating
    set_titlebar(c, c.floating)
  end)

  tag.connect_signal("property::layout", function(t)
  tag.connect_signal("property::layout", function(t) -- luacheck: globals tag
    for _, c in pairs(t:clients()) do
      set_titlebar(c, t.layout == awful.layout.suit.floating)
    end