Add NerdFont icons to tmux window name
- add below line to your
tmux.conf
with predefined icons for window name
set -g @plugin 'dtanphat9388/tmux-theme'
set -g @tmux-theme-window-icon "
(z|ba)?sh|term
n?vim|code|tmux|book.*
book|man(ual)?|docs?|cheat
kube.*|k8s|helm(file)?
ai|copilot
"
- Reload tmux config with command
tmux source-file
.
- press
<prefix>I
to install and boooom
- If tmux theme not effect, relaunch tmux with command
tmux kill-server
- Remove following redundance options if you have:
- remove status-position option
Theme customize via options
set -g @plugin 'dtanphat9388/tmux-theme'
+set -g @tmux-theme-{option_name}
+ #...
option name |
default value |
desc |
color-bg |
terminal |
transparent |
color-active |
#17C3B2 |
color on active (ex: window, border) |
color-inactive |
#686868 |
color on inactive (ex: window, border) |
left-color-bg |
#FFFFFF |
|
left-length |
25 |
length of left section |
right-color-bg |
#FFFFFF |
|
right-length |
50 |
length of right section |
right-label |
#{host_short} |
length of right section |
window-name-format |
#W |
length of right section |
window-zoom-format |
[#W] |
length of right section |
window-icon |
|
show icon by window name |
border-color-active |
color-active |
|
border-color-inactive |
color-inactive |
|
- icons will appear for window name match with regex
- window name is case-insensitive
set -g @tmux-theme-window-icon "
(z|ba)?sh|term
n?vim|code|tmux|book.*
book|man(ual)?|docs?|cheat
kube.*|k8s|helm(file)?
ai|copilot
"
- set active color
set -g @tmux-theme-color-active "red"
Window name and zoom format
- default format
[#W]
- use '' icon as zoom indicator '#W ' in after
- use '' icon as zoom indicator ' #W' in before
- use
#I
in window name to enable window index (ex: #I:#W
)
set -g @tmux-theme-window-name-format '#W'
set -g @tmux-theme-window-zoom-format '#W '
- icons is smaller because your font is mono font