Comments (2)
I've held off this so far for a couple of reasons:
- Firstly, the general approach I've taken with Ironbar, especially in regards to config, is to be pretty un-opinionated. Any base configuration I provide is going to be different to what a good proportion of users want. This also includes the config file format.
- Secondly, I don't want to jump the gun. It's still (fairly) early days and adding a default config becomes yet another thing to maintain and consider with each update and any breaking changes.
That said, two more things:
- The fact that it errors on startup currently is not the intended behaviour. Ironbar should without a config, and each module should work (even if they display nothing) with no configuration other than
type
. I'd consider any exceptions to that a bug, so I'll get the "File not found" issue sorted as a priority. - I do fully understand that for most new users, having something display is a nicer experience than an empty bar you have to set up yourself.
It may be, unless it turns out there's a strong consensus one way or the other, that I'll handle this in multiple phases, so that something is at least displayed when unconfigured.
Short-term, perhaps the answer is to have a very simple default config that's loaded when no file exists. This could just contain the clock
module and a label informing you to configure it. Some messages can also be written to the console with details.
Long term I'd like to have some kind of interactive config builder, either through the CLI, or maybe even a UI of its own (we can dream!).
from ironbar.
The linked PR handles this well enough for now I think - it includes a hard-coded config, so it's not going to get forgotten in any breaking changes etc. It provides a bare minimum (focused + clock) and informs the user it's the default config. Some logging has also been added with a link to the wiki to make this obvious.
from ironbar.
Related Issues (20)
- Regex support in different modules HOT 1
- [Clock/Calendar] Always show current date HOT 1
- [Clock/Calendar] Custom dates / Interactive calendar / Show events
- [Clipboard] Custom handlers / Auto-close with notification HOT 2
- [Launcher] Right click menu / Custom actions HOT 1
- [Launcher] Indicate number of open windows HOT 1
- [Launcher] More indicators for where applications are HOT 1
- thread 'main' has overflowed its stack HOT 7
- [Clock/Calendar] Change default start of the week day HOT 2
- Example CSS misses some elements with default GTK theme
- Fails to compile when installing with ```cargo install ironbar``` HOT 6
- [Workspaces] Visible workspaces CSS selector HOT 7
- Fails to start hyprland event listener. HOT 5
- Bar disappears after some time with DPMS off HOT 5
- Example config.corn does not start HOT 2
- Auto-hide bar HOT 2
- Rotate widgets HOT 1
- Add official Nix package install info
- Hot reload don't work when file is edited using Vim HOT 1
- [Sys Info] Add used memory to be shown in MiB HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ironbar.