Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

Python documentation

libtmux.Server.set_hook

Python

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/hooks.py
Other languages
Ruby LuaTypeScriptRust Go Java .NET C++ Swift
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
method [source]
method [source]
set_hook

Inherited from libtmux.hooks.HooksMixin

Set hook for tmux target.

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

Parameters
  • hook ( str ) – hook to set, e.g. 'aggressive-resize'

  • value ( int | str ) – hook command.

Raises
In other ports Bind a command to a global hook

0 declared, 0 inherited

Esc

Type to search.