[PR #1486] feat: system-wide /etc/ configuration support #5619

Open
opened 2026-05-23 00:57:42 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1486
Author: @victorvintorez
Created: 5/11/2026
Status: 🔄 Open

Base: masterHead: feat/etc-config


📝 Commits (4)

  • b805398 feat: implement config source resolving
  • 2bc76cb docs: update configuration docs with /etc/ config support
  • c4f096f fix: various fixes from pr review
  • 11b3e0d fix: second review fixes

📊 Changes

7 files changed (+241 additions, -130 deletions)

View changed files

📝 docs/Configuration guide.md (+3 -1)
📝 src/config/mod.rs (+14 -85)
src/config/sources.rs (+188 -0)
📝 src/ipc/server/style.rs (+2 -1)
📝 src/main.rs (+24 -28)
📝 src/modules/cairo.rs (+7 -6)
📝 src/style.rs (+3 -9)

📄 Description

Refactors Config and CSS Source resolution out of config loader and into a separate sources.rs file, and adds /etc/ as a system-wide configuration source.

Config Resolution order:

  1. IRONBAR_CONFIG / IRONBAR_CSS env vars
  2. --config / --theme CLI args
  3. $XDG_CONFIG_HOME/ironbar/ user level config
  4. /etc/ironbar/ system level config
  5. Builtin Minimal config fallback

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/ironbar/pull/1486 **Author:** [@victorvintorez](https://github.com/victorvintorez) **Created:** 5/11/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `feat/etc-config` --- ### 📝 Commits (4) - [`b805398`](https://github.com/JakeStanger/ironbar/commit/b80539893d09b9ea383fa3374546fb99a8e075ed) feat: implement config source resolving - [`2bc76cb`](https://github.com/JakeStanger/ironbar/commit/2bc76cb333568f7a70d3d6bf43626dcc7e9f5bd2) docs: update configuration docs with /etc/ config support - [`c4f096f`](https://github.com/JakeStanger/ironbar/commit/c4f096f93024f3e5cbeb8d8895f7f24809adaac0) fix: various fixes from pr review - [`11b3e0d`](https://github.com/JakeStanger/ironbar/commit/11b3e0d04c200154cd28585b1d9c4fb80834ef68) fix: second review fixes ### 📊 Changes **7 files changed** (+241 additions, -130 deletions) <details> <summary>View changed files</summary> 📝 `docs/Configuration guide.md` (+3 -1) 📝 `src/config/mod.rs` (+14 -85) ➕ `src/config/sources.rs` (+188 -0) 📝 `src/ipc/server/style.rs` (+2 -1) 📝 `src/main.rs` (+24 -28) 📝 `src/modules/cairo.rs` (+7 -6) 📝 `src/style.rs` (+3 -9) </details> ### 📄 Description Refactors Config and CSS Source resolution out of config loader and into a separate `sources.rs` file, and adds `/etc/` as a system-wide configuration source. Config Resolution order: 1. `IRONBAR_CONFIG` / `IRONBAR_CSS` env vars 2. `--config` / `--theme` CLI args 3. `$XDG_CONFIG_HOME/ironbar/` user level config 4. `/etc/ironbar/` system level config 5. Builtin Minimal config fallback --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#5619
No description provided.