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.
Asked
Active
Viewed 143 times
0

user
- 167
- 7
1 Answers
1
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

Uli Schlachter
- 9,337
- 1
- 23
- 39
-
That is indeed what it does. However your snippet is producing the following error : "attempt to call a table value" – user Apr 14 '20 at 16:11
-
1Using ```ipairs(client.get())``` seems to have fixed it – user Apr 14 '20 at 16:14
-
Whoops, sorry for missing that part. `client.get()` returns a table containing all, well, clients. `ipairs` is the "lua way" to iterate over that table. I will update my answer. – Uli Schlachter Apr 16 '20 at 14:38