Commit Graph

649 Commits

Author SHA1 Message Date
Adam Lee bfbc1bdd51 volume: get the normalized volume like alsamixer and DE's indicator
Or the percentage value will be different from alsamixer or desktop
environment's indicator, which confuses users.

Quote from amixer's manpage, "Use the mapped volume for evaluating the
percentage representation like alsamixer, to be more natural for human
ear."

ref:
http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsamixer/volume_mapping.c

Signed-off-by: Adam Lee <adam8157@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-27 17:21:35 +01:00
Adrian C. (anrxc) 3ef0f11d8e Next release, tag 2.1.2 2013-12-22 13:23:37 +01:00
Normal Ra 946271c41d bat: expose information on battery wear and tear
Modern batteries should expose information about their design capacity
which we can compare to current capacity and deduce how much 'wear'
the battery got and expose that as a negative value percentage.

Feature sent in August took a while to convince the maintainer many
modern batteries provide this information.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-22 13:14:46 +01:00
Adrian C. (anrxc) 76269896fc README: write a list of major contributors to the project
Thank you all, and thanks very much to those who contributed only once
and are omitted from the documentation.
2013-12-15 19:13:35 +01:00
Adrian C. (anrxc) c51e13c35d init: stop allocating reg table functions with properties
This partly reverts commit f1844decef because a user reported seeing
nil passed as the object to the reg.update() function.
2013-12-15 18:34:55 +01:00
Adrian C. (anrxc) 52cbb64144 Revert "init: emit timeout instead of forced update"
This reverts commit 932bd8dfc because with shared timers feature from
commit 211d4509 shared timer emitting timeout can update all shared
objects.
2013-12-15 18:27:12 +01:00
Jonathan McCrohan 7961ca1454 weather: add support for dew point
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-15 17:47:49 +01:00
Martin Ueding dc556e5415 bat: Use a real minus sign for the charging status
Previously, a simple hyphen (“-”) was used to show that the battery is
discharging. The minus sign is a distinct char, and also distinct from
the en-dash (“–”) and the em-dash (“—”).

With this commit, I put in a unicode “MINUS SIGN” (0x2212) which I
created with a Digraph in Vim `^k-2`.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-15 17:30:37 +01:00
Adrian C. (anrxc) f36997bab4 README: explain wifi abbreviations linp and sign 2013-12-02 19:06:41 +01:00
Adrian C. (anrxc) 71ea0f3dbf README: enable caching in vicious.widgets.cpu example 2013-11-26 18:10:41 +01:00
Jörg Thalheim b0e631f8d6 Merge branch 'master' of http://git.sysphere.org/vicious
Conflicts:
	contrib/README
2013-11-25 09:40:39 +01:00
Dodo 211d4509c1 init: share timers when possible
We need time to give this a proper test with various usage scenarios;
multiple screens (and thus widget object instances), widgets
suspending and resuming and so on. Most benefits should come from
running on battery power (and if not suspending all widgets but
Battery it self on battery power), with less wake-ups.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-11-23 20:36:50 +01:00
Adrian C. (anrxc) 75cd1039cf Revert "mpd: workaround command termination bug in mpd server v0.18"
This reverts commit a6a73f47, because the issue was solved in mpd
release 0.18.2. I imported the workaround for historical reasons and
in case someone gets stuck with version 0.18 on his preferred OS
distribution.
2013-11-09 23:52:43 +01:00
joe di castro a6a73f47d6 mpd: workaround command termination bug in mpd server v0.18
See Debian bug report #728982 for more information.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-11-08 17:57:53 +01:00
Uli Schlachter c795642c2f README: update awesome usage examples for v3.5
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-11-02 18:34:55 +01:00
Adrian C. (anrxc) 563cb6f5e8 pkg: revert to pacman as default Arch method, checkupdates optional
Checkupdates is a good tool avoiding any need for period pacman -Sy
jobs from root crontab, however it works by maintaining its own
database in /tmp by default (and _that_ is a tmpfs by default) so on
every initialization it would stall awesome until it makes the first
sync. Better approach would be to keep its db inside $HOME for
persistence, and then to initiate the first (and longest) sync
manually before converting your package widgets to "Arch C".

All this is the reason I can't recommend it as the default right
now...
2013-11-02 18:14:07 +01:00
Andrea Scarpino 01b2302659 pkg: use checkupdates on Arch Linux.
It prints a list of pending updates without touching the system sync databases.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-11-02 18:12:52 +01:00
Normal Ra 2641bf8004 contrib: add Open Weather and ATi graphics widget types
These were contributed by one of the users, and remain untested by me.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-11-02 18:07:11 +01:00
Juergen Descher 0fd4fc5c2a mboxc: Fixed typo in setmetatable after ported to lua 5.2
Signed-off-by: Juergen Descher <jhdl@gmx.net>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-07-21 21:33:55 +02:00
Adrian C. (anrxc) 052d19e6bb README: explain vicious is a generic WM widget library
Vicious can be used stand-alone, or to feed widgets in window managers
beside awesome. So why not provide it to a few Ion, or WMII, or i3 or
<foobar> users. Lua is the best thing since sliced bread.
2013-06-01 00:09:51 +02:00
Jörg Thalheim c1dd257bc7 Merge branch 'master' of http://git.sysphere.org/vicious 2013-05-28 21:26:01 +02:00
Adrian C. (anrxc) bb891d66e4 Next release, tag 2.1.1 2013-05-27 20:19:57 +02:00
Adrian C. (anrxc) fac688ec4b wifi: add support for /usr/bin binary path
Years ago iwconfig started its life in /sbin. Then some distributions
moved it to /usr/bin. Then in 2012 some projects started pushing for
deprecation of /usr/sbin and merging everything into /usr/bin.

