Comments (9)
I only have a subset of them installed today.
I was wondering whether another option would be possible:
- Passing them as part of an initialisation call.
Maybe not the most idiomatic way to use it, but it could be an option for those who are not happy with the defaults.
from awesome-wm-widgets.
Cool! So I'll do the same changes for the other widgets. Thank you!!!
from awesome-wm-widgets.
Totally agree with you, was thinking about it, cannot decided which option is better. I came up with two approaches:
- using a table from a config file, as you suggested. I use it in weather and translate widgets - there is a
secrets.lua
file which has an API keys and some other configs. This works great but the file is still in the repo. Maybe as part of "installation" process user should copy this config file one level up, under./.config/awesome/
folder to make it not trackable by git. - put all these configs inside a theme file.
First option seems to be much better, as widgets' configs are not part of a theme.
If you already have something, feel free to create a PR. Otherwise I'll do it, as it has to be done for all widgets, and I have all of them set up on my machine.
from awesome-wm-widgets.
You mean when they are added to the wibox, something like:
s.mywibox:setup {
...
battery_widget({
cmd = 'acpi -i',
icon = '/path/to/icon',
warning_text=`Battery`
})
That could work, but I'm afraid it will pollute rc.lua
, which is already quite big. But maybe it's ok.
If you have something I would be happy to have a look.
from awesome-wm-widgets.
I created a branch for this issue.
Is this what you meant: 75c1957?
from awesome-wm-widgets.
From reading it looks way better. How would I test it?
Checking out your branch and restart awesome? Or are more things needed?
from awesome-wm-widgets.
That would be very helpful if you can test it.
You'll need just one more thing - add parentheses to the widget, because now it's a function. And it's only volumearc widget for now.
from awesome-wm-widgets.
Works. I highlighted the „main_color”. See the purple arc in the top bar.
from awesome-wm-widgets.
Looking forward to it!
Be aware, that this is a breaking change (e.g. a major update). You should highlight that, so people who upgrade know that they need to adjust their config.
from awesome-wm-widgets.
Related Issues (20)
- Consider using wttr.in for weather widget HOT 2
- Weather widget does not work, but there are 0 errors
- volume-widget: Mixer selection
- pactl-widget: No way to set limit on max volume HOT 2
- brightness_widget: incorrect brightnessctl command for getting current brightness level HOT 1
- Change color font on the spotify-widget Widget HOT 3
- cpu widget gets placed off screen sometimes HOT 1
- Install dir not found
- README.md installation info is missing HOT 2
- Are there any plans to support hibernate in logout popup? HOT 1
- scripts
- Batteryarc shows battery warning when battery is fully charged
- [Calendar] `focus_date_bg` and `focus_date_fg` broken after updating to last commits HOT 4
- apt widget not working because icon does not show in bar HOT 3
- calendar-widget: 'today' day is not set when opening the calendar
- Battery widget doesn't handle well two batteries
- OpenWeatherMap API 2.5 deprecation HOT 5
- Typo in logout-popup-widget
- Volume widget seems to malfunction after upgrading pavucontrol to v6.0
- volume-widget issue: volume-widget/volume.lua:243: bad argument #2 to 'format' (number expected, got nil)
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 awesome-wm-widgets.