The module plwm.cfilter
defines a number of client filters.
These filters can be called with a client as an argument, and returns
true if the client matches the filter, or false otherwise. Extension
modules can then provide customization with client filters, allowing the
user to give certain clients special treatment.
Currently, the following filters are defined:
These filters are true for all clients.
These filters are false for all clients.
True if the object is a wmanager.Client
instance.
True if the client is iconified.
True if the client is mapped, the opposite of iconified.
These filters are true if the client resource name or class is exactly STRING, or matches the regular expression regexp or the glob pattern pattern.
These filters are similar to the name filters above, but matches the client title instead.
These basic filters can then be assembled into larger, more complex filters using the following logical operations:
True if all of the subfilters are true.
True if at least one of the subfilters is true.
True if filter is false.
Here are some examples of compound filters:
# Match any client that isn't an Emacs Not(name('Emacs')) # Match an iconified xterm: And(iconified, name('XTerm')) # Match an xterm with a root shell (provided that the shell # prompt sets a useful xterm title) And(name('XTerm'), re_title(r'\[root.*\]'))
Go to the first, previous, next, last section, table of contents.