-
Notifications
You must be signed in to change notification settings - Fork 3
Introduce JOLLY_COLOR_HOSTNAME #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks for considering a pull request! At first thoughts, it seems indeed to contradict the design principles. But I have several questions before understanding the underlying question. It also may come against Emphasizing segments with different colors may also be considered useful for any segment, separately. But this seems a bit much to extend the feature this far. I guess my questions would be: why is the hostname specifically interesting for you? And why change the multiplexer color with the same color as the hostname? |
Unlike setting the hostname colour set via
If
Indeed, the background seems like a better choice. Especially because dim yellow (no. 3) and to lesser extent dim cyan (no. 6) letters are nearly unreadable when combined
Yes, this occurred to me too, after creating this patch. I guess it's not a bad idea to keep the default settings as they are now and give more control to users who may choose to highlight some segments of their choice.
This isn't exactly my personal use case but a friend of mine, who works daily with multiple machines at a time uses colours in host prompts (not lp/jolly yet ;) to distinguish terminal windows.
As far as I can tell the colour used in |
Those are sound arguments. It make me wonder if a refactoring that would handle cleanly the segment color problem would solve it while also making it easy to do the same for any segment. I guess different users may consider important different segments, and thus need to specifically highlight those. As of now, Jolly has been implemented using the approach of the Would it also be possible to solve your friend's problem by changing the (two/four) colors of the whole prompt? What problem would that cause? (I'm thinking about that seeing your screenshot) |
It is now possible to configure colors of the hostname segment independently. Although it may seem contrary to the the spirit of the Jolly theme to limit distractions for the user, it may actually help users quickly distingush hosts they are working with. If not set in a configuration file JOLLY_COLOR_HOSTNAME is initialized with the value of JOLLY_COLOR_LITE.
1c702ec
to
52dad2c
Compare
As far as I can tell after playing with this for while myself, I'd say I wouldn't like my prompt to change that dramatically between hosts. A single segment is just enough for me. The color scheme on the screenshot is from my office (where I a few have different machines distinguished now by different hostname segment background), while at home I use the default grey prompt on black background. Fun fact: an alternative way to change color palette of the whole prompt is to reconfigure the gray entries in the terminal palette with |
It is now possible to configure colors of the hostname segment independently. Although it may seem contrary to the the spirit of the Jolly theme to limit distractions for the user, it may actually help users quickly distingush hosts they are working with.
If not set in a configuration file JOLLY_COLOR_HOSTNAME is initialized with the value of JOLLY_COLOR_LITE.