summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins
AgeCommit message (Collapse)Author
2014-12-15MPD: add a new template variable 'flags'Duncan Burke
Displays playback flags in the style of ncmpcpp.
2014-11-12Introduce available memory variables in memory monitorSamuli Thomasson
Available memory is determined from meminfo's `MemAvailable:` on 3.14 and newer, and falls back to `free + buffer + cache` on older systems. Introduces new variables `<available{,ratio,bar,vbar,ipat}>`.
2014-09-28Using fromMaybejao
2014-09-28Upgrade to libmpd 0.9jao
2014-09-24Merge branch 'dynamic-strings' of https://github.com/projedi/xmobarjao
2014-09-24Rename dynamic string to icon patternAlexander Shabalin
2014-09-16Locks: Implement event-driven locks indicatorAnton Vorontsov
This commit does more fundamental rework of the "Locks" plug-in: now the plug-in is fully event-driven and thus extremely power-efficient, effectively zero CPU consumption while idling.
2014-09-16Locks: Rework to avoid unnecessary display reopeningAnton Vorontsov
The extremely useful "Locks" plugin eats quite a lot of CPU (>2% here on a old-ish laptop), unfortunately. The plug-in unnecessary reopens the display, which is quite expensive operation. It results into 16 syscalls: socket(PF_LOCAL) -> connect(sun_path=@"/tmp/.X11-unix/X0"}) -> getpeername() -> uname() -> access(".Xauthority") -> open(".Xauthority") -> fstat() -> mmap() -> read() -> close() -> munmap() -> getsockname() -> fcntl(F_SETFD) -> fcntl(F_SETFL) -> shutdown() -> close() This is almost half of all the syscalls that we ought to execute for the plug-in to work. Now, considering the useful work and that "Locks" runs every 200 milliseconds, it gives us >300 syscalls (and a lot more wake-ups) per second. This commit fixes the reopening issue, effectively halving the CPU consumption (down to ~1%). The patch also makes it easier to implement event-driven indicators that will reduce the idle CPU consumption to 0.
2014-09-14Implement DynamicString for Monitors supporting vbar.Alexander Shabalin
* Batt * Bright * Cpu * Disk * MPD * Mem * MultiCpu * Net * Volume * Wireless
2014-09-14Add DynamicString as an alternative to vbars.Alexander Shabalin
* DynamicString is an Int -> String which takes a value from 0..8 and produces a string with this value embedded. Usefull for replacing vbars with icons: an icon per one of 9 states. * API is similar to that of vbar. * Default parser of DynamicString produces a function of `i` to a string that replaces all occurences of "%%" with `show i`
2014-09-11Fix string to calm wind reportTony Morris
2014-09-11differentiate betwee 0 degrees and no wind speed using mu (μ)Tony Morris
2014-09-11Occasionally there is no wind and a METAR report gives simply, "Wind: 0"Tony Morris
2014-09-05Fix: not colorizings total size in DiskU (issue #189)jao
2014-09-01New wind report variables for Weather monitorTony Morris
* Wind cardinal direction (`windCardinal`) * Wind azimuth direction (`windAzimuth`) * Wind speed (MPH) (`windMph`) * Wind speed (knots) (`windKnots`)
2014-08-29woops. Remove commented lineTony Morris
2014-08-29Change <dewPoint> to be <dewPointC> and <dewPointF>Tony Morris
2014-08-29hlint improvementsTony Morris
2014-08-12Top: these days, processes consuming > 1Gb RAM are seen in the wildjao
2014-08-09hlint refactoringsReto Hablützel
2014-08-09typo: seperator --> separatorReto Hablützel
2014-08-09New Plugin MarqueePipeReaderReto Hablützel
Display a long text from a pipe with marquee. It wraps around with a given separator and the length may be specified as well as the delay in 10th seconds. See readme for an example.
2014-07-30Implement adaptive units for Net pluginAxel Angel
Adaptive units are computed only if suffix is enabled Otherwise we fall back to the old computation (KB)
2014-06-27Fix for CPU monitor on long-running systemsRobert J. Macomber
After running long enough, the numbers in /proc/stat get big enough that they will not fit in a Float without loss of precision, which leads to erratic results such as reporting "NaN%" CPU usage. This commit simply keeps the numbers integral until producing the final percentage result.
2014-06-09Allow user to define punctuation.Conner McDaniel
I'd like to be able to choose which punctuation to use. All my other xmobar plugins use a colon and a space (e.g. `B: 100%` for battery), but this one leaves the space out (e.g. `E:1`) which is mildly annoying. It would be nice to let the user choose if he/she would like to use something other than a colon or to add extra whitespace.
2014-05-30Unsafe versions of XPropertyLog and NamedXPropertyLogJose Antonio Ortega Ruiz
2014-05-29Adding UnsafeXMonadLog, similar to UnsafeStdinReaderEric Mrak
2014-05-29A simple CatInt monitorNathaniel Wesley Filardo
2014-05-04Accepting "unknown" as network device stateJose Antonio Ortega Ruiz
Cf. discussion of issue #98
2014-05-03CoreTemp: Add alternative path for linux 3.15Tomas Janousek
Since v3.15-rc1, coretemp temperatures are elsewhere, see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d72d19c26c417d514787ae85b197af34de286c0a http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bab2243ce1897865e31ea6d59b0478391f51812b
2014-05-03CoreCommon: Try several paths in checkedDataRetrievalTomas Janousek
2014-04-17fix build on old versions of ghc by qualifying import to avoid conflictMax DeLiso
2014-03-15MPD monitor has vbar for track progressEric Mrak
2014-03-15DiskU/DiskIO have vbar equivalentsEric Mrak
2014-03-15Net plugin has txvbar and rxvbarEric Mrak
2014-03-15adding showLogVBarEric Mrak
2014-03-15showVerticalBar now takes the same arguments as showPercentBarEric Mrak
2014-03-14Wireless module has qualityvbarEric Mrak
2014-03-14Battery now has leftvbarEric Mrak
2014-03-14Memory monitor has freevbar and usedvbarEric Mrak
2014-03-13Volume module has volumevbarEric Mrak
2014-03-13Cpu now has vbarEric Mrak
2014-03-13Brightness hbar is now vbarEric Mrak
2014-03-13MultiCpu now has vbarEric Mrak
2014-03-13adding showVerticalBar option for monitors to useEric Mrak
2014-03-09Merge remote-tracking branch 'rethab/master'Jose Antonio Ortega Ruiz
2014-03-09Handle inexistent devicesReto Hablützel
If a device is unplugged without prior unmounting, it still appears in the /etc/mtab file, which is used for this monitor. The problem is that this monitor canonicalized every path regardless of whether it actually existed or not. I basically added the 'only canonicalize if file exists'.
2014-03-07src/Plugins/Monitors/Volume.hs: port to alsa-mixer-0.2Sergei Trofimovich
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2014-02-25have disabled plugins still accept inputAdam Vogt
This change lets xmobar compiled without -fwith_inotify accept a config that mentions the Mail plugin with a warning (and display an Updating...).
2014-02-15Fix runaway memory leak when expanding invalid tags, and remove errornand
Don't recursively parse on the case of an error. Also, in the case of an error, instead of replacing by an error message, replace by the tag itself to prevent mangling strings that legitimately include < and > characters, for example song titles when using the MPD plugin. I'm not sure how to handle this better. Honestly, I would like to remove the recursive parsing altogether but this works for now. Consider filing an issue for a proper resolution of this. I don't want rogue tags expanding themselves in my song titles.