Commit Graph

688 Commits

Author SHA1 Message Date
Alexander Koch 6b4910e0d1 helpers: Fix typo in widget-not-found error message 2019-01-15 20:55:45 +07:00
Jörg Thalheim d11703d589 move format_progress to mpd module
The function is not used by any other module and is only really useful
for formatting durations as exposed by mpd.
2018-12-15 00:10:38 +07:00
Jörg Thalheim a902a23b5c README.md: documentation nitpick for mpd 2018-12-15 00:10:38 +07:00
Nguyễn Gia Phong e84be352c5 Make mpd widget type expose more info
By default, format time values in [hh:]mm:ss. Also use printf instead of
echo, which is shell-specific.
2018-12-15 00:10:38 +07:00
Nguyễn Gia Phong 5d2eda1225 Reformat README.md 2018-12-01 02:40:07 +07:00
Nguyễn Gia Phong 065bd1d009 Remove manual XML entities escape in widgets 2018-10-22 21:42:31 +07:00
Nguyễn Gia Phong f1dd53edd2 Escape XML entities by default
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.
2018-10-22 21:42:31 +07:00
Jörg Thalheim 873662209c
Merge pull request #52 from BeniaminK/data_caching_fixes
Data caching fixes
2018-10-10 16:42:51 +01:00
Jörg Thalheim 979cc46d80
Merge pull request #59 from jgkamat/jay/memavailable
Use MemAvailable for mem.free
2018-09-28 07:33:23 +01:00
Jay Kamat 0db5f3f222
Use MemAvailable for mem.free
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
2018-09-27 18:44:31 -07:00
mutlusun a081bf777b
Merge pull request #58 from mutlusun/master
Calculating swap space using swapinfo on FreeBSD
2018-06-27 23:01:50 +02:00
mutlusun af979a04f7 read swapinfo in megabytes 2018-06-20 22:53:16 +02:00
mutlusun 2e832bc82e remove print statements (for testing purposes) 2018-06-06 22:46:03 +02:00
mutlusun 6e185bc89e calculating swap space using swapinfo (more reliable) 2018-06-06 21:55:36 +02:00
mutlusun 18d9d3aa35 Merge remote-tracking branch 'upstream/master' 2018-06-06 21:24:23 +02:00
mutlusun d9287de8e6
Merge pull request #56 from psycorama/master
FreeBSD memory widgets bugfixes and improvements
2018-03-19 20:44:09 +01:00
Andreas Geisenhainer 0c2313dcdd mem: adds information about used memory without freeable parts
* 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
2018-03-16 18:16:55 +01:00
Andreas Geisenhainer df5fa77428 memory freebsd: re-organizes memory assignment for used and unused memory
* 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
2018-03-12 21:24:04 +01:00
mutlusun 0280ac2243 freebsd memory clean ups and correct calculation 2018-03-12 21:22:48 +01:00
mutlusun 57bab3542b adds critical charging state to FreeBSDs battery widget 2018-03-12 21:22:48 +01:00
mutlusun ebc3a08c9c freebsd memory clean ups and correct calculation 2018-03-10 12:56:59 +01:00
Beniamin Kalinowski 13a28d5485 Caching worker data instead of formatted values.
For each of the wtype formatted data was being cached instead of the data returned from the worker. This fix caches the returned values.
2018-01-20 14:16:31 +09:00
Beniamin Kalinowski 1f6359e306 More concise default timer settings. 2018-01-20 14:05:21 +09:00
Beniamin Kalinowski eb0c07e3fc Setting up initial values for a cache. 2018-01-20 12:33:53 +09:00
Joerg Thalheim a81435e1be fs: fix shell quoting of optional argument
fixes #49
2017-11-30 08:50:23 +00:00
Joerg Thalheim a13ddc0892 Next release, tag v2.3.1 2017-11-28 21:32:19 +00:00
Joerg Thalheim 050dbd30d3 Allow widget to be a function again
This was broke by async support.
2017-11-28 18:19:23 +00:00
Joerg Thalheim eb64e0dd3a Next release, tag v2.3.0 2017-11-25 09:28:44 +00:00
Joerg Thalheim 6f8c0a9969 btc: fix markdown markup 2017-11-25 09:22:36 +00:00
Jörg Thalheim 6bf2468bec
Merge pull request #47 from 0x5b/devel
Bitcoin price widget
2017-11-25 09:16:37 +00:00
Joerg Thalheim dcdfe3345c btc: also usuable with cjson 2017-11-25 09:14:36 +00:00
Joerg Thalheim 52e9b72217 btc: remove synchronous variant and dead code 2017-11-24 18:13:37 +03:00
0x5b 5eec03a3c3 Bitcoin price widget.
Async receiving bitcoin price.
Simple text widget. Provides a price in any currency by code:
(https://en.wikipedia.org/wiki/ISO_4217)
2017-11-24 18:13:13 +03:00
Joerg Thalheim 2877baa7f4 Do not hide loading errors when widgets failed to load
Previously the use of pcall masked errors.
2017-11-24 12:16:32 +00:00
Joerg Thalheim 94f91c57ab cmus: use correct shell escape function 2017-11-22 21:05:24 +00:00
Juan Carlos Menonita 5f6acea35c Add widget for cmus (follow mpd conventions) (#46)
* 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
2017-11-22 21:01:30 +00:00
Beniamin Kalinowski f3d69142c6 Readme: fix repl usage & deadlink 2017-11-16 16:13:29 +00:00
Joerg Thalheim 1cfa040fbd re-add format parameter.
This broke custom formats in the date widget.
2017-10-23 15:24:17 +01:00
Brandon Hartshorn 750532a1d8 volume: allow to pass multiple arguments to amixer (#44)
* 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
2017-10-08 15:33:32 +01:00
getzze 983253a27f Allow asynchronous call (for Awesome4+) (#32) 2017-07-13 21:42:26 +01:00
Jörg Thalheim fe10ee8201 README.md: update examples awesome v4 api 2017-07-09 19:39:30 +01:00
Jörg Thalheim aabb3d3ae5 Merge pull request #37 from dudelson/master
Change bat widget discharging state char from U+2212 to U+002D
2017-05-28 09:02:20 +01:00
David Udelson ad327267bd Change bat widget discharging state char from U+2212 to U+002D
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.
2017-05-27 12:19:42 -04:00
Jörg Thalheim 5b9b4961d8
helpers:shellquote: stringify argument
fixes #34
2017-04-17 16:50:23 +02:00
Michael Kressibucher 941e50294a Readme.md wibox for battery widget example (#33)
* Use wibox for battery widget example

* mention color gradient/margin
2017-04-01 21:44:56 +02:00
Jörg Thalheim 4c082ace6b
add myself as new maintainer 2017-03-30 17:48:52 +02:00
Jörg Thalheim c56a9b1ccc
Next release, tag v2.2.0 2017-03-30 17:39:02 +02:00
Jörg Thalheim f2bddbb009 Merge pull request #30 from mutlusun/get_custom_data
get custom data from a widget
2017-02-27 10:34:01 +01:00
Jörg Thalheim d266d95b00 Merge pull request #31 from jmccrohan/contrib_pulse_round
contrib: make pulse round rather than floor volume
2017-02-27 10:24:55 +01:00
mutlusun 171b69216e update README 2017-02-27 10:13:29 +01:00