despell
1.0.1

despell MAPS命令在tmux的状态行中指向图标

O(1) ) cargo install despell注意确保
$HOME/.cargo/bin在您的PATH环境变量中
despell要求您的终端使用书呆子字体列出的字体。
despell在其核心上将字符串(进程名称)作为输入,并将字符串(图标)作为输出返回。
要在现有配置中使用despell ,请替换所有出现
#W
和
#(despell #W) #W
在您的~/.tmux.conf中。
如果您还没有~/.tmux.conf ,请查看以下示例配置以开始。
您可以通过使用屏幕截图的示例配置开始使用despell 。副本以下副本到您自己的~/.tmux.conf中以开始。
# Colors
tmux_active_fg= # a6accd
tmux_active_bg= # 414863
tmux_inactive_fg=default
tmux_statusbar_bg= # 232235
# Window status separator
set-window-option -g window-status-separator ' '
# Status bar
set-option -g status-style bg= $tmux_statusbar_bg
set-option -g status-left " "
set-option -g status-right " "
# Justify status bar
set -g status-justify centre
# Active
set-window-option -g window-status-current-format "
#[bg= $tmux_active_bg ] #(despell -c #W)
#[fg= $tmux_active_fg bg= $tmux_active_bg ] #W "
# Inactive
set-window-option -g window-status-format "
#[fg= $tmux_inactive_fg ,bg= $tmux_statusbar_bg ] #(despell -c #W)
#[fg= $tmux_inactive_fg ,dim bg= $tmux_statusbar_bg ] #W "
要中心状态行而不是左对齐(默认),将以下命令添加到您的~/.tmux.conf :
# Set alignment
set -g status-justify centre要配置tmux刷新其状态行的频率,请在您的~/.tmux.conf :
# Update the status line every X seconds
set -g status-interval 5要让despell设置图标颜色并覆盖主题设置,请使用-c或--color标志运行despell :
# (despell -c #W)要使用表情符号代替书呆子字体,请使用-e或--emoji flag运行despell :
# (despell -e #W) 要覆盖任何默认映射,请使用-u或--custom标志运行despell 。将config.toml放入~/.config/despell/config.toml中,并与您的自定义映射。
所有字段都是可选的,因此,如果您不使用表情符号,则可以安全地省略TOML的字段。
[ default ]
nerdfont = " ◒ "
color = " none "
emoji = " ? "
[ icons . command1 ]
nerdfont = " ◇ "
color = " blue "
emoji = " "
[ icons . command2 ]
nerdfont = " ❤ "
color = " magenta "
emoji = " ? " 通过打开问题,讨论或公关,让我知道。