aboutsummaryrefslogtreecommitdiff
path: root/widgets
AgeCommit message (Collapse)AuthorFiles
2014-11-19gmail: fix error when gmail.com is unreachableBenoît Zugmeyer1
ex: no internet connection Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2014-11-15shell escape variables before passing them to the shellJörg Thalheim6
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2014-11-15gmail: fix subject when gmail feed is in one lineBenoît Zugmeyer1
For some time now, gmail feeds are in a single line. The goal of this patch is to handle both cases (single and multiline). It will find the text between title tags after the first entry tag. Since the first feed title is skiped with this regex, title regexes aren't needed anymore. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2014-04-21fs: add FreeBSD mount point detection to regexpAndrew Merenbach1
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-27bat: fix broken battery remaining time (was always N/A)Lyderic Lefever1
Bug was introduced in commit dc556e5415 and the new discharging symbol. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-27volume: get the normalized volume like alsamixer and DE's indicatorAdam Lee1
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-22bat: expose information on battery wear and tearNormal Ra1
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-15weather: add support for dew pointJonathan McCrohan1
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-15bat: Use a real minus sign for the charging statusMartin Ueding1
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-11-09Revert "mpd: workaround command termination bug in mpd server v0.18"Adrian C. (anrxc)1
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-08mpd: workaround command termination bug in mpd server v0.18joe di castro1
See Debian bug report #728982 for more information. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-11-02pkg: revert to pacman as default Arch method, checkupdates optionalAdrian C. (anrxc)1
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-02pkg: use checkupdates on Arch Linux.Andrea Scarpino1
It prints a list of pending updates without touching the system sync databases. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-07-21mboxc: Fixed typo in setmetatable after ported to lua 5.2Juergen Descher1
Signed-off-by: Juergen Descher <jhdl@gmx.net> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-05-27wifi: add support for /usr/bin binary pathAdrian C. (anrxc)1
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
2012-08-19mdir: add support for maildir whitespacesAdrian C. (anrxc)1
This feature was sent by pofman@free.fr.
2012-06-25uptime: metatable bugfix after lua52 port fixed by Jorg ThalheimAdrian C. (anrxc)1
2012-06-25os: change os.getenv init to allow standalone usage of os widgetAdrian C. (anrxc)1
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-18bat: metatable bugfix after lua52 portAdrian C. (anrxc)1
2012-06-18widgets: cleanup behind the last commit 363c03eAdrian C. (anrxc)3
2012-06-18Fixed io.lines() bugArvydas Sidorenko2
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-18Ported vicious.widgets module to lua 5.2Arvydas Sidorenko25
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-05-20cpufreq: skip redudant freq variable checkAdrian C. (anrxc)1
2012-05-19cpufreq: rework new exception handlersAdrian C. (anrxc)1
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-19cpufreq: handle not existing frequency/governerjinleileiking1
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-09pkg: update 'Arch S' substitution linesAdrian C. (anrxc)1
It would appear pacman v4 now prints only one line before the package list.
2012-03-31thermal: change coretemp default, allow file as widget argumentAdrian C. (anrxc)1
Since Linux 3.0 most if not all people have temp1_input file missing, so default to temp2_input. But also allow an optional third argument to change to yet another file to avoid this kind of problem in the future.
2012-03-04division by zero, if battery is full chargedJörg Thalheim1
If the battery state change from charging to full, power_now is reseted to zero for a little time. This cause division by zero, which was visible as a very big negative number because of the behaviour of string.format. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-02-05hddtemp: fix curl hang in version 7.24.0Adrian C. (anrxc)1
2012-01-20cpufreq: differentiate between ondemand and conservativeSébastien Luttringer1
In cpufreq widget, governor char is the same for ondemand and conservative which makes it impossible to overload symbols to different values for these two governors in a format function. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2011-11-20bat: fix time calculation, bug introduced in 350e924Adrian C. (anrxc)1
2011-11-19thermal: remove unnecessary readJ. Thalheim1
2011-11-19bat: another workaround for broken ACPI implementationsAdrian C. (anrxc)1
2011-09-24[cpu] fix division by zeroJoerg T. (Mic92)1
In rare cases diff_total seems to become 0.
2011-09-03net: sanitize time computation to avoid division by zeroAdrian C. (anrxc)1
2011-08-18vicious: cleanup tabs and bad intendationAdrian C. (anrxc)1
2011-08-18[net] calculate time in a more clean wayJoerg T. (Mic92)1
2011-07-12bat: better fix for missing rate in 31d7b2fAdrian C. (anrxc)1
Thanks to Ikke for debugging this.
2011-06-30mem: provide mem.bcuse for GabrielAdrian C. (anrxc)1
2011-05-10vicious: load widget modules only when neededJoerg T. (Mic92)1
There's no more need to edit init files and manually disable widgets. Signed-off-by: Joerg T. (Mic92) <jthalheim@gmail.com> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2011-04-25mpd: allow named keys or positional argumentsPerry Hargrave1
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2011-03-29dio: import string.match()Adrian C. (anrxc)1
2011-03-29dio: provide stats for all devices, rewritten by JoergAdrian C. (anrxc)1
Old dio.lua was moved to contrib. New one is used like CPU widget is, request the device or parition in the format argument, {sda read_mb} as an example. New widget doesn't provide scheduler information, but I don't know anyone who used that. If you think this is wrong let me know.
2011-03-17cpu: another 10 percent optimization from JoergAdrian C. (anrxc)1
2011-03-15cpu: calculation and optimization fixes by JoergAdrian C. (anrxc)1
2011-03-09gmail: fixed misleading commentAdrian C. (anrxc)1
2011-02-21bat: fixed "no such device" for current and powerAdrian C. (anrxc)1
2011-02-15bat: added power_now supportAdrian C. (anrxc)1
Looks like current_now will eventually be deprecated. Thanks to Conrad Calmez for finding this bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532000
2010-10-29wifi: proper fix for SSID regexpAdrian C. (anrxc)1
2010-10-29gmail: inbox is now defaultAdrian C. (anrxc)1
With all the tags and other crap, we could be counting mail up to 3-5 times. If you hate this change let me know. Otherwise inbox is now default.