Commit Graph

1644 Commits

Author SHA1 Message Date
Don Stewart
12f4590bf5 move tests into subdir 2007-03-08 12:04:48 +00:00
Don Stewart
87312a91b2 Switch to using abstract StackSet data type. Most workspace logic moved into StackSet.hs 2007-03-08 11:43:08 +00:00
Don Stewart
54019f802f unpack on our own 2007-03-08 11:42:55 +00:00
Don Stewart
4677b20814 cleanup only 2007-03-08 02:19:01 +00:00
Spencer Janssen
d280e17ab7 Make the number of workspaces configurable. 2007-03-08 04:36:14 +00:00
Spencer Janssen
9a5523d53c Print a message for unhandled events 2007-03-08 01:32:49 +00:00
Spencer Janssen
160f07a47c Manage windows that are created before thunk starts 2007-03-07 21:01:17 +00:00
Don Stewart
dda3f2c07a Add Alt-Shift-[1..5], to move the current client to a new workspace 2007-03-08 01:04:24 +00:00
Don Stewart
aacf70eb46 cleaner implementation of 'view'. Only hide the current list. And shortcut if we try to move to the same screen. No flicker 2007-03-08 00:21:34 +00:00
Don Stewart
d373177a1f Fill in missing workspace code
How do we manage workspaces? thunk keeps a list of window lists,
corresponding each window stack on each workspace. When you switch views
to a different workspace it moves all windows off the screen (2*w)
(2*h), and then moves back those in the current list. There's some
screen flicker, we could probably be smarter about this.
2007-03-08 00:07:29 +00:00
Don Stewart
c6ddcd6dcd Add support for multiple workspaces
Everything is in place for multiple workspaces, bar one thing:
the view function. It updates thunk's idea of the current visible
windows, but I don't know how to tell X to hide the current set, and
instead treat the new window list as the only ones visible.

See notes for 'view' at bottom of Main.hs. If we can, say, switch to a
new workspace, which is empty, 'refresh' should spot this only display
the root window.
2007-03-07 11:12:47 +00:00
Don Stewart
27bc6b5b10 no -Werror 2007-03-07 11:12:40 +00:00
Don Stewart
3aecf4dcdc -Wall police. and strip the binary 2007-03-07 07:49:10 +00:00
Don Stewart
800b974c6b fmt. and use a Map for keycode lookup 2007-03-07 07:42:48 +00:00
Spencer Janssen
3ca6985525 xKillClient -> killClient 2007-03-07 07:30:10 +00:00
Don Stewart
11af93da57 formatting and comments only 2007-03-07 07:19:26 +00:00
Don Stewart
ebe2ddf2e4 Add alt-c, kill client 2007-03-07 07:19:10 +00:00
Don Stewart
b3d4730ef4 dead code 2007-03-07 06:52:50 +00:00
Don Stewart
2c3a36ea0f need Data.List 2007-03-07 06:48:27 +00:00
Don Stewart
e531be5476 focus left and right (mod-j/mod-k) 2007-03-07 06:45:39 +00:00
Spencer Janssen
ac09d64e06 Plan for statusbar/multithreading 2007-03-07 06:42:23 +00:00
Spencer Janssen
b1b7a56850 Add TODO 2007-03-07 06:42:14 +00:00
Don Stewart
601724b086 wibble 2007-03-07 06:22:01 +00:00
Don Stewart
bea5592b85 derive MonadState, removes most accessors 2007-03-07 06:15:32 +00:00
Spencer Janssen
96184564d6 Handle several more events, should fix several issues. 2007-03-07 06:04:47 +00:00
Don Stewart
e069b349b8 refactoring. less code 2007-03-07 05:50:07 +00:00
Don Stewart
6dedae651f just use [Window] 2007-03-07 05:01:39 +00:00
Don Stewart
cc947aa5ff url of dmenu. it now works 2007-03-07 04:24:46 +00:00
Don Stewart
1d2ce4d498 typo in dmenu code 2007-03-07 04:19:21 +00:00
Spencer Janssen
8a5910e2cb X11 1.2 works too. 2007-03-07 04:15:40 +00:00
Don Stewart
fff10368e3 add dmenu support, seems to work, but the resulting client isn't launched 2007-03-07 03:47:38 +00:00
Don Stewart
48fe0f45f2 refactoring 2007-03-07 03:38:55 +00:00
Don Stewart
0330a354f9 Wm -> W, all good monads have single capital letter names. comment the W.hs file 2007-03-07 03:33:07 +00:00
Don Stewart
4d5ba3ebfd unbox-strict-fields 2007-03-07 03:22:49 +00:00
Don Stewart
2d41812de8 comments for Main.hs, add io_, like io but return () 2007-03-07 03:21:39 +00:00
Don Stewart
30b6dd7ecf comments, rename 'l' to 'io', and state explicitly that we use GeneralizedNewtypeDeriving 2007-03-07 03:03:51 +00:00
Don Stewart
a984f74f30 move thunk.hs -> Main.hs. Be precise about which versions of every package are known to work 2007-03-07 02:55:35 +00:00
Don Stewart
c9afd30a23 add more readme details for finding dependencies 2007-03-07 02:53:10 +00:00
Don Stewart
d3eb6a4971 depend on the X11-extras package 2007-03-07 02:48:38 +00:00
Don Stewart
07ee2a19cd Flatten module hierarchy 2007-03-07 02:23:32 +00:00
Don Stewart
99ef0175d2 add readme 2007-03-07 02:23:01 +00:00
Don Stewart
113d13e178 add license stuff to .cabal 2007-03-07 02:22:52 +00:00
Don Stewart
81faf6fa01 more stuff for .cabal file. Add example of include path to use on OpenBSD 2007-03-07 02:15:04 +00:00
Spencer Janssen
b2c14305a2 Initial import. 2007-03-07 01:35:27 +00:00