Skip to content

[REQUEST] Store built-in themes differently in config file #443

@Kernald

Description

@Kernald

Is your feature request related to a problem? Please describe.
When sharing configuration files across different machines (and OSs), having a hard-coded path is not ideal. Having my configuration file shared between a Linux and a macOS, the only diff I have between the two is the color_theme entry. On Linux:

color_theme = "/usr/share/btop/themes/nord.theme"

On macOS:

color_theme = "/opt/homebrew/Cellar/btop/1.2.9/share/btop/themes/nord.theme"

(Side-note: what happens on macOS when btop is updated? I suspect this path becomes invalid?)

Describe the solution you'd like
Avoid any hard-coded path. One option could be to copy/symlink the built-in themes in $XDG_CONFIG_PATH/btop/themes on startup or when selecting a built-in theme. Another one could be to only store the name for built-in themes rather than the full path.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions