Spencer Janssen
c3c39aae12
Hierarchify
2007-11-01 18:08:46 +00:00
Spencer Janssen
8a5d2490bb
Add readsLayout, remove the existential from XConfig
2007-11-01 08:21:55 +00:00
Spencer Janssen
22aacf9bf6
Delete Main.hs-boot!
2007-11-01 08:00:45 +00:00
Spencer Janssen
b0b43050f4
Remove manageHook from Main.hs-boot
2007-11-01 07:53:08 +00:00
Spencer Janssen
8a8c538c23
Eliminate defaultTerminal
2007-11-01 07:31:47 +00:00
Spencer Janssen
e50927ffc0
Store user configuration in XConf
2007-11-01 07:23:08 +00:00
Spencer Janssen
3789f37f25
This is a massive update, here's what has changed:
...
* Read is no longer a superclass of Layout
* All of the core layouts have moved to the new Layouts.hs module
* Select has been replaced by the new statically typed Choose combinator,
which is heavily based on David Roundy's NewSelect proposal for
XMonadContrib. Consequently:
- Rather than a list of choosable layouts, we use the ||| combinator to
combine several layouts into a single switchable layout
- We've lost the capability to JumpToLayout and PrevLayout. Both can be
added with some effort
2007-11-01 06:43:18 +00:00
David Roundy
48ccbc7fb2
cleaner version of main/config inversion.
2007-10-29 18:48:23 +00:00
David Roundy
74131eb15f
remove StackOrNot type synonymn.
2007-10-17 20:14:06 +00:00
Spencer Janssen
bd6a52e587
Clean up trailing whitespace
2007-10-15 02:23:22 +00:00
Don Stewart
6fecf7c425
document, and use better names, for serialising/existential-dispatch framework
2007-10-13 23:21:50 +00:00
Don Stewart
5c9850bf6d
some more layout clean ups
2007-10-13 22:23:17 +00:00
Spencer Janssen
d610407cf8
Respect ExitExceptions, fixes a regression where exitWith had no effect
2007-10-12 15:28:01 +00:00
Spencer Janssen
f7d6f6b6f7
Make runX return XState
2007-10-12 15:15:24 +00:00
David Roundy
6dba9ddeb3
fix potential hole in userCode.
...
This makes userCode catch errors even when the
user does something like (return undefined).
2007-10-12 15:02:53 +00:00
Spencer Janssen
1f625a6c0d
Add userCode function for the popular m catchX
return ()
2007-10-12 01:42:17 +00:00
David Roundy
07be5998c0
use the right catch in catchX.
...
Don't ask *me* why the prelude includes a version of
catch that is worse than useless (because it lulls you
into a feeling of safety).
2007-10-12 01:14:50 +00:00
David Roundy
75874040cc
add comments in XMonad.
...
This change also removes readLayout as a top level function,
since it's only used once.
2007-10-11 15:29:42 +00:00
Shachaf Ben-Kiki
41063f2e57
Add LANGUAGE pragmas
...
It seems that GHC 6.6 just enables -fglasgow-exts when it sees any LANGUAGE
pragma, so not all of them were added; this patch adds the rest of them, which
is necessary for xmonad to compile in GHC >=6.7.
2007-10-08 02:11:07 +00:00
Don Stewart
c49b8f567f
a bunch of things in XMonad.hs are missing top level comments!
2007-10-06 15:36:08 +00:00
Don Stewart
5cd9094f58
style on layout class code
2007-10-06 10:46:06 +00:00
David Roundy
6294e6adf5
add pureMessage.
2007-10-05 14:05:53 +00:00
Spencer Janssen
c237441003
Make WindowSet serialization robust to layout changes
2007-10-05 00:00:31 +00:00
Spencer Janssen
172e046e84
Remove commented code
2007-10-04 20:02:00 +00:00
David Roundy
e70fb29efc
some renaming of classes and data types.
2007-09-29 19:13:20 +00:00
Spencer Janssen
d0d81db6de
Use LANGUAGE pragmas over -fglasgow-exts
2007-09-28 18:14:38 +00:00
Spencer Janssen
60dda50181
SomeLayout: use the description of the wrapped layout
2007-09-28 05:23:44 +00:00
Spencer Janssen
9c78ba538b
Simplify readLayout, comment on surprising behavior
2007-09-25 21:17:08 +00:00
David Roundy
68c72b34e1
fix bug in reading of SomeLayouts.
2007-09-25 20:28:01 +00:00
David Roundy
f420ae881d
rename modifyLayout to handleMessage.
2007-09-25 18:29:06 +00:00
David Roundy
e062265b38
make it easier to define pure layouts.
2007-09-25 17:05:03 +00:00
David Roundy
9c35abaa46
Make a String description part of each Layout.
2007-09-24 18:57:53 +00:00
David Roundy
4a7ec374d0
create default modifyLayout that ignores messages.
2007-09-23 11:52:19 +00:00
David Roundy
1c603ebc4b
add layout selection back into core xmonad using LayoutSelection.
...
This is just a reimplementation of LayoutChoice.
2007-09-21 21:21:59 +00:00
David Roundy
3af0ccf73c
make layouts preserved over restart
2007-09-21 20:43:16 +00:00
David Roundy
fe397edf4a
move Layout into StackSet.
...
WARNING! This changes the format of StackSet, and
will definitely mess up your xmonad state, requiring
at minimum a restart!
2007-09-20 22:12:48 +00:00
David Roundy
70282f23dc
add (unused) Layout to StackSet.
2007-09-20 21:28:43 +00:00
Spencer Janssen
eb1e38405d
Pointfree Mirror and SomeLayout instances
2007-09-20 21:10:42 +00:00
David Roundy
197c834331
define readLayout to create a SomeLayout based on a set of possible layout types.
2007-09-20 18:15:06 +00:00
David Roundy
5f12ca0faa
add Read instance to Layout.
2007-09-20 17:45:29 +00:00
David Roundy
b4929576e7
add Show instance to Layout
2007-09-20 16:12:08 +00:00
David Roundy
0e5f8b03e8
eliminate ugly OldLayout.
2007-09-20 15:52:37 +00:00
David Roundy
3f03dcb5c1
move Layout stuff into class (hokey first cut).
2007-09-14 21:59:59 +00:00
Don Stewart
5e943d512c
use hPrint instead of hPutStrLn
2007-09-27 21:39:01 +00:00
Ivan Tarasov
f668b6238a
export getAtom from XMonad.
2007-08-25 17:41:56 +00:00
David Roundy
41e3b073c8
switch WorkspaceId to String.
2007-08-20 11:36:58 +00:00
Spencer Janssen
6dcd66f16e
Comment only
2007-08-15 22:40:31 +00:00
David Roundy
fae3cbebb1
move event loop out of mouseDrag.
2007-08-07 20:16:16 +00:00
Spencer Janssen
ab830ec227
Move screen details into StackSet
2007-06-29 21:39:17 +00:00
David Roundy
61d7524bcd
support self-modifying layouts.
2007-06-23 20:14:47 +00:00