File: xmonad.html

package info (click to toggle)
xmonad 0.7-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 328 kB
  • ctags: 18
  • sloc: haskell: 2,012; makefile: 80; sh: 49
file content (183 lines) | stat: -rw-r--r-- 6,423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of xmonad</TITLE>
</HEAD><BODY>
<H1>xmonad</H1>
Section: xmonad manual (1)<BR>Updated: 18 April 07<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

xmonad - a tiling window manager
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>

<P>

<B>xmonad</B> is a minimalist tiling window manager for X, written in Haskell. Windows are managed using automatic layout algorithms, which can be dynamically reconfigured. At any time windows are arranged so as to maximise the use of screen real estate. All features of the window manager are accessible purely from the keyboard: a mouse is entirely optional. <B>xmonad</B> is configured in Haskell, and custom layout algorithms may be implemented by the user in config files. A principle of <B>xmonad</B> is predictability: the user should know in advance precisely the window arrangement that will result from any action.
<P>

By default, <B>xmonad</B> provides three layout algorithms: tall, wide and fullscreen. In tall or wide mode, windows are tiled and arranged to prevent overlap and maximise screen use. Sets of windows are grouped together on virtual screens, and each screen retains its own layout, which may be reconfigured dynamically. Multiple physical monitors are supported via Xinerama, allowing simultaneous display of a number of screens.
<P>

By utilising the expressivity of a modern functional language with a rich static type system, <B>xmonad</B> provides a complete, featureful window manager in less than 1200 lines of code, with an emphasis on correctness and robustness. Internal properties of the window manager are checked using a combination of static guarantees provided by the type system, and type-based automated testing. A benefit of this is that the code is simple to understand, and easy to modify.
<A NAME="lbAD">&nbsp;</A>
<H2>USAGE</H2>

<P>

<B>xmonad</B> places each window into a &quot;workspace&quot;. Each workspace can have any number of windows, which you can cycle though with mod-j and mod-k. Windows are either displayed full screen, tiled horizontally, or tiled vertically. You can toggle the layout mode with mod-space, which will cycle through the available modes.
<P>

You can switch to workspace N with mod-N. For example, to switch to workspace 5, you would press mod-5. Similarly, you can move the current window to another workspace with mod-shift-N.
<P>

When running with multiple monitors (Xinerama), each screen has exactly 1 workspace visible. mod-{w,e,r} switch the focus between screens, while shift-mod-{w,e,r} move the current window to that screen. When <B>xmonad</B> starts, workspace 1 is on screen 1, workspace 2 is on screen 2, etc. When switching workspaces to one that is already visible, the current and visible workspaces are swapped.
<P>

<A NAME="lbAE">&nbsp;</A>
<H3>Flags</H3>

<B>xmonad</B> has several flags which you may pass to the executable. These flags are:
<DL COMPACT>
<DT><B>--recompile<DD>
Recompiles your configuration in ~/.xmonad/xmonad.hs
<DT>--version<DD>
Display version of xmonad</B>.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H3>Default keyboard bindings</H3>

<DL COMPACT>
<DT><DD>
<BR>&nbsp;<B>mod-shift-return</B>
Launch terminal
<DT><DD>
<BR>&nbsp;<B>mod-p</B>
Launch dmenu
<DT><DD>
<BR>&nbsp;<B>mod-shift-p</B>
Launch gmrun
<DT><DD>
<BR>&nbsp;<B>mod-shift-c</B>
Close the focused window
<DT><DD>
<BR>&nbsp;<B>mod-space</B>
Rotate through the available layout algorithms
<DT><DD>
<BR>&nbsp;<B>mod-shift-space</B>
Reset the layouts on the current workspace to default
<DT><DD>
<BR>&nbsp;<B>mod-n</B>
Resize viewed windows to the correct size
<DT><DD>
<BR>&nbsp;<B>mod-tab</B>
Move focus to the next window
<DT><DD>
<BR>&nbsp;<B>mod-shift-tab</B>
Move focus to the previous window
<DT><DD>
<BR>&nbsp;<B>mod-j</B>
Move focus to the next window
<DT><DD>
<BR>&nbsp;<B>mod-k</B>
Move focus to the previous window
<DT><DD>
<BR>&nbsp;<B>mod-m</B>
Move focus to the master window
<DT><DD>
<BR>&nbsp;<B>mod-return</B>
Swap the focused window and the master window
<DT><DD>
<BR>&nbsp;<B>mod-shift-j</B>
Swap the focused window with the next window
<DT><DD>
<BR>&nbsp;<B>mod-shift-k</B>
Swap the focused window with the previous window
<DT><DD>
<BR>&nbsp;<B>mod-h</B>
Shrink the master area
<DT><DD>
<BR>&nbsp;<B>mod-l</B>
Expand the master area
<DT><DD>
<BR>&nbsp;<B>mod-t</B>
Push window back into tiling
<DT><DD>
<BR>&nbsp;<B>mod-comma</B>
Increment the number of windows in the master area
<DT><DD>
<BR>&nbsp;<B>mod-period</B>
Deincrement the number of windows in the master area
<DT><DD>
<BR>&nbsp;<B>mod-b</B>
Toggle the status bar gap
<DT><DD>
<BR>&nbsp;<B>mod-shift-q</B>
Quit xmonad
<DT><DD>
<BR>&nbsp;<B>mod-q</B>
Restart xmonad
<DT><DD>
<BR>&nbsp;<B>mod-[1..9]</B>
Switch to workspace N
<DT><DD>
<BR>&nbsp;<B>mod-shift-[1..9]</B>
Move client to workspace N
<DT><DD>
<BR>&nbsp;<B>mod-{w,e,r}</B>
Switch to physical/Xinerama screens 1, 2, or 3
<DT><DD>
<BR>&nbsp;<B>mod-shift-{w,e,r}</B>
Move client to screen 1, 2, or 3
<DT><DD>
<BR>&nbsp;<B>mod-button1</B>
Set the window to floating mode and move by dragging
<DT><DD>
<BR>&nbsp;<B>mod-button2</B>
Raise the window to the top of the stack
<DT><DD>
<BR>&nbsp;<B>mod-button3</B>
Set the window to floating mode and resize by dragging
<P>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>EXAMPLES</H2>

To use <B>xmonad</B> as your window manager add:
<DL COMPACT><DT><DD>
xmonad
</DL>

to your <I>~/.xinitrc</I> file
<A NAME="lbAH">&nbsp;</A>
<H2>CUSTOMIZATION</H2>

<B>xmonad</B> is customized in ~/.xmonad/xmonad.hs, and then restarting with mod-q.
<A NAME="lbAI">&nbsp;</A>
<H2>BUGS</H2>

Probably. If you find any, please report them: <A HREF="http://code.google.com/p/xmonad/issues/list">http://code.google.com/p/xmonad/issues/list</A>
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">DESCRIPTION</A><DD>
<DT><A HREF="#lbAD">USAGE</A><DD>
<DL>
<DT><A HREF="#lbAE">Flags</A><DD>
<DT><A HREF="#lbAF">Default keyboard bindings</A><DD>
</DL>
<DT><A HREF="#lbAG">EXAMPLES</A><DD>
<DT><A HREF="#lbAH">CUSTOMIZATION</A><DD>
<DT><A HREF="#lbAI">BUGS</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 20:25:33 GMT, March 29, 2008
</BODY>
</HTML>