Change Bar Status indicators
Adding or Removing status indicators
Finding Status Indicators
$ apt search i3xrocks-
Installing a Status Indicator
$ sudo apt install i3xrocks-memory
$ regolith-look refresh
Customization of the i3 bar
Each status indicator on the bar is managed by a file. The name of the file maps to the position of the status indicator on the bar, e.g. a file’s name starting with 10_
mean its corresponding indicator will be positioned before an indicator which has a configuration file starting with 20_
. Within each file there is some information that i3xrocks
uses to execute a script that ultimately returns the data you see on the bar. Some of the status indicators have configuration parameters that can be adjusted to your liking. For example, if you would prefer that the battery status changes more frequently, the polling interval can be updated. The first thing to do in order to customize the bar is to copy the indicators you wish to see from /etc/regolith/i3xrocks/conf.d
to ~/.config/regolith/i3xrocks/conf.d
. Each file in ~/.config/regolith/i3xrocks/conf.d
can be modified as you see fit. To change the order of status indicators on the bar, simply change the name of the files to the sort order you prefer.
Once you’ve made your changes, refreshing the session should cause the bar to update based on your new configuration.
For example, to change the order of the battery and net traffic blocks on the bar and not display notifications, perform the following steps:
$ ls /etc/regolith/i3xrocks/conf.d
01_setup
30_net-traffic
80_battery
80_rofication
90_time
$ mkdir -p ~/.config/regolith/i3xrocks/conf.d
$ cd /etc/regolith/i3xrocks/conf.d
$ cp 01_setup ~/.config/regolith/i3xrocks/conf.d/01_setup
$ cp 80_battery ~/.config/regolith/i3xrocks/conf.d/30_battery
$ cp 30_net-traffic ~/.config/regolith/i3xrocks/conf.d/80_net-traffic
$ regolith-look refresh
Note: If any block configuration exists in the user directory ~/.config/regolith/i3xrocks/conf.d
, then the defaults in /etc/regolith/i3xrocks/conf.d
will be ignored.
Further Reading
The reference page for configurations has more details about the configuration files used with Regolith Linux.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.