Changing terminal colors in Urxvt

27.9.2014 by Vladislav Supalov

On my Arch Linux machines, I really like to use the terminal emulator Urxvt and Redshift, which makes the screen surprisingly soft on the eyes after sundown. As a result, the blue color found of the default terminal color scheme is next to unreadable. Unfortunately it is used frequently on most unmodified linux distributions, for example to signify directories in a colored ls output.

One solution is to modify the ls_colors and other relevant settings by hand, on every machine you frequent via ssh. A preferable way to solve this issue once and for all is described in the following answer by sarnold to a question on Stack Overflow.

Just change the terminal emulator interpretation of colors by specifying them in the ~/.Xresources file. For Urxvt, the offending color can be subdued by adding the following line:

URxvt.color4:           #00DDFF

the changes can be applied and tested immediately by running:

$ xrdb -merge ~/.Xresources

Join the mailing list!

Subscribe to get notified about future articles and stay in touch via email.

I write about Kubernetes, Docker, automation- and deployment topics, but would also like to keep you up to date about news around the business-side of things.

Privacy and your data: You can get more information about the usage of your data, the storage of your registration, sending out mails with the US-provider ConvertKit, statistical analysis of emails sent and your possibility to unsubscribe in my Privacy Policy.

I use the US-provider ConvertKit for email automation. By clicking to submit this form, you acknowledge that the information you provide will be transferred to ConvertKit for processing in accordance with their Privacy Policy and Terms.

We won't send you spam. Unsubscribe at any time. Powered by ConvertKit