For simpler widgets that only fetch data from a command,
it might be easier to use awesome's standard library,
thus is it noted in the README just in case an user isn't
aware of that feature.
Also fix a typo.
With stacked graphs each stack entry (via `stack_colors`) has its own
data point, and `data` is expected to be a table.
The `get_stack` getter was just added to awesome via [1] in [2] to
handle this case.
1: https://github.com/awesomeWM/awesome/pull/284
2: 3be423fcb3
Since most Awesome widgets provide set_widget method,
texts are likely to be parsed to Pango which consume
these entities and may fail on invalid ones.
The current method of calculating the amount of free memory is
incorrect. The linux kernel provides a method of getting this value,
MemAvailable, which we can simply use directly
* used memory (values 1 and 2) are: everything but free+cache
* laundry is counted as freeable, but not free.
** "notfreeable memory" (values 11 and 12) are: active+inactive+wired
* removes unused variables
* enhances one-character-variables for better readabilitiy
* fixes calculation errors
** used memory: active, inactive, and wired
** available memory: cached, laundry, and free
see https://wiki.freebsd.org/Memory for more information
* Add widget for cmus (follow mpd conventions)
* Add widget for cmus (follow mpd conventions)
* Add default socket address when XDG_RUNTIME_DIR is not set
* cmus: use on/off instead of true/false
- default value was a boolean which is not valid in our format function
and would lead to a crash
- on/off seems more human readable
* cmus: shell-escape user supplied variables
* Add default socket address when XDG_RUNTIME_DIR is not set
* Added option for a table to configure volume widget, allowing device specification also.
* Updated README.md with new configuration options for volume widget
* volume: allow passing a list of commandline arguments
This avoids using a unicode character that looks just like a hyphen but
isn't, leading to subtle bugs when developers write code that interacts
with the bat_linux widget.