Commit Graph

298 Commits

Author SHA1 Message Date
Adrian C. (anrxc) 2c6b96976f weather: calculate degree Celsius from Fahrenheit 2010-03-06 03:20:43 +01:00
Adrian C. (anrxc) ad14818d4e helpers: import capitalize
This helper will capitalize the first letter of every word in a given
string. It'll be useful for some widget string which look out of place
otherwise, like "rain, snow" (<- where did this come from?). But it
can also be useful for people that like to use this format, camel case
or simillar.
2010-03-06 03:11:54 +01:00
Adrian C. (anrxc) 0ab8311b02 wifi: properly handle iwconfig PATH differences
Most distributions keep it in /sbin, some in /usr/sbin, and somewhere
it is, in other places it is not, in the user's $PATH. Now a simple
discovery is done to handle this.
2010-03-05 00:24:43 +01:00
Adrian C. (anrxc) 4fa87fadff wifi: properly handle non-existant interface
The "No such device" message was printed to stderr, find had no result
and all the useless matching was done on completely empty output.
2010-03-05 00:10:25 +01:00
Adrian C. (anrxc) 9eef646d33 git: ignore file removed 2010-03-03 22:40:30 +01:00
Adrian C. (anrxc) 4664beeda1 mdir: fix module description 2010-03-02 23:19:44 +01:00
Adrian C. (anrxc) 57004c0d48 Next release, tag 1.0.24 2010-02-20 04:34:45 +01:00
Adrian C. (anrxc) b96cb98352 bat: added a note about Apple PMU and ACPI/procfs 2010-02-20 04:33:27 +01:00
Adrian C. (anrxc) 23d09f0c5d README: added the Security section 2010-02-20 04:03:20 +01:00
Adrian C. (anrxc) e29ea6288a helpers: uformat helper replaces formatting done by widgets 2010-02-20 03:24:42 +01:00
Adrian C. (anrxc) f4cd746188 pkg: solve interactive pacman prompt patch from tdy 2010-02-20 02:12:02 +01:00
Adrian C. (anrxc) 5e1d1e0d47 volume: suggest appending card ID or other options
Widget type takes the mixer control as an argument, i.e. "PCM" but can
take optional amixer options, i.e. "PCM -c 1".
2010-02-18 21:42:09 +01:00
Adrian C. (anrxc) 24f23fa072 gmail: reworked feed handling and changed username format
Nothing hard coded in the worker now. Feeds are together with user
data, easily swaped. Feeds are not widget args because user needs to
modify the file for login data anyway. No progress toward safer
storage, Kwallet looks promising but dbus handling is hell - what of
non KDE users? Every other script, including much praised checkgmail
has plain text login. Nobody cares?
2010-02-12 00:33:07 +01:00
Adrian C. (anrxc) 6c34e8532e thermal: added support for procfs and coretemp
Widget type now takes the thermal zone as an argument, or a table with
1st field as thermal zone and 2nd field as data source. Available data
sources are: "proc" (procfs ACPI), "sys" (sysfs like before) and
"core" (sysfs coretemp). When only the thermal zone is provided widget
defaults to "sys".
2010-02-10 02:49:26 +01:00
Adrian C. (anrxc) 355c838555 Next release, tag 1.0.23 2010-02-04 22:16:34 +01:00
Adrian C. (anrxc) 0f3123eb8b README: added textbox fixed width example 2010-02-04 21:01:15 +01:00
Adrian C. (anrxc) 3095ffbcd5 pkg: added apt and yum to pkg managers table
This widget type now takes the distribution name as an argument; Arch,
Arch S, Debian and Fedora examples are now in the package manager
table. Feedback from yum users is needed.
2010-02-04 20:45:11 +01:00
Adrian C. (anrxc) 91925e601d pkg: pacman moved to generic packages module 2010-02-04 18:36:27 +01:00
Adrian C. (anrxc) 71566e0484 dio: further improved support for multiple devices 2010-01-29 16:48:01 +01:00
Adrian C. (anrxc) 8fe4cf436a net: sanitize time computation to avoid division by zero 2010-01-06 03:10:18 +01:00
Adrian C. (anrxc) d2a00d7057 Next release, tag 1.0.22 2010-01-02 22:51:34 +01:00
Adrian C. (anrxc) 15dd6ea287 vicious: update copyright 2010-01-02 21:21:54 +01:00
Adrian C. (anrxc) 9e372251c8 pacman: remove 3.2 example, add ignores+deps example 2010-01-01 17:29:24 +01:00
Adrian C. (anrxc) cedf1711bf wifi: return numbers without notations 2009-12-27 20:32:25 +01:00
Martin Striz fba4db6d37 weather: fix parsing of negative temperatures
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2009-12-27 20:21:12 +01:00
Adrian C. (anrxc) 2100ea1d8c Next release, tag 1.0.21 2009-12-15 02:44:19 +01:00
Adrian C. (anrxc) 9b5efc714b cpu: simplified table initialization 2009-12-15 02:41:17 +01:00
Adrian C. (anrxc) 9150063670 dio: preliminary support for multiple devices
Makes arrays for every requested disk to keep stats separated. But the
whole thing with these widgets with arguments clashes with caching,
and problems are to be expected.
2009-12-15 02:38:20 +01:00
Adrian C. (anrxc) b4031d229d dio: return separated read and write statistics
This changes keys that are returned, previously only total I/O was
available in: {raw}, {kb} and {mb}. Keys returned now are (s=raw):
{total_s}, {total_kb}, {total_mb}, {read_s}, {read_kb}, {read_mb},
{write_s},{write_kb} and {write_mb}.
2009-12-15 00:25:58 +01:00
Adrian C. (anrxc) 2c900fa4ee README: minor changes in Format functions 2009-12-07 02:06:01 +01:00
Adrian C. (anrxc) c870691157 fs: switched to 1K blocks and new keys
Previous version could return 1 on one update and 900 on the next (1st
being GB, 2nd MB) a user appending "GB" to the value suddenly has a
900GB disk available. Returned keys are now: size_mb, size_gb,
used_mb, used_gb, avail_mb, avail_gb, and percentage is now: used_p.
2009-11-18 00:52:55 +01:00
Adrian C. (anrxc) 5cbd75996b net: move formatting out of the worker 2009-11-18 00:05:52 +01:00
Adrian C. (anrxc) 14d69f6478 net: minor coding style change 2009-11-15 02:00:14 +01:00
Adrian C. (anrxc) db82c2aaa2 Next release, tag 1.0.20 2009-11-14 20:37:53 +01:00
Adrian C. (anrxc) 3834caa904 hddtemp: fixed support for multiple devices 2009-11-12 01:44:32 +01:00
Michael Unterkalmsteiner 1790abb0ed hddtemp: adapt regex to match disks like /dev/sg0
The regular expression did not match the following output from
hddtemp: |/dev/sg0|ST9160823ASG|38|C|. Fixed by allowing digits in the
"disk" part of the expression.

