32 Commits

Author SHA1 Message Date
Spencer Janssen
6d147212f7 Factor out some of dzenPP's goodies 2007-10-29 01:55:56 +00:00
Spencer Janssen
69b05866b5 Don't reverse sjanssenPP 2007-10-28 22:48:43 +00:00
Don Stewart
9ef767dc77 add dynamicLogDzen, a dwm status bar, using dzen colour codes 2007-10-26 22:19:44 +00:00
l.mai
da02543042 -Wall police 2007-10-18 03:30:00 +00:00
Eric Mertens
61ed28a72b DynamicLog.hs: Add dzenColor 2007-10-18 17:45:23 +00:00
Spencer Janssen
107121680f Truncate title at 80 characters 2007-10-18 00:30:13 +00:00
Spencer Janssen
7b82a81080 shorten in sjanssenPP too 2007-10-18 00:28:21 +00:00
Spencer Janssen
f706345292 Truncate long window titles 2007-10-18 00:25:11 +00:00
Eric Mertens
fc393b5f2c DynamicLog.hs: Add ppWsSep field to PP to specify workspace separator.
This can be useful when you are using colors to distinguish between
workspaces and simply provides more functionality. The default behavior
remains the same.
2007-10-18 00:16:52 +00:00
Spencer Janssen
30e99281b2 Wrapping the empty string yields the empty string 2007-10-18 00:15:42 +00:00
Spencer Janssen
e4416696c1 DynamicLog: documentation only 2007-10-17 21:14:27 +00:00
Spencer Janssen
8340a26946 Allow the user to change the order of workspaces, layout, title 2007-10-17 21:13:03 +00:00
Spencer Janssen
840835f00a Don't wrap the layout description by default 2007-10-17 21:10:11 +00:00
Spencer Janssen
d5a014725d DynamicLog: not . null. Duh. 2007-10-17 21:09:12 +00:00
Spencer Janssen
005d65b57e A big dynamicLog refactor
We introduce the PP type to allow user customization of dynamicLog.
dynamicLogWithTitle has been eliminated because this is the default behavior
for dynamicLog now.
2007-10-17 21:04:31 +00:00
Spencer Janssen
9ef8512291 Don't toLower the layout description.
If we'd really like lower case layout descriptions, the 'description' method
in the LayoutClass instances should be changed instead.
2007-10-17 20:29:53 +00:00
Don Stewart
d699957320 clean up DynamicLog.hs 2007-10-13 19:51:29 +00:00
Christian Thiemann
2c600dbc7c Two new dynamic log functions that display the title of the currently focused window
I liked the window-title-in-statusbar feature of dwm very much and wanted to
have that in XMonad as well.  Somewhere on the net I found some code to put
into Config.hs (and sorry, that was last week and I already forgot where I got
it from) which I modified and put into the DynamicLog extension.  One can now
set the logHook in Config.hs either to dynamicLogWithTitle to get the usual
layout description and workspace list plus window title enclosed in angle
brackets, or dynamicLogWithTitleColored "white" (or "red" etc.) to have xmonad
print out some ^fg() markers for dzen to display the window title in the given
color.

Some windows (like terminals or browsers) change their window title from time
to time but xmonad does not recognize this.  So I started learning Haskell to
provide patches for X11-extras and xmonad so that PropertyNotify events are
captured and, if the event notifies about a WM_NAME property change, call the
logHook to update the status bar.

Hope you find this useful,
  Christian
2007-10-06 17:31:13 +00:00
Spencer Janssen
1e0a92acd6 DynamicLog: sort first by index in the workspaces list, then by tag name 2007-09-28 14:49:00 +00:00
Spencer Janssen
2323b1408c DynamicLog: print a description of the current layout 2007-09-28 05:16:06 +00:00
Michael Fellinger
44a2e41a15 Fixing some typos and grammar in documentation. 2007-09-11 02:31:58 +00:00
David Roundy
e0a509171e make Contrib use WorkspaceId = type String. 2007-08-20 11:38:13 +00:00
Alex Tarkovsky
d0adeca94a Docstring parser for generating xmonad build configs with default settings for extensions 2007-09-05 20:01:28 +00:00
Don Stewart
87c8bf1339 weird formatting fixed 2007-08-06 03:27:39 +00:00
Shachaf Ben-Kiki
013e4cfd62 Use Data.Ord.comparing in DynamicLog
This patch replaces (compare `on`) with Data.ord.comparing, so on doesn't have
to be defined.
2007-06-20 01:10:16 +00:00
Shachaf Ben-Kiki
4345709445 Factor out pprWindowSet (and Xinerama version) from dynamicLog.
This patch lets you pretty-print a WindowSet to a string, rather than always
printing it out to stdout directly.
2007-06-19 18:36:57 +00:00
Andrea Rossato
2d806f2c3a DynamicLog.hs: info and documentation 2007-06-14 14:38:39 +00:00
David Roundy
10fd36db47 changes to work with Stacks that can't be empty. 2007-06-12 15:12:09 +00:00
Don Stewart
a0f9a9dcb3 fmt 2007-06-11 05:34:50 +00:00
Jason Creighton
fe70ba49d8 added dynamicLogXinerama, a workspace logger that's nicer for Xinerama 2007-06-11 05:18:10 +00:00
Don Stewart
3d73ec842a tag visibles with <N> 2007-06-10 11:19:31 +00:00
Don Stewart
9ee0248221 add DynamicLog.hs 2007-06-10 06:27:57 +00:00