summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2007-07-19Moved battery line parsing into the Maybe monad.Krzysztof Kosciuszkiewicz
darcs-hash:20070719101505-ba08c-99b2005230d97d19f73c7dfdb7ba328bc4046063.gz
2007-07-19Safer parsing without parsec in battery monitorKrzysztof Kosciuszkiewicz
darcs-hash:20070719015530-ba08c-065e9572b186c12db8236c28fa249793eba51e32.gz
2007-07-16Fix parsing and processing data in Batt monitor.Krzysztof Kosciuszkiewicz
Sometimes the monitor would crash due to bad index given to (!!). Now it should be safe, as parsing is done differently. darcs-hash:20070716003448-ba08c-4ae93a39919c2aee628825e5a9f7da8970dbcb8c.gz
2007-07-20X code cleanupAndrea Rossato
darcs-hash:20070720113917-d6583-cabe8d1a6d1d52da01b421099e4d74c1a0fb539e.gz
2007-07-19oops, I forgot to add Monitors.hs (it's not possible to build xmobar without ↵Andrea Rossato
it!) darcs-hash:20070719054059-d6583-edd071165011c9cef6a3a8c0781e5f981a9f5903.gz
2007-07-12Get rid of floats in scientific notation.Krzysztof Kosciuszkiewicz
Use 'showDigits n' instead of 'show . takeDigits n'. As this example shows explicit precision specifications would be appreciated ;) darcs-hash:20070712013626-ba08c-868a9d53ab1b8bc120d7c1a9634d3d8c7cb599d7.gz
2007-07-12Allow reverse "high" and "low" thresholdsKrzysztof Kosciuszkiewicz
darcs-hash:20070712010911-ba08c-adf596c43d2f8ad049449dfef96d7e00758baae8.gz
2007-07-18Monitors are now a Plugin that can be removed from Config.hsAndrea Rossato
darcs-hash:20070718151211-d6583-7e0e49c22d07feda72d03370fd592c196dfcc9c1.gz
2007-07-18Use asynchronous exceptions to obviate the need for forkOS and threadedSpencer Janssen
darcs-hash:20070717225131-a5988-1f5e0cb3c8373b5eb6f7e87496110409380ded23.gz
2007-07-17execCommands is a mapMSpencer Janssen
darcs-hash:20070717211138-a5988-1ce4ccefb8b6468fc63ca8b98564881536ca60c2.gz
2007-07-17threads are now started with forkOSAndrea Rossato
This is required by the fact that calling nextEvent will block all other running threads. So we need forkOS, which requires the -threaded ghc flag darcs-hash:20070717171307-d6583-b102fecf51ee4c275f448644c0d2b0fe15fa0062.gz
2007-07-17cabal: corrected x11-extras version numberAndrea Rossato
darcs-hash:20070717161200-d6583-9bd78e57c05d2bb5b248cba6bd4e7f6f754b8db3.gz
2007-07-17XEvents code cleanupAndrea Rossato
darcs-hash:20070717160756-d6583-501e3bd632b7d3d37a8695231333fc69054e0398.gz
2007-07-17XExposeEvent handling: that requires X11-extrasAndrea Rossato
XExposeEvent is now properly (sort of) handled, with an hackish approch: before nextEvent, that will block Xmobar since an Expose event is captured, we create a background thread that will send an Expose event after the configured refresh interval. So, either a real of a fake Expose event will reach our window within the configured interval. Quite cool, after all. darcs-hash:20070717131411-d6583-0d3438bdcb1d346ade3932ffb979cb998654e4d1.gz
2007-07-17changed runXmobar to runXbarAndrea Rossato
darcs-hash:20070717091438-d6583-cd772f86e2296bf7de4780425819d3d04d502a6e.gz
2007-07-14README and Cabal editsAndrea Rossato
Added some more credits, corrected typos, updated darcs version to 0.7, changed name to Xmonbar and removed references to XMonad. Xmobar is now just a minimalistic text based status bar for any kind of WM (the XMonad community adopted the more advanced and stable dzen, after all ;-) darcs-hash:20070714103913-d6583-b143dedf4ed5cbcb59b4f630ffce9afe82e32b86.gz
2007-07-13haddock tuningAndrea Rossato
darcs-hash:20070713123707-d6583-b236b40087a92c45511afb3e4350813917515c02.gz
2007-07-13cabal: added Plugins to the list of modulesAndrea Rossato
darcs-hash:20070713111302-d6583-65e5fb0e83aae6511ac990f8f9b7886efe480225.gz
2007-07-13Plugins.hs: some haddock correctionsAndrea Rossato
darcs-hash:20070713111229-d6583-9f935f51431cd4f748be95111aed88c8b6dbaa0b.gz
2007-07-13README: updated to the latest changesAndrea Rossato
darcs-hash:20070713111148-d6583-8cb7a42db6c72e9cac160565fa4a61f2ce1d680c.gz
2007-07-13Config.hs: more code cleanupAndrea Rossato
darcs-hash:20070713101329-d6583-66db78de40afea1eb529919c44560ccf52a0acd1.gz
2007-07-13Runnable: cleanup and some commentsAndrea Rossato
darcs-hash:20070713093647-d6583-b26a258b1a30a787bb333ebf3782ee74c10d585c.gz
2007-07-13added Plugins.hs for exporting the needed plugin APIAndrea Rossato
darcs-hash:20070713093613-d6583-ff3b5c080757cfd123f7f02e00612ef9bea0ab44.gz
2007-07-13Plugins now import Plugins.hsAndrea Rossato
darcs-hash:20070713093516-d6583-f05f2e5b4edd87a75063b881e622b5a3784ab4c9.gz
2007-07-13Commands.hs: more code cleanupAndrea Rossato
darcs-hash:20070713093402-d6583-eff0382e0c9bb69bd7d45be1b4691bd50f55f776.gz
2007-07-12removed the Show instance requirement for pluginsAndrea Rossato
darcs-hash:20070712215615-d6583-463ad3d9d1282fd1f129f34f405c66e0795962fd.gz
2007-07-12cabal updatesAndrea Rossato
darcs-hash:20070712180516-d6583-ccc0f2e99bedcb1b1b783b02048ca31dd8793053.gz
2007-07-12added a plugin example with the needed runtime configuration fileAndrea Rossato
darcs-hash:20070712180434-d6583-99f6807f0deb0141014593f27356a69e69305d0e.gz
2007-07-12credits to Claus Reinke and removed debugging codeAndrea Rossato
darcs-hash:20070712180405-d6583-f02e36e3d0495316ae2672c04397e915bfff7c33.gz
2007-07-12use of existential types for plugin supportAndrea Rossato
This patch, which *changes the configuration format*, adds easy plugin support by using an existential type for storing the list of commands to be executed. Adding a plugin is just a matter of writing the appropriate instance of the Exec class, after importing Commands.hs. I must thank Claus Reinke for the help in understanding the mysteries of reading existential types. The Read instance of Runnable must be credited to him. See here: http://www.haskell.org/pipermail/haskell-cafe/2007-July/028227.html darcs-hash:20070712175034-d6583-f10174bb3b0a9b4f6e08d05052c18f30e539b319.gz
2007-07-11Commands.hs: monitors take only one action nowAndrea Rossato
darcs-hash:20070711183131-d6583-785f3e62b8ef00537fa85ee94682d305cdfd008d.gz
2007-07-11Weather.hs: code clean upAndrea Rossato
darcs-hash:20070711182221-d6583-fe5690eacc540e209c3ccea2b17ad08a2db9f162.gz
2007-07-11config-sample: eyes candyAndrea Rossato
darcs-hash:20070711180630-d6583-6c829c6601704147bb4d5f4f4e7a6263786cb796.gz
2007-07-11more unused stuff removedAndrea Rossato
darcs-hash:20070711180437-d6583-d940a9da72ff525de591cac841813658b45514d0.gz
2007-07-11updated README to latest changesAndrea Rossato
darcs-hash:20070711165426-d6583-51c69a751f871ea3ea4aa94afd458024b5a79f83.gz
2007-07-11Net.hs: removed parserc. Now using list function to parseAndrea Rossato
Profiling shows that Net.hs and getNumbers specifically takes a huge ammount of resources. Hope to reduce them with this patch. darcs-hash:20070711165247-d6583-f56705720e012d5dc3a37d8e86a05145b819feb2.gz
2007-07-11removed from monitors code not used anymoreAndrea Rossato
darcs-hash:20070711165035-d6583-e556a6910bf8deb91677a5d590eb45f157a400d7.gz
2007-07-11Net.hs: removed old codeAndrea Rossato
darcs-hash:20070711164819-d6583-d9b68b002ba6033b34bc34735ab3a066b06fe568.gz
2007-07-11some colors please!Andrea Rossato
Krzysztof says that we cannot set default colors without embedding a Turing-complete language in the templates, so that we can take account of different unit of measurement. May I set some colors in the configuration example?? darcs-hash:20070711150221-d6583-73c159082843e2120c060aa50be65b58bb7fc9f4.gz
2007-07-11gettin' rid of Krzysztof's object-oriented attitude...;-)Andrea Rossato
darcs-hash:20070711150201-d6583-1d4d0c9677671416d80e83de9055bdc48c5dd4ed.gz
2007-07-10Formatting usedratio in Monitors.SwapKrzysztof Kosciuszkiewicz
darcs-hash:20070710141550-ba08c-383d0d84c0d8b31fae5b35e6b16070ba4d2e41f3.gz
2007-07-10Fix takeDigits so it doesn't use read.Krzysztof Kosciuszkiewicz
darcs-hash:20070710141406-ba08c-d44de14cd4aba85d042f5b7cd3be22469d994353.gz
2007-07-10Typos in Monitors.CommonKrzysztof Kosciuszkiewicz
darcs-hash:20070710141329-ba08c-9b99317a0fb64266c00531d9006d308ad258cfcd.gz
2007-07-10Clean up default options for monitors.Krzysztof Kosciuszkiewicz
* Moved default configuration to Monitors.Common * Colors are optional and are off by default darcs-hash:20070710140845-ba08c-86afb9d30e4b71ad48539510feabde650b1b6045.gz
2007-07-05Read default configuration from ~/.xmobarrcKrzysztof Kosciuszkiewicz
I am not sure if handling of other exceptions is acceptable, the assumption is that failure to read ~/.xmobarrc because of other errors than parsing should not blow up the whole program. Otherwise explicit test for file existence would be required etc. darcs-hash:20070705160320-ba08c-fb91db4583071f14d94eb5f2a25c92c7f1bfb7e3.gz
2007-07-09new working version and named colors in config-sampleAndrea Rossato
darcs-hash:20070709002947-d6583-404dd890e2ad9f6ff0115dfe4e1450f4ba369446.gz
2007-07-09comments onlyAndrea Rossato
darcs-hash:20070709001203-d6583-885a1e12b59937b9e4c8543d13edb7281f91ea81.gz
2007-07-09fixes a bug in the copyArea functionAndrea Rossato
darcs-hash:20070708234304-d6583-c5185f2af7d580c900c753c3feff41becaed2b80.gz
2007-07-09added a short-hand for fromintegral (much used here)Andrea Rossato
darcs-hash:20070708232338-d6583-3341a03f0095304183638d4a7bdc038063952231.gz
2007-07-09This should fix the flickering problem on window's updatesAndrea Rossato
darcs-hash:20070708224854-d6583-0300fb2f09da07c975b49c7ed75080ad29f2492a.gz