使用 tmux 后端更改 byobu 中的按键绑定 Shift-F12

use*_*291 5 shortcut-keys byobu tmux

我在我的桌面和服务器上使用 byobu。要在nesset会话中操作,我使用Shift-F12,当我想使用例如htop(F键)时,我需要:

  1. 添加~/.byobu/keybindings.tmux以下内容:
    bind-key -n C-S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable \; display-message "Byobu F-keys: DISABLED"
    unbind C-S-F12

  2. 编辑/usr/share/byobu/keybindings/f-keys.tmux以注释掉该行:
    bind-key -n C-S-F12 new-window $BYOBU_PREFIX/lib/byobu/include/mondrian
    因为如果没有这个,我就无法将任何新内容绑定到按键序列。

  3. 编辑以更改 要绑定到的share/byobu/keybindings/f-keys.tmux.disable绑定
    bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux \; display-message "Byobu F-keys: ENABLED"

    C-S-F12

由于source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disableline in ,它只能工作一次/usr/share/byobu/keybindings/f-keys.tmux

有谁知道如何永久更改Shift-F12序列以Crtl-Shift-F12仅使用~/.byobu/keybindings.tmux或不编辑主目录之外的文件。