user
user

Reputation: 195

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.

Upvotes: 0

Views: 173

Answers (1)

Uli Schlachter
Uli Schlachter

Reputation: 9867

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

Upvotes: 1

Related Questions