[PR #220] [MERGED] Default configuration #4775

Closed
opened 2026-05-23 00:55:24 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/220
Author: @JakeStanger
Created: 7/3/2023
Status: Merged
Merged: 7/4/2023
Merged by: @JakeStanger

Base: masterHead: feat/default-config


📝 Commits (2)

  • 1a272e0 fix(label): not using markup
  • 738b9e3 feat(config): use default fallback with config instructions

📊 Changes

6 files changed (+78 additions, -15 deletions)

View changed files

📝 src/config/mod.rs (+30 -0)
📝 src/error.rs (+0 -1)
📝 src/main.rs (+14 -13)
📝 src/modules/clock.rs (+11 -0)
📝 src/modules/focused.rs (+12 -0)
📝 src/modules/label.rs (+11 -1)

📄 Description

When no config file is found, the bar will now automatically instead load a hard-coded default consisting of the focused and clock modules, and a label informing you the bar is not configured. Instructions are also printed to the log.

Resolves #219


🔄 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/220 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 7/3/2023 **Status:** ✅ Merged **Merged:** 7/4/2023 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/default-config` --- ### 📝 Commits (2) - [`1a272e0`](https://github.com/JakeStanger/ironbar/commit/1a272e00fbeca4b5e39b527ffed439bc51fd4080) fix(label): not using markup - [`738b9e3`](https://github.com/JakeStanger/ironbar/commit/738b9e3da714c9b998030e9f60b9b6f50c62ec76) feat(config): use default fallback with config instructions ### 📊 Changes **6 files changed** (+78 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/config/mod.rs` (+30 -0) 📝 `src/error.rs` (+0 -1) 📝 `src/main.rs` (+14 -13) 📝 `src/modules/clock.rs` (+11 -0) 📝 `src/modules/focused.rs` (+12 -0) 📝 `src/modules/label.rs` (+11 -1) </details> ### 📄 Description When no config file is found, the bar will now automatically instead load a hard-coded default consisting of the `focused` and `clock` modules, and a `label` informing you the bar is not configured. Instructions are also printed to the log. Resolves #219 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 00:55:24 +01:00
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#4775
No description provided.