Commit Graph

24 Commits

Author SHA1 Message Date
Adrian C. (anrxc) abacd771bd fs: include available space in percent, requested by Jon
Format string and key example: "${/home avail_p}"
2010-03-10 01:57:25 +01:00
Adrian C. (anrxc) 94e7ed1beb fs: rewritten, less prone to error 2010-03-09 02:51:36 +01:00
Adrian C. (anrxc) f34bfaf138 fs: fix the bug reported by Alex Tergeland
The regexp did not match for him. Now there is also a handler so the
widget does not break if it happens again.
2010-03-07 17:31:49 +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) 15dd6ea287 vicious: update copyright 2010-01-02 21:21:54 +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) 249294551e fs: minor coding style change 2009-11-12 01:41:33 +01:00
Adrian C. (anrxc) 896df4dd98 De-obfuscate e-mail address 2009-11-04 23:39:38 +01:00
Adrian C. (anrxc) 0d73f6d8ae Ensure returned numbers are of type number
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-26 20:32:48 +01:00
Adrian C. (anrxc) 4602ca2fa5 Lots of coding style changes 2009-10-05 00:10:47 +02:00
Adrian C. (anrxc) b0f737ea56 Rewrote all headers 2009-09-29 22:33:19 +02:00
Adrian C. (anrxc) c9fba4e0d2 Widgets derived from wicked include a notice 2009-09-20 23:16:10 +02:00
Adrian C. (anrxc) 549c8bc5ba Remote file systems in fs widget are optional
By default only local file systems are included now. In case a mounted
NFS share dissapears from the network the widget would be left hanging
there and has the potential to block everything else (including
awesome it self). File system widget now takes an optional argument
which, if true, will include remote file systems.
2009-09-14 20:55:53 +02:00
Adrian C. (anrxc) 2a5126f4f0 General cleanup 2009-09-14 17:25:23 +02:00
Adrian C. (anrxc) 13527a38e8 Match all punctuation chars in fs partitions and mount points.
With some recent commits we are matching a good number of custom
characters. Instead of waiting for another one that breaks it, just
match all punctuation characters. The regexp is pretty big and some
simplification is also welcomed.
2009-08-27 12:46:08 +02:00
Adrian C. (anrxc) 5e3b953175 Link to wicked and add Joerg as contributor. 2009-08-21 17:09:06 +02:00
Adrian C. (anrxc) 4330375cb7 Next release, tag 1.0.10. 2009-08-17 21:38:03 +02:00
Joerg Jaspert 7ad474bcbc Use of LANG=C and improved matching in fs.lua.
- Prepend LANG=C to the df call, so it always gets the information in a way
  it understands. Other languages do have other namings for "Filesystem" and
  some use , instead of . for the number seperator.

- Adapt the line.match line so it actually matches values. (Have the - last
  in the first match and teach it that mount targets can also have dots and colons
  in it)
2009-08-16 13:10:39 +02:00
Adrian C. (anrxc) d4595bb00f All worker functions are local. 2009-08-07 17:41:10 +02:00
Adrian C. (anrxc) 8b38567d75 Added missing poolsize info to the README + minor change in fs.lua 2009-08-06 22:03:21 +02:00
Adrian C. (anrxc) 798036e445 Changed fs widget type description. 2009-08-06 21:59:12 +02:00
Adrian C. (anrxc) 4c74de711f Padding removed, along with deprecated helper functions.
If you have any use for it then continue using an older vicious tag,
or keep maintaining it in your local vicious copy.
2009-08-05 21:50:41 +02:00
Adrian C. (anrxc) 418151f57e Make all widgets return their worker functions when called. 2009-08-01 23:11:41 +02:00
Adrian C. (anrxc) 98e26ee043 Import of vicious source tree.
Vicious is a modular widget library for 'awesome' window manager,
derived from the 'Wicked' widget library.

Summary of changes:
  * Original wicked code modularized
  * Widgets ported from Wicked:
    - CPU, MEM, FS, NET, Date, Uptime, MPD
      * CPU widget rewritten, uses pattern matching
      * MEM widget rewritten, uses pattern matching
        - Swap widget merged with MEM widget type
      * FS widget rewritten, uses pattern matching
        - Also fixed padding in the process
      * NET widget rewritten, uses pattern matching
      * MPD widget rewritten, a bit more versatile
      * Removed deprecated helper functions
  * Widgets written for Vicious:
    - Thermal, Battery, Mbox, OrgMode, Volume, Entropy,
      Disk I/O, System Load, Wireless, Pacman, Maildir
2009-07-29 17:59:32 +02:00