Signed-off-by: Michael Unterkalmsteiner <miciu@gmx.de>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2009-11-12 01:41:57 +01:00
Adrian C. (anrxc) 249294551e fs: minor coding style change 2009-11-12 01:41:33 +01:00
Hiltjo Posthuma f5b47dca8b mdir: support for multiple directories
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2009-11-12 01:40:16 +01:00
Adrian C. (anrxc) 1d0cfd3aed Cleanup widgets that use pathtotable helper 2009-11-11 14:32:37 +01:00
Adrian C. (anrxc) 76942d17a4 helpers: simplify pathtotable, patch by filmor 2009-11-11 14:30:26 +01:00
Adrian C. (anrxc) 26c1f078d9 Next release, tag 1.0.19 2009-11-11 04:44:36 +01:00
Adrian C. (anrxc) 2e9b811770 README: document new truncate and scroll usage 2009-11-11 04:36:30 +01:00
Adrian C. (anrxc) d0aa48afb8 entropy: widget rewritten, poolsize no longer an argument 2009-11-11 03:56:43 +01:00
Adrian C. (anrxc) 493150c888 uptime: merged with load widget type
Total uptime and seconds are no longer returned. Returns are now:
days, hours, minutes, load avg 1, load avg 5 and load avg 15.
2009-11-11 03:55:03 +01:00
Adrian C. (anrxc) 7be560b70c bat: widget rewritten for sysfs
This also means that it replaces batsys, and we are left with only
one, universal, battery widget.
2009-11-11 03:50:25 +01:00
Adrian C. (anrxc) a99c1cf118 cpufreq: widget rewritten, governor symbols enabled 2009-11-11 03:15:56 +01:00
Adrian C. (anrxc) 5f9818f9d3 dio: widget type rewritten
I wrote this module with graphs in mind and returned values were
somewhat hostile towards textbox widgets. Now KB/MB values are
formatted to one decimal point. There is still work to be done.
2009-11-11 03:00:33 +01:00
Adrian C. (anrxc) 92be5fbae5 thermal: widget rewritten for sysfs
Default path is set to /sys/class/thermal but at least it's easier to
switch to /sys/class/hwmon (i.e. coretemp) now without much code
modification. Note; zone IDs are probably different than those in
/proc/acpi/thermal_zone
2009-11-11 02:57:30 +01:00
Adrian C. (anrxc) 46d52face8 helpers: import pathtotable
This helper exposes paths as Lua tables. It will help simplify a lot
of widgets. Thanks to Benedikt Sauer for the original idea.
2009-11-11 02:43:11 +01:00
Adrian C. (anrxc) eb661f6e17 batsys: add note about other charge/rate sources
As in capacity case maybe there are other rate sources. Exposed in
different files depending on the implementation?
2009-11-10 16:18:39 +01:00