We now search paths including /usr/bin for the iwconfig binary. This
is because sbin paths are not usually in non privileged user PATH, so
we help io.popen locate the binary on the file-system.

We do this search in the following way:
  - default to basename only, 'iwconfig' for the iwconfig variable
  - search paths one by one once and redeclare variable iwconfig with
    full path if binary is found in any
  - avoid searching paths on next execution if iwconfig variable
    already contains a path
2013-05-27 17:51:58 +02:00
Adrian C. (anrxc) f7fdd909ee README: usage examples are for awesome version 3.4 2013-01-22 23:55:45 +01:00
Jörg Thalheim 0156fd36f9 Merge branch 'master' of http://git.sysphere.org/vicious
Conflicts:
	contrib/README
	widgets/uptime.lua
2012-09-04 10:10:11 +02:00
Andrzej Bieniek d63343efda contrib: add buildbot monitoring widget
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-09-02 12:37:18 +02:00
Adrian C. (anrxc) 8f2f1559c1 Next release, tag 2.1.0 2012-08-25 22:18:12 +02:00
Adrian C. (anrxc) da37c0917a mdir: add support for maildir whitespaces
This feature was sent by pofman@free.fr.
2012-08-19 00:48:24 +02:00
Adrian C. (anrxc) eba6eb0573 README: prefer vicious in global space
We want to expose suspend, activate and force functions to external
shell scripts not just the Lua prompt.
2012-08-02 02:15:53 +02:00
Adrian C. (anrxc) c28bac5d71 uptime: metatable bugfix after lua52 port fixed by Jorg Thalheim 2012-06-25 22:35:10 +02:00
Jörg Thalheim 01893953a6 Merge branch 'master' of http://git.sysphere.org/vicious 2012-06-25 20:53:19 +02:00
Adrian C. (anrxc) 3b161ffa28 contrib: document how to enable contributed widgets 2012-06-25 01:22:53 +02:00
Adrian C. (anrxc) e1c7c4772a os: change os.getenv init to allow standalone usage of os widget
Test case:
lua> foo = require("vicious.widgets.os")
lua> print(foo()[1])
     /usr/share/lua/5.1/vicious/widgets/os.lua:66: attempt to call
     field 'getenv' (a nil value)
2012-06-25 00:39:23 +02:00
Adrian C. (anrxc) 1a7b43068c contrib: initialization bugfix after lua52 port
The _NAME field was missing in the contrib table. Thanks to Jorg
Thalheim for reporting this.
2012-06-25 00:15:51 +02:00
Jörg Thalheim c7a1bfbefa port own contrib widgets to lua52 2012-06-19 22:02:48 +02:00
Jörg Thalheim f5c95cb76f Readme.md fix email links 2012-06-19 21:57:40 +02:00
Jörg Thalheim fd9814112a Merge branch 'master' of http://git.sysphere.org/vicious
Conflicts:
	init.lua
	widgets/dio.lua
2012-06-19 21:54:47 +02:00
Adrian C. (anrxc) 4caf95bfd0 README: update initialization instructions
With the Lua 5.2 port we change the way vicious is loaded as a module,
so that it remains backwards compatible with Lua 5.1 users. Also added
the author of the Lua 5.2 port to the contributors list.
2012-06-18 02:09:36 +02:00
Adrian C. (anrxc) 80d523ad93 bat: metatable bugfix after lua52 port 2012-06-18 02:01:29 +02:00
Adrian C. (anrxc) e929bea270 widgets: cleanup behind the last commit 363c03e 2012-06-18 01:31:42 +02:00
Arvydas Sidorenko 363c03e79c Fixed io.lines() bug
In Lua 5.2 io.lines() has to be used to iterate until EOF, otherwise
the fd will not be closed and eventually tons of naughty messages
will start to pop up saying that no more fd can be opened.

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-06-18 01:28:01 +02:00
Arvydas Sidorenko 8e35a983bf Ported vicious.contrib to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-06-18 01:27:53 +02:00
Arvydas Sidorenko 41cc2c0e27 Ported vicious.widgets module to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-06-18 01:26:31 +02:00
Arvydas Sidorenko b6b5290093 Ported vicious module to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-06-18 01:26:24 +02:00
jinleileiking e5630c1c1a add wpa widget 2012-05-30 17:16:13 +02:00
Jörg Thalheim 8e2c35474e Merge branch 'master' of http://git.sysphere.org/vicious 2012-05-20 22:25:59 +02:00
Adrian C. (anrxc) 0741531efd cpufreq: skip redudant freq variable check 2012-05-20 04:19:51 +02:00
Adrian C. (anrxc) 97e54d60f8 cpufreq: rework new exception handlers
Now that we are so nice to provide default frequency values check if
frequency exists before calculating voltage, not to screw up *those*
default values.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-05-19 17:11:31 +02:00
jinleileiking 30db4bea7b cpufreq: handle not existing frequency/governer
In some cases not all cpu informations will be provided.
(ex. in virtual machines)
Therefore default to "N/A".

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-05-19 17:11:22 +02:00
Jörg Thalheim e0a437d497 README.md: update thermal documentation 2012-05-16 18:03:09 +02:00