SHOW:
|
|
- or go back to the newest paste.
1 | Customizing Termux Colors: Make Your Terminal More Appealing | |
2 | For Termux users, one of the best ways to enhance your working experience is through color customization. Not only does it make your terminal look more attractive, but it also helps you easily identify important text. This article will discuss how to change the default color theme using colors.properties, leverage themes from GitHub, and provide tips on selecting eye-friendly color combinations. | |
3 | ||
4 | How to Change the Default Color Theme Using Colors.properties | |
5 | The colors.properties file is key to modifying the color theme in Termux. This file manages the color scheme used for text, background, and other terminal elements. | |
6 | ||
7 | Steps to Customize Colors.properties | |
8 | Access Termux Configuration Directory | |
9 | Run the following command to navigate to the Termux configuration folder: | |
10 | ||
11 | cd ~/.termux | |
12 | ||
13 | If the folder doesn’t exist, create it with: | |
14 | ||
15 | mkdir ~/.termux | |
16 | ||
17 | Edit or Create the Colors.properties File | |
18 | Use a text editor like nano to create or edit the colors.properties file: | |
19 | ||
20 | nano colors.properties | |
21 | ||
22 | Add Termux Color Codes | |
23 | Input your preferred color configuration. Example: | |
24 | ||
25 | background=#1E1E1E | |
26 | foreground=#FFFFFF | |
27 | cursor=#00FF00 | |
28 | color0=#000000 | |
29 | color1=#FF0000 | |
30 | color2=#00FF00 | |
31 | color3=#FFFF00 | |
32 | color4=#0000FF | |
33 | color5=#FF00FF | |
34 | color6=#00FFFF | |
35 | color7=#FFFFFF | |
36 | ||
37 | background: Background color. | |
38 | foreground: Text color. | |
39 | cursor: Cursor color. | |
40 | ||
41 | Save and Apply Changes | |
42 | After editing, save the file with Ctrl+O, then exit with Ctrl+X. Apply the changes by running: | |
43 | ||
44 | termux-reload-settings | |
45 | ||
46 | Choose a Dark Background | |
47 | Background colors like black (#000000) or dark gray (#1E1E1E) reduce eye strain, especially in low-light environments. | |
48 | Use High-Contrast Text Colors | |
49 | White text (#FFFFFF) or bright green (#00FF00) works well on dark backgrounds. | |
50 | ||
51 | Avoid low-contrast text colors like light gray on gray backgrounds. | |
52 | Limit the Use of Bright Colors | |
53 | Colors like red (#FF0000) or bright yellow (#FFFF00) are great for highlighting important text. | |
54 | ||
55 | Avoid overusing these colors as they can be distracting. | |
56 | ||
57 | Experiment with Day and Night Themes | |
58 | Create two color configurations—one for daytime with a light background and one for nighttime with a dark background. |