summaryrefslogtreecommitdiffhomepage
path: root/src/Main.hs
AgeCommit message (Collapse)Author
2018-10-06Signal termination to plugin threads and wait for them upon program exitDaniel Schüssler
This is necessary to allow the plugin threads to run their cleanup actions.
2018-07-10New configuration parameter `textOffsets` (fixes #311)jao
2017-12-15Configurable WM_CLASS and WM_NAME (should address #323)jao
2017-05-27Version set to 0.24.50.24.5jao
2017-04-29hlint configurationjao
2015-12-31Added "-p" launch optionValentin Shirokov
`-p "string"` will override position settings set in configuration file. Useful for launching multiple xmobars from single configuration file, which is almost necessary when using non-monospace fonts.
2015-01-09Change the `fontList` to `additionalFonts`Markus Scherer
2015-01-08Support for multiple fontsMarkus Scherer
2014-12-30Default to opaquejao
2014-12-30Merge branch 'transparency' of https://github.com/ezyang/xmobarjao
Conflicts: src/Config.hs src/Main.hs src/Parsers.hs src/XUtil.hsc src/Xmobar.hs
2014-09-26CLI switch for iconRoot (-i)jao
2014-08-09hlint refactoringsReto Hablützel
2014-03-13Back to picking first screen by default (#158)0.20.1Jose Antonio Ortega Ruiz
2013-10-29Fixed #133: xmobar was not reading ~/.xmobarrcThiago Negri
2013-10-29Fix xdgconf logic in readDefaultConfigJames McCoy
readDefaultConfig should prefer $XDG_CONFIG_HOME/xmobarrc if it exists, however the code was always reading path. This fixes the logic to actually use xdgconf if it exists.
2013-07-07Transparency and tint support.Edward Z. Yang
New configuration option 'alpha' which adjusts alpha transparency (0 is transparent, 255 is opaque). Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2013-07-05Implement XDG logic locallyBen Boeckel
Avoids an extra dependency.
2013-07-04Support xmobarrc living in XDG_CONFIG_HOMEBen Boeckel
2013-04-27New -d (--dock) command line switchJose Antonio Ortega Ruiz
2013-04-25Whitespacee and deasciiartificationJose Antonio Ortega Ruiz
2013-02-03Implement icon cachingAlexander Polakov
2012-08-30Revert "Add '-d' for dockapp mode"Jose Antonio Ortega Ruiz
This reverts commit cae6f2bc049d4b7ed57a7a18a828bc4ea35df4aa, until we find a reason why it's causing high CPU consumption in the X server.
2012-08-29Add '-d' for dockapp modeArnout
This makes xmobar work in windowmanagers that support _NET_WM_WINDOW_TYPE_DOCK but not _NET_WM_STRUT, such as Notion
2012-08-09Cosmetic surgeryJochen Keil
Realign methods, remove unnecessary imports and remove clutter
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-03-11Add parenthesesBen 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.
2011-09-19Refactored eventLoopMartin Perner
2011-09-10moved signal handler setup into eventloopMartin Perner
2011-09-10removed threading problem with XlibMartin Perner
The output just stopped at some point until a new XEvent was received As XLockDisplay is in theory a good idea, with XNextEvent blocking its not usable. As it turned out, a window can be shared between display connections. Now the eventloop has its own display connection (which also removes the need for the lock introduced before). Additionally the screeninfo doesn't need to be fetched into a TVar in the eventerloop anymore. Also this was needed for the signalHandlers to work correctly again.
2011-09-09complete reword of the eventLoopMartin Perner
*) replaced window destroy and create with a reposition *) replaced the exception for redraw with an MVar *) put nextEvent into an own thread, communication over the MVar *) signal handlers for repositioning and screen swap Notes: *) getScreenInfo is a parameter of eventLoop because it blocks when there is an nextEvent waiting for an new event
2011-08-31Working versionMartin Perner
The last commit removed the exposure event which turned out to be a big problem. Although the bug still exists that not all xrandr events are received when normal events are enabled. To work around this problem a second display is created on which only the xrandr events are enabled. On an exposure event the eventqueue for this display is processed. The results are very good, in the worst case an exposure event must be triggered by the user on xmobar to update its position.
2011-02-16Removed unnecessary use of IORef from Main.hsNorbert Zeh
2011-01-22Bug fix: don't get confused by align separators in input (issue 14)Jose Antonio Ortega Ruiz
This solves the common case of a template separator character (such as {) popping up in xmobar's input (e.g., inside a window title) and confusing the parser.
2011-01-06Mail now takes its alias as a second argumentJose Antonio Ortega Ruiz
This way we also avoid issue 30, although we're not solving the real issue (which is that the commands parser cannot correctly parse commands with a single argument unless they appear at the end of the list).
2010-12-21Haskell sources moved to src/ to unclutter toplevelJose Antonio Ortega Ruiz