Search code examples
awesome-wm

i3's "for_window" equivalent in awesome-wm


I'm trying to setup awesome + kde Plasma. However to complete my setup I wanted to kill the windows that have the "Desktop - Plasma" title, in i3 you would do for_window [title="Desktop — Plasma"] kill;. I wanted an awesome-wm equivalent.


Solution

  • What does that i3 snippet do? Close all windows that have title "Desktop - Plasma"? If so:

    for _, c in ipairs(client.get()) do
        if c.name == "Desktop - Plasma" then
            c:kill()
        end
    end