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

libtmux.hooks.HooksMixin.set_hook

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

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
method [source]
method [source]
set_hook

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

0 declared, 0 inherited

Esc

Type to search.