Programmatic Tab Color based on CWD; And other Tab Title Customization #4945
KyleKing
started this conversation in
Show and tell
Replies: 2 comments
-
Neat! For the color math, consider using:
You could get more thorough or exotic by using the other color functions: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great, Exactly what I was looking for! Thank you for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When moving between tabs, I wanted to more clearly see when I change project directories. I've cobbled together a few scripts I've found online to customize the tab. Along with setting the color, the tab will have the process name or icon (e.g.
[python3.8]
or a font awesome icon for vim, lazygit, etc.). See a quick demo:Screen.Recording.2024-02-03.at.04.36.25.mov
(Note: you may need to refresh the page to view the video)
The full file is here: https://github.com/KyleKing/dotfiles/blob/39d1634456ad978f6aa59c8229a6194c02113499/dot_wezterm.lua
Update: based on @wez's advice, I've updated the function to use Wezterm's built-in color logic!
Beta Was this translation helpful? Give feedback.
All reactions