dracula / tmux

🧛🏻‍♂️ Dark theme for tmux
https://draculatheme.com/tmux
MIT License
656 stars 308 forks source link

Enhancement: custom start and end of tmux status bar options #217

Open sollymay opened 1 year ago

sollymay commented 1 year ago

Describe the feature you'd like

Would be awesome to allow start and end of bar variables so that the style matches my current zsh style and neovim bubble styles.

Describe risks you've considered

Probably setting sane defaults as empty strings can help avoid any issues?

Describe alternatives you've considered

I have considered just creating a fork for myself, but I believe this feature is something that will allow Dracula tmux theme to be more flexible (allowing you to set your starting and ending character lets you create more customized status bars

Screenshot 2023-06-12 at 11 06 50 AM

ethancedwards8 commented 1 year ago

Have you taken a look at this? https://github.com/dracula/tmux/blob/master/INSTALL.md?plain=1#L95

sollymay commented 1 year ago

hey @ethancedwards8, yes, however it would render an unintended result as the character would render inside the text instead of rounding the start of the tmux status line as the image shown below (also, this would not take care of the right side)

Screenshot 2023-06-13 at 1 17 45 PM

result

sollymay commented 1 year ago

hey @ethancedwards8 just as an update. I was able to make the change needed to "round" the left side, which essentially its just adding: #[fg=${green},bg=${dark_gray}]#{?client_prefix,#[fg=${yellow}],}${right_sep to the beginning of the tmux set-option -g status-left portion

When I tried a similar approach on the status-right option, it is more complicated as seems like there's a loop that parses the colors there, so have not been able to figure it out yet, but this is how it looks for now. I might work on a PR to set a function to handle this case in the future

Screenshot 2023-06-13 at 3 46 12 PM