Hello everyone
I'm attempting to create a shortcut key that removes all tags that are
marked in red (tags that contain urgent clients, as I understand it). This
is useful for example when launching a music player and starting last
time's playlist with a media key. Then, hitting one shortcut to clear the
urgent flag is easier than Mod4-u, Mod4-Esc. To that end, I assumed I
should use client.urgent.delete(client). Since my initial attempt seemed to
have no effect, I tried the following:
local cc = awful.client.urgent.get()
if (cc ~= nil) then
urgent = tostring(cc.urgent)
naughty.notify({ text = cc.name .. urgent })
awesome.client.urgent.delete(cc)
urgent = tostring(cc.urgent)
naughty.notify({ text = cc.name .. urgent })
end
Judging by the notifications, awesome.client.urgent.delete(client) doesn't
seem to do anything to the client's urgent flag. Both notifications contain
the name of the first urgent client as well as "true" for their
urgent-value. Same result when re-assigning "cc" after
"awesome.client.urgent.delete(cc)" has been executed.
Am I using the wrong command or is it possibly not working? I'm running
awesome 3.5.5 as well as Shifty from git.
Thanks for your time and have a nice day!