libtmux Reference MCP Search
On this page

libtmux.hooks.HooksMixin

View as Markdown

Module
libtmux.hooks
Package
libtmux
Source
src/libtmux/hooks.py
class libtmux.hooks.HooksMixin
class [source]
class [source]
class libtmux.hooks.HooksMixin
Bases:

Mixin for manager scoped hooks in tmux.

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

11 declared, 1 inherited

Members

  • default_hook_scope attribute
  • hooks attribute
  • __init__ method When not a user (custom) hook, scope can be implied.
  • _show_hook method Return value for the hook.
  • run_hook method Run a hook immediately. Useful for testing.
  • set_hook method Set hook for tmux target.
  • 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.
  • unset_hook method Unset hook for tmux target.
  • _tmux_bin property Resolve tmux_bin from self (Server) or self.server (Session/Window/Pane).

Inherited members

Reached through libtmux.common.CmdMixin.

  • cmd libtmux.common.CmdMixin
Esc

Type to search.