aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2009-11-10batsys: import battery widget that uses sysfsAdrian C. (anrxc)4
Initial widget code was sent by Benedikt Sauer. After some cleanup it is ready to go into master. It uses data exposed trough /sys and it is used in the exact same way as the bat widget (and /proc). This widget will replace batat and acpitool, it will be moved to contrib and retired.
2009-11-04De-obfuscate e-mail addressAdrian C. (anrxc)27
2009-11-03Minor changes in mboxc and orgAdrian C. (anrxc)2
2009-11-03gmail: add scrolling support and truncate controlAdrian C. (anrxc)1
Same as the mpd widget. No argument, string is returned in full. Number enables truncate. Table enables scrolling.
2009-11-03mbox: add scrolling support and truncate controlAdrian C. (anrxc)1
Widget argument can now be a string (full path to the mbox) or a table. In case of a table 1st field is full path to the mbox and 2nd is maximum text lenght after which it will be truncated. If there is a third field scrolling will be used - if so, 3rd field should be the widget name.
2009-11-03mpd: add scrolling support and truncate controlAdrian C. (anrxc)1
Widget takes an optional argument that controls truncate and scrolling. In case of a number truncate is used, it represents the maximum lenght of widget text. In case of a table scrolling is used, 1st field is maximum lenght, and 2nd is widget name. An example: {24, "mpdwidget"}
2009-11-03helpers: import scroll from Remy ClouardAdrian C. (anrxc)1
First scroll helper, that provides an alternative to truncate. Text shifts every time the widget is updated, there is no internal timer.
2009-10-26Ensure returned numbers are of type numberAdrian C. (anrxc)12
Thanks to Felix for bringing this to my attention. Obviously there was already a safety net for feeding progressbars and graphs... and while this makes for a good coding practice it's not a big deal. We have widgets of type textbox for one, and a lot of string concatenation happens. Strings are formatted, markup is applied...
2009-10-22README: updated net descriptionAdrian C. (anrxc)2
2009-10-22net: unit formatting delegated to a functionAdrian C. (anrxc)1
This simplifies the code, in addition string.format is now used to ensure all values have one decimal point at all time. We'll see how recent changes and this one will affect people that use network graphs.
2009-10-22README: more information in Power sectionAdrian C. (anrxc)1
2009-10-20Adapt to awful.widget.graph max_value of 1Adrian C. (anrxc)2
Vicious will now divide values by 100 to match the default graph max_value of 1. Graphs support changing this value, but progressbars don't. We shouldn't use 100 for one and 1 for the other.
2009-10-16batat: better returns when handling insufficient dataAdrian C. (anrxc)1
If we return "N/A" like we usually do then format string "$1$2" would look like "N/AN/A". If "/" is returned a progressbar could be broken. Now returns are: symbol for state "unknown", 0 for battery charge, N/A for remaining time.
2009-10-16Next release, tag 1.0.18v1.0.18Adrian C. (anrxc)1
2009-10-15bat: better returns when handling insufficient dataAdrian C. (anrxc)1
If we return "N/A" like we usually do then format string "$1$2" would look like "N/AN/A". If "/" is returned a progressbar could be broken. Now returns are: symbol for state "unknown", 0 for battery charge, N/A for remaining time.
2009-10-15bat: better fix for ACPI, from bioe007Adrian C. (anrxc)1
Previous commit had redudant string > number conversions, and only covered one scenario - when battery is charged. bioe007 suggested to use math.min. Now lets explain why this is needed. Some (lousy) batteries report "remaining capacity" higher than "last full capacity" when AC is connected. That leads to battery charges like "160%".
2009-10-15bat: quick fix for broken BAT/ACPI implementationsAdrian C. (anrxc)1
2009-10-14README: removed obsolete widget namesAdrian C. (anrxc)1
2009-10-12README: added padding exampleAdrian C. (anrxc)1
2009-10-11mem: tonumber is redudantAdrian C. (anrxc)1
2009-10-11uptime: fixed problem discovered by jabbasAdrian C. (anrxc)1
2009-10-10README: document tables returned by widget typesAdrian C. (anrxc)2
2009-10-08README: caching documentation improvedAdrian C. (anrxc)1
2009-10-07README: fixed disk i/o warg documentationAdrian C. (anrxc)1
2009-10-07cpu: simplified CPU identificationAdrian C. (anrxc)1
2009-10-05Next release, tag 1.0.17v1.0.17Adrian C. (anrxc)1
2009-10-05mem: widget type rewrittenAdrian C. (anrxc)1
2009-10-05mbox: read a 30kb chunk by defaultAdrian C. (anrxc)1
2009-10-05Lots of coding style changesAdrian C. (anrxc)16
2009-10-04bat: added a handler for incompetent usersAdrian C. (anrxc)2
A lot of people expect widgets like this one to auto-magically work, and somehow don't understand that *they* need to make sure there is a source of information. Is ACPI module loaded? Is battery info exposed in the same place that widget expects by default? You need to answer those questions before loading the widget and sending me "bug" reports.
2009-10-04cpufreq: use string library for find/matchAdrian C. (anrxc)1
2009-10-04Removed some useless else statementsAdrian C. (anrxc)3
2009-10-04Reworked counters in mboxc, mdir, orgAdrian C. (anrxc)3
2009-10-04mbox: don't hide when there is no mailAdrian C. (anrxc)1
2009-10-04Reworked some variables in entropy, load, mpd, net, initAdrian C. (anrxc)5
2009-10-04date: function simplifiedAdrian C. (anrxc)1
2009-10-02cpuinf: prepend 'cpu' to CPU ID in table keysAdrian C. (anrxc)1
Keys like cpu0 are more suitable, because they match cpufreq widget arguments. Instead of old format strings, like: ${0 mhz} now use: ${cpu0 mhz}
2009-10-02README: included 'Other uses' sectionAdrian C. (anrxc)1
Vicious modules can be resued for other objects, like awful tooltips or naughty notifications. We call a module directly and manipulate the result until we have some nice output to display. For example, a wifi widget could be a progressbar with the signal level, but on mouse enter a tooltip is created with ssid/mode/channel information.
2009-10-02volume: added mute supportAdrian C. (anrxc)2
If a channel is muted we return 0. Something like "Muted" would be nice, but lets not break progressbars. If it doesn't concern you, then return what ever you want...
2009-10-02thermal: added some commentsAdrian C. (anrxc)1
We still stick to ACPI thermal zones because they are most commonly exposed (with proper ACPI modules loaded). But if you can find another source of temperature exposed trough /sys use it. Current code should match a lot of sources, but in some cases you will want to modify it a bit, add a dot, or limit to two numbers (except when the value is 100+, you don't want to miss the fact your CPU is melting).
2009-10-02bat: coding style changesAdrian C. (anrxc)1
2009-10-02cpufreq: widget type rewrittenAdrian C. (anrxc)1
It also won't break anymore when voltage support is missing since it happens so often. But there are no handlers for the frequency or governors - if you don't have those what the hell are you doing with this widget anyway?
2009-10-02README: fixed some typosAdrian C. (anrxc)1
2009-10-01README: updated gmail informationAdrian C. (anrxc)1
2009-10-01gmail: count all unread messagesAdrian C. (anrxc)1
Widget now uses the Gmail unread tag to get a list of all unread messages, not only the Inbox. The auth argument was removed, and login information should now be placed directly in the widget (and file made read-only by user) until a safer storage is introduced.
2009-10-01mboxc: support for multiple mbox filesAdrian C. (anrxc)2
Widget takes a table with full paths to mbox files as an argument.
2009-09-29README: fixes from git-diff --checkAdrian C. (anrxc)1
2009-09-29Rewrote all headersAdrian C. (anrxc)27
2009-09-25Next release, tag 1.0.16v1.0.16Adrian C. (anrxc)1
2009-09-25README: clarified caching usageAdrian C. (anrxc)1