Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

class libtmux latest

HooksMixin

Mixin for manager scoped hooks in tmux.

Base types CmdMixin
Source and package
Qualified name
libtmux.hooks.HooksMixin
Module
libtmux.hooks
Package
libtmux
Source
src/libtmux/hooks.py
class libtmux.hooks.HooksMixin

Description#

Requires tmux 3.1+. For older versions, use raw commands.

Members11#

Common operations3#

  • set_hooks method Set multiple indexed hooks at once.
  • show_hook method Return value for a hook.
  • show_hooks method Return a dict of hooks for the target.

Other members8#

Inherited members1 member#

Reached through libtmux.common.CmdMixin.

tmux hooks#

Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.

Esc

Type to search.

Reference previewOpen reference