Called when Qtile has initialized
Called when the client name changes.
Called when group is added.
Called when group is deleted.
Called when a new window is added to a group.
Called after Qtile starts managing a new client. That is, after a window is assigned to a group, or when a window is made static. This hook is not called for internal windows.
Arguments:
Called before Qtile starts managing a new client. Use this hook to declare windows static, or add them to a group on startup. This hook is not called for internal windows.
Arguments:
Example:
def func(c):
if c.name == "xterm":
c.togroup("a")
elif c.name == "dzen":
c.static(0)
libqtile.hook.subscribe.client_new(func)
Called when the client urgent hint changes.
Called when focus is changed.
Called when a change in float state is made
Called after a client has been unmanaged.
Arguments:
Called when group is changed.
Called on layout change.
Called whenever client state changes.
Called whenever a windows name changes.
Called when the mouse enters a client.
Called whenever window type changes.
Called when a screen is added or screen configuration is changed (via xrandr). The hook should take two arguments: the root qtile object and the xproto.randr.ScreenChangeNotify event. Common usage is simply to call qtile.cmd_restart() on each event (to restart qtile when there is a new monitor):
Example:
def restart_on_randr(qtile, ev):
qtile.cmd_restart()