-
Notifications
You must be signed in to change notification settings - Fork 449
Conversation
Cleans up mod file; adds flag for battery. Adds documentation; fixes missing color sets for battery.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I've been hoping that people would add more widgets. Just have the one suggestion.
main.go
Outdated
@@ -212,6 +236,10 @@ func initWidgets() { | |||
wg.Done() | |||
}() | |||
if !minimal { | |||
go func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should change this so that the battery is only created if the battery flag is set. The widget count variable also has to be changed to account for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:sheepishly: yeah. I got it working, then saw that and made changes I thought would do what you're suggesting and couldn't get it working again. Lazily, I reverted back to what was working and pushed the pull request.
I'll work on this a bit more.
Disable all battery code if battery not selected in options. Refactors widgetCount to localize use.
|
Looks good, thanks for this! I changed 2 things:
|
Ok, thanks; I like your choice of options. |
Adds a widget for battery level. The widget updates on the level of minutes, as batteries drain and charge slowly.
The battery widget is disabled by default; it can be enabled with
-b
.