Skip to content

Instantly share code, notes, and snippets.

@aacero
Last active April 20, 2021 00:30
Show Gist options
  • Save aacero/ddd3be01c2c7d2de5e36fd35e50e3d6b to your computer and use it in GitHub Desktop.
Save aacero/ddd3be01c2c7d2de5e36fd35e50e3d6b to your computer and use it in GitHub Desktop.
Regolith Notes

Regolith Notes

Stuff that took me a while to figure out, and that I can't seem to commit to memory.

1. The system tray won't display after trying just about everything

  • Verify that tray_output is correctly defined in i3/config and that 'xrandr' agrees.
    tray_output can be "primary" or the name of a monitor, ie HDMI-0.
    Things to check:

    • xrdb -q | grep -i tray
    • grep -i tray {/etc,~/.config}/regolith/i3/config
    • xrandr
  • See if indicator-application is installed. If so, remove it with "sudo apt remove indicator-application" 1
    If indicator-application was uninstalled, ensure that Regolith is fully reloaded by logging out.

2. Rofi (Win+Ctrl+Space) doesn't find all the commands in your PATH environment variable

The Regolith/rofi PATH is set by $user/.profile. On Ubuntu, .profile sources .bashrc, so it would appear that the PATH should contain everything in both .profile and .bashrc.
However, .bashrc exits fairly early if it detects that the shell is non-interactive, so any additions (or other changes) to PATH after that check are not present in the PATH passed to rofi, and therefore rofi won't display commands from those directories.
Work-arounds:

  • Move all PATH changes above the interactive check in .bashrc
  • Move all PATH changes into .profile

3. The i3xrocks net-traffic bar plugin doesn't display anything

For various reasons you might have multiple default routes defined and the net-traffic plugin doesn't handle this well.
There's a pull request that resolves this and provides a couple of different options for listing multiple interfaces. 2, 3

References

[1] regolith-linux/regolith-desktop#181
[2] regolith-linux/regolith-i3xrocks-config#119
[3] https://github.com/LapsedAcademicsInc/regolith-i3xrocks-config/blob/ae38354cf0b3c4e278841747679abe9bf4e57774/scripts/net-traffic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment