summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2012-08-09Bugfix: Replace TVar with TMVar for the old valueJochen Keil
This solves a problem when there is only one pipe in place. With a default value of "" and only one pipe with a timeout the value is overwritten with "" after the timeout. To prevent this from happening a TMVar is used which will never be filled if there is only one pipe.
2012-08-09Implement trigger method for BufferedPipeReader PluginJochen Keil
Using the trigger method activity on a pipe can now cause the window to appear (reveal) and disappear again after a given timeout. The timeout for hiding the window is the same as for restoring the pipes content. The timeout value is given in tenth of seconds.
2012-08-09Cosmetic surgeryJochen Keil
Realign methods, remove unnecessary imports and remove clutter
2012-08-09Add functions for {reveal,hid,toggl}ing the windowJochen Keil
Toggling is based is based on the current window status. If unmapped then reveal else hide. Sync is necessary or delays might occur. The functions are called from the event loop when the according signal is received When mapping (revealing) the window again we need to set the struts property again. The easiest way to do this is to call repositionWin. However, repositionWin needs access to the Config structure which is available in eventLoop. Because decomposition wouldn't be easy and I don't want to pass Config down to showWindow (which would need to return the new Rectangle then) this is done here.
2012-08-09Create signal handler in main and pass it down to the start* functionsJochen Keil
This is necessary for setting up the signal callback (trigger) from the Plugin interface. As another benefit it is now possible to implement the lowerOnStart config option properly by simply sending a Hide signal in startLoop.
2012-08-09Extend the interface so that plugins can send signalsJochen Keil
Also: realign methods to look pretty again.
2012-08-09Add signals for {show,hid,toggl}ingJochen Keil
Also make them {Read,Show}able which can be useful for printf debugging and does not hurt otherwise.
2012-08-09Move signal handler and data types to own moduleJochen Keil
This is necessary to make SignalType available for other modules without import loops. This also decoupels the modules and their functionality a bit more so this is generally a cleaner solution.
2012-08-09Modularize Window handling functionsJochen Keil
These functions are about creation, positioning and property setting of the xmobar window. An own module does them justice and eases the task of adding functions for revealing/hiding and toggling the window.
2012-08-08BufferedPipeReader: A plugin for temporary data displayJochen Keil
This plugin allows to display data from multiple pipes. New data will always overwrite the currently displayed data. However, if a timeout is specified, the previous content is restored. Configuration works like this: BufferedPipeReader <Alias> [ ( Timeout, "/path/to/fifo/pipe" ), (..), .. ] If Timeout is set to 0 then the content is persistent, i.e. it will be reset to any previous value, it will itself become the previous value. If Timeout is set to a negative value the earth will stop spinning, so don't do it.
2012-07-28Remove 2nd default value from description of -L.Kent R. Spillner
2012-07-28Correct reference to normal color option.Kent R. Spillner
The description for -L should refer to -n (normal color), not -m (minimum width).
2012-07-28Fixes for DiskU, which was exploding on recent LinuxJose Antonio Ortega Ruiz
We're using now the recommended statvfs interface, instead of the obsolete statfs64. Moreover, we compute correctly the used space.
2012-07-24Bit of news and version bumpJose Antonio Ortega Ruiz
2012-07-21Merge remote-tracking branch 'math/dev/mpd-idle' into mpdJose Antonio Ortega Ruiz
Conflicts: xmobar.cabal
2012-07-19Nit in StatFSJose Antonio Ortega Ruiz
2012-07-19Merge remote-tracking branch 'trofi/master'Jose Antonio Ortega Ruiz
2012-07-17xmobar.cabal: port to libmpd-0.8.Sergei Trofimovich
Now all values are returned as 'Value' wrapped entries. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-07-17xmobar.cabal: allow stm-2.4 and mtl-2.1Sergei Trofimovich
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-06-09Add the AutoMPD monitorBen Boeckel
2012-06-09Add a blocking call for MPD based on eventsBen Boeckel
2012-06-09Add runM variant which takes a blocking callBen Boeckel
This allows monitors to define update times other than time-based.
2012-06-04News/Readme updates (including making them github-friendlier)0.15Jose Antonio Ortega Ruiz
2012-06-04News/Readme updates (including making them github-friendlier)Jose Antonio Ortega Ruiz
2012-06-04Added --with_threaded configuration flagJose Antonio Ortega Ruiz
Fixes #36
2012-06-04Mostly failed attempt to robustify disk usage monitorJose Antonio Ortega Ruiz
Since a kernel upgrade about two months ago, DiskU just blows up my xmobar apparently at random.
2012-06-04More specific in libmpd versioningJose Antonio Ortega Ruiz
2012-05-20WhitespaceJose Antonio Ortega Ruiz
2012-05-05NEWS updateJose Antonio Ortega Ruiz
2012-05-05LintingJose Antonio Ortega Ruiz
2012-05-05Kbd: compilation warnings and whitespaceJose Antonio Ortega Ruiz
2012-05-05Redundant import Foreign removedJose Antonio Ortega Ruiz
2012-05-05Duplicate instance definition (github issue #45)Jose Antonio Ortega Ruiz
2012-05-05LintingJose Antonio Ortega Ruiz
2012-05-05Possible solution for coretemp files reading (github issue #38)Jose Antonio Ortega Ruiz
Apparently, temp1_label does not follow the same naming pattern as the rest of label files.
2012-04-15Net: distinguishing between faulty and not active interfacesJose Antonio Ortega Ruiz
2012-04-14Removed the N/A text, when interface is not found.Peter Kasza
2012-04-14net: hide output when interface is down.Peter Kasza
2012-04-14Removed 'modifyTVar' to be compatible with STM-2.3.Peter Kasza
2012-04-11NEWS updatesJose Antonio Ortega Ruiz
2012-04-11Requiring X11 1.6Jose Antonio Ortega Ruiz
2012-04-11Merge branch 'dev/use-x11-xrandr-support' of ↵Jose Antonio Ortega Ruiz
https://github.com/mathstuf/xmobar into mathstuf-dev/use-x11-xrandr-support
2012-04-11Merge pull request #41 from mathstuf/dev/add-incremental-config-optionjao
dev/add-incremental-config-option
2012-03-19Disk usage monitor tweakJose Antonio Ortega Ruiz
Computing used space from total and available (rather than free) space.
2012-03-19Quirk in StatFS (CLong -> CULong)Jose Antonio Ortega Ruiz
As per Joey Hess advice in http://code.google.com/p/xmobar/issues/detail?id=28#c15
2012-03-12Add NamedXPropertyLog documentationBen Boeckel
2012-03-12Update --help output in READMEBen Boeckel
2012-03-11Add parenthesesBen Boeckel
2012-03-11Allow XMonadLog to have a separate name as wellBen Boeckel
2012-03-11Allow incremental commands to be givenBen Boeckel
Using the -C option, *additional* commands can be given to Xmobar. This allows a common configuration to be used and then differentiated in just the -C calls.