0

I can't find the correct signal to connect to after changing or adding tags.

The signals I want is when you run these commands:

tag:view_only()
awful.tag.viewtoggle(tag)
FluffyDango
  • 133
  • 9

1 Answers1

3

It is property::selected. In the newer doc (for what is going to be version 4.4 eventually), you can press on Click to display more on properties to see info about signals.

  • Do I have to do a `for loop` and connect each tag with the signal or is there a simpler way? – FluffyDango Apr 17 '22 at 17:22
  • You can do `tag.connect_signal("property::selected", function() end)`. Where `tag.` is not a typo. You connect the signal to the "class" instead of the tag "object". Note that it is really `tag` and not `awful.tag` for mostly historical reasons. – Emmanuel Lepage Vallee Apr 17 '22 at 22:51