sx-autoclient
sx-autoclient is a plugin that runs a series of commands every time a new client
is created. It is usefull for putting certain windows on certain desktops or
positioning clients automatically.
Configuration
-
autoclient.rules
List of functions to call when a new client is created.
For example:
def test_rule(screen, client):
log.info('test rule!')
client.actor.configure(x=100, y=100)
config = {
# ...
'autoclient.rules': [test_rule],
}
-
class sxautoclient.SXAutoClient(app)
-
on_add_screen(app, screen)
-
on_load_config(config)
-
on_ready(app)
-
screen_on_new_client(screen, client)