# user-keys

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/user-keys/

> Set list of user-defined key escape sequences.

option tmux3.2a

Set list of user-defined key escape sequences.

* Scope

  server

* Type

  Text, array of values

* Separator

  `,`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.2a/manual/set-option/) `-s user-keys value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.2a/manual/show-options/) `-s user-keys`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/options/user-keys/#description)

Set list of user-defined key escape sequences. Each item is associated with a key named ‘`User0`’, ‘`User1`’, and so on.

For example:

```tmux-config
set -s user-keys[0] "\e[5;30012~"
bind User0 resize-pane -L 3
```

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/options/user-keys/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/user-keys/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/user-keys/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/options/user-keys/#source)

* Defined in

  [`options-table.c:334`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L334)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#options-user-keys)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/options/user-keys/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.USER_KEYS`](https://libtmux.org/en/rs/latest/reference/options-generated-user_keys/)

* Go

  [`tmux.Server.SetUserKeys`](https://libtmux.org/en/go/latest/reference/tmux-server-setuserkeys/), [`tmux.ServerOptionValues.UserKeys`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-userkeys/)
