Commit Graph

705 Commits

Author SHA1 Message Date
gwern0
75589eaf16 XSelection.hs: +2 functions, safePromptSelection and unsafePromptSelection
Analogous to Run.hs patch; these use safeSpawn and unsafeSpawn respectively.
2007-10-19 18:11:37 +00:00
gwern0
c7e40aa771 Run.hs: +2 functions, safeSpawn & unsafeSpawn
See their documentation. This is part of a re-organization of various 'run' commands; this two
make it easier to go through the shell or not, and will be re-used elsewhere.
2007-10-19 18:10:09 +00:00
gwern0
0917e5f56f Run.hs: fmt 2007-10-19 18:09:53 +00:00
gwern0
3483054089 Run.hs, ShellPrompt.sh: mv runInXTerm to ShellPrompt.hs 2007-10-19 18:09:00 +00:00
gwern0
890f586bb7 XSelection.hs: documentation format changes. 2007-10-19 01:00:57 +00:00
gwern0
984f9092c1 XSelection.hs: +type signature for auxiliary function 2007-10-19 01:00:34 +00:00
gwern0
f0eb0f0311 XSelection.hs: simplify creation of window
While spelunking in the xclip source code, I noticed it had much the same call to createSimpleWindow but with a simpler geometry - just 1x1 pixels, not the odd 200x100 of the original code. It seems to work the same and looks better and less mysterious, so unless arossato had a specific reason for those particular two numbers...
2007-10-19 01:00:13 +00:00
"Valery V. Vorotyntsev"
710aa7efb9 XPrompt.hs (keyPressHandle): Ctrl-g and Ctrl-c added to quit keystrokes
Obvious comments removed.
2007-10-20 17:09:36 +00:00
"Valery V. Vorotyntsev"
0febec2c69 XPrompt.hs: trailing whitespace cleaned 2007-10-20 17:07:19 +00:00
Shachaf Ben-Kiki
55b537f2a2 Fix pragmas in XMonadContrib 2007-10-22 01:17:38 +00:00
"Valery V. Vorotyntsev"
ab94a40160 test_XPrompt.hs: there is no ShellPrompt.rmPath 2007-10-19 20:58:30 +00:00
David Roundy
723e757910 introduce new combineTwo layout combinator.
This layout combinator is similar in spirit (and in code) to
the old combo combinator, but only allows two sublayouts.  As
a result, we don't need to wrap these in existentials, and reading
works seamlessly.  Also, we add the feature (which could also be
added to combo) of being able to change which sublayout a given
window is in through integration with WindowNavigation.

I envision combo being deprecated soon.  combineTwo isn't quite
so flexible, but it's much easier and is better-coded also.
2007-10-20 19:17:48 +00:00
David Roundy
73a5299fbe allow layout modifiers to modify a Message in transit.
This is a helpful feature (for, e.g. WindowNavigation) that
allows modifiers (if they so choose... the old API remains
supported) to easily send a single Message to the modified
layout in response to a Message.
2007-10-20 19:15:42 +00:00
Brent Yorgey
ba006db696 update UrgencyHook example config to reflect changes to WindowNavigation and core Config.hs 2007-10-19 14:55:26 +00:00
David Roundy
f2b5dfebed add ToggleLayouts module. 2007-10-18 21:45:25 +00:00
David Roundy
fbe5c23729 default to empty description for layout modifiers.
This is because modifierDescription is designed to be human-readable,
and show rarely creates a human-readable description.  And in many (if
not most) cases, an empty description is precisely what we want.
2007-10-18 20:26:04 +00:00
David Roundy
3c372e5f9a beautify description code for empty modifier-description. 2007-10-18 20:24:38 +00:00
Brent Yorgey
7910250fe4 change definition of 'description' function for LayoutModifier so an extra space is not added if the modifier description is empty. 2007-10-18 18:30:54 +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
David Roundy
c80bf1e5eb add function to rename workspaces. 2007-10-18 14:56:04 +00:00
l.mai
27b9582201 fix WindowNavigation comment 2007-10-18 05:43:15 +00:00
Devin Mullins
883af044fb change example to dzenUrgencyHook 2007-10-18 02:20:26 +00:00
Devin Mullins
06aa06ecdb add dzenUrgencyHook as example (and the one I use) 2007-10-18 02:17:42 +00:00
Devin Mullins
567e10619b fixed Dzen and gave it a configurable timeout 2007-10-18 01:29:10 +00:00
Devin Mullins
02c2e69643 rename LayoutSelect & defaultLayout in comments 2007-10-16 05:18:19 +00:00
Devin Mullins
244edc1d3a add import to comments, for clarity 2007-10-12 04:45:55 +00:00
Devin Mullins
46b9061f4b documentation for UrgencyHook 2007-10-12 03:45:06 +00:00
Devin Mullins
ff65fdb6c6 d'oh, minor UrgencyHook cleanup 2007-10-12 03:25:58 +00:00
Devin Mullins
83756daeeb brand new UrgencyHook contrib, depends on X11-extras WMHints binding
It's a LayoutModifier which lets you define an urgencyHook function -- the
action gets performed wheneveran X client sends an XUrgencyHint message (i.e.
tries to "flash" the "taskbar").

This statically points to Config.urgencyHook, which requires that the user add
a line to Config.hs-boot, in addition to defining the urgencyHook.

Documentation forthcoming.
2007-10-11 05:16:41 +00:00
Eric Mertens
58d131746a TilePrime.hs: Give a description that distinguishs between horizontal/vertical 2007-10-18 06:37:49 +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
Eric Mertens
fa81ef9e07 TilePrime.hs: Correct behavior when number of windows <= nmaster
Additionally this patch does various clean-ups that should not
affect functionality.
2007-10-17 20:51:53 +00:00
Spencer Janssen
3b71671751 Remove RunInXTerm in favor of Run 2007-10-17 20:22:01 +00:00
Christian Thiemann
830945336f Move runXXX functions to one module
This patch takes runProcessWithInput out of Dmenu, runProcessWithInputAndWait
out of Dzen, and runInXTerm out of RunInXTerm and collects them in one central
module called Run.  This way, other modules may include Run instead of Dmenu
to get what they want without giving the impression of making use of dmenu.
2007-10-12 14:52:33 +00:00
Shachaf Ben-Kiki
c437e3e384 Fix LANGUAGE pragmas 2007-10-17 19:46:22 +00:00
l.mai
aba2e77b68 use full screen for single window in TilePrime 2007-10-17 19:14:21 +00:00
Eric Mertens
3e5c834c75 RotSlaves.hs: Add rotAll functions 2007-10-17 17:32:56 +00:00
Joachim Fasting
5abd5e39a6 TilePrime.hs: add usage info. 2007-10-17 19:26:12 +00:00
Joachim Fasting
1d006c67f3 TilePrime.hs: add LANGAUGE pragma. 2007-10-17 18:20:42 +00:00