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.

method libtmux latest

HooksMixin.set_hook

Set hook for tmux target.

Source and package
Qualified name
libtmux.hooks.HooksMixin.set_hook
Module
libtmux.hooks
Declared in
HooksMixin
Package
libtmux
Source
src/libtmux/hooks.py
set_hook ( self, hook: str, value: int | str, unset: bool | None = None, run: bool | None = None, append: bool | None = None, g: bool | None = None, global_: bool | None = None, scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE, ) → Self

Description#

Wraps $ tmux set-hook <hook> <value>.

tmux command#

The tmux commands behind set_hook.

tmux C API#

The C declarations in tmux that implement these commands.

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