textbox width is limited to unused space
[awesome.git] / awesomerc.1.txt
blob5a479c60f04f42326ffc8baaef225931bf4a56aa
1 awesomerc(1)
2 ===========
4 NAME
5 ----
7 awesomerc - Configuration file for the 'awesome window manager'
9 SYNOPSIS
10 --------
12 <item> [<argument>]
14     <option> = <value>
16     <item> [<argument>] { <option> = <value>, ... }
17     ....
20 <option> = <value>
23 DESCRIPTION
24 -----------
26 The awesomerc file contains configuration informations for *awesome*. It can
27 be used to configure the behaviour and look of awesome in a variety of ways.
29 It is read at startup.
31 UICB FUNCTIONS
32 --------------
34 In awesome, a lot of *functions* are available. These functions are called
35 uicb (User Interface Call Backs). Each function can be bound to a key shortcut
36 or a mouse button.
38 General
39 ~~~~~~~
40 *quit*::
41     This function quits awesome.
42 *statusbar_toggle* statusbar-identifier::
43     Hide or show statusbar (with no argument, toggle all).
44 *spawn* client::
45     Execute an external program.
46 *exec* program::
47     Replace awesome with another window manager (or itself; i.e. reload config).
48 *widget_tell* widget-identifier data::
49     Feed information to your widgets.
51 Client
52 ~~~~~~
53 *client_kill*::
54     Closes the focused client.
55 *client_moveresize* x y width height::
56     Dynamically move and resize floating windows.
57     Coordinates can be relative or absolute. Relative values must begin with + or -.
58     E.g: to move a window 10 pixels up: "+0 \+10 +0 +0" To move a window
59     in the upper left corner and increase its width by 10px: "0 0 \+0 +10"
60 *client_settrans* float::
61     Set client transparency, number can be a relative or absolute floating number in percentage.
62 *client_swapnext*::
63     Swap window placement with the next displayed window.
64 *client_swapprev*::
65     Swap window placement with the previous displayed window.
66 *client_focusnext*::
67     Focus next window.
68 *client_focusprev*::
69     Focus previous window.
70 *client_togglemax*::
71     Set window fullscreen. Calling this function another time will reset the window to its previous state.
72 *client_togglehorizontalmax*::
73     Set window's horizontal size to display width. Calling another time will reset the window to its previous state.
74 *client_toggleverticalmax*::
75     Set window's vertical size to display height. Calling another time will reset the window to its previous state.
76 *client_togglefloating*::
77     Set window floating or tiled.
78 *client_zoom*::
79     Set window as master window.
80 *client_movetoscreen* relative or absolute integer::
81     Move focused window to the nth screen, or next (+1) or previous (-1). If no screen_number is set, move to the next screen.
82 *client_tag* tag number::
83     Tag focused window with this tag.
84 *client_toggletag*::
85     Add or remove tag to focused window.
86 *client_movemouse*::
87     Move client window with mouse.
88 *client_resizemouse*::
89     Resize client window with mouse.
91 Tag
92 ~~~
93 *tag_setlayout* relative or absolute integer::
94     Set layout number; or just switch to the next layout for current tag.
95 *tag_toggleview* tag::
96     Add windows tagged with tag number to current display.
97 *tag_view* tag number::
98     View windows tagged with tag number.
99 *tag_viewnext*::
100     Show windows tagged with next tag in list.
101 *tag_viewprev*::
102     Show windows tagged with previous tag in list.
103 *tag_prev_selected*::
104     Switch back to the previously displayed set of tags.
105 *tag_setmwfact* relative or absolute float::
106     Set master width factor.
107 *tag_setncol* relative or absolute integer::
108     Set number of columns for non-master windows.
109 *tag_setnmaster* relative or absolute integer::
110     Set number of master windows.
111 *tag_create* name::
112     Create a new tag with that name.
114 Focus
115 ~~~~~
116 *focus_client_byname* string::
117     Give client focus by its name.
118 *focus_history* negative number::
119     Focus the client that had focused nth focus switch earlier.
121 Screen
122 ~~~~~~
123 *screen_focus* relative or absolute integer::
124     Select Screen and focus first window and move mouse.
126 WIDGETS
127 -------
128 Statusbars can be customized by modifying widgets names, order and options.
130 taglist
131 ~~~~~~~
132 This widget shows the tag list.
134 *mouse*::
135     Set mouse bindings.
136 *x*::
137     Horizontal offset (auto-alignment if not set).
138 *y*::
139     Vertical offset (auto-alignment if not set).
141 layoutinfo
142 ~~~~~~~~~~
143 This widget shows a icon for the selected layout.
145 *mouse*::
146     Set mouse bindings.
147 *x*::
148     Horizontal offset (auto-alignment if not set).
149 *y*::
150     Vertical offset (auto-alignment if not set).
152 netwmicon
153 ~~~~~~~~~
154 This widget shows a icon for the focused window  using NET_WM_ICON or icon file set in rule.
156 *mouse*::
157     Set mouse bindings.
158 *x*::
159     Horizontal offset (auto-alignment if not set).
160 *y*::
161     Vertical offset (auto-alignment if not set).
163 focustitle
164 ~~~~~~~~~~
165 This widget shows the title of the focused window.
167 *mouse*::
168     Set mouse bindings.
169 *font*::
170     Font to use.
171 *bg*::
172     Background color.
173 *fg*::
174     Foreground color.
175 *align*::
176     Text alignement.
177 *x*::
178     Horizontal offset (auto-alignment if not set).
179 *y*::
180     Vertical offset (auto-alignment if not set).
182 tasklist
183 ~~~~~~~~
184 This widget shows a list of running windows.
186 *mouse*::
187     Set mouse bindings.
188 *font*::
189     Font to use.
190 *bg*::
191     Background color.
192 *fg*::
193     Foreground color.
194 *focus_bg*::
195     Background color for focused window.
196 *focus_fg*::
197     Foreground color for focused window.
198 *align*::
199     Text alignement.
200 *show_icons*::
201     Show applications icons.
202 *show_all*::
203     Show all windows from all tags.
204 *x*::
205     Horizontal offset (auto-alignment if not set).
206 *y*::
207     Vertical offset (auto-alignment if not set).
209 textbox
210 ~~~~~~~
211 This widget shows a text.
213 *mouse*::
214     Set mouse bindings.
215 *font*::
216     Font to use.
217 *bg*::
218     Background color.
219 *fg*::
220     Foreground color.
221 *width*::
222     Set width.
223 *text*::
224     Text to change.
225 *align*::
226     Text alignement.
227 *x*::
228     Horizontal offset (auto-alignment if not set).
229 *y*::
230     Vertical offset (auto-alignment if not set).
232 iconbox
233 ~~~~~~~
234 This widget shows an icon.
236 *mouse*::
237     Set mouse bindings.
238 *image*::
239     Image file.
240 *resize*::
241     Resize icon to fit into statusbar.
242 *x*::
243     Horizontal offset (auto-alignment if not set).
244 *y*::
245     Vertical offset (auto-alignment if not set).
247 progressbar
248 ~~~~~~~~~~~
249 This widget shows one or more progress-bars.
251 *mouse*::
252     Set mouse bindings.
253 *width*::
254     Set width.
255 *height*::
256     Set height (i.e. 0.9 = 90%)
257 *padding_left*::
258     Empty space on the left.
259 *bar*::
260     Draws a bar; Options: fg, bg, bordercolor.
261 *fg*::
262     Foreground color.
263 *bg*::
264     Background color.
265 *bordercolor*::
266     Border color.
267 *x*::
268     Horizontal offset (auto-alignment if not set).
269 *y*::
270     Vertical offset (auto-alignment if not set).
272 graph
273 ~~~~~
274 This widget shows a graph.
276 *scale*::
277     Re-scales when input > max (see below).
278 *max*::
279     This value prints a full graph.
280 *mouse*::
281     Set mouse bindings.
282 *width*::
283     Set width.
284 *height*::
285     Set height (i.e. 0.9 = 90%)
286 *padding_left*::
287     Empty space on the left.
288 *fg*::
289     Foreground color.
290 *bg*::
291     Background color.
292 *bordercolor*::
293     Border color.
294 *x*::
295     Horizontal offset (auto-alignment if not set).
296 *y*::
297     Vertical offset (auto-alignment if not set).
299 OPTIONS
300 --------
302 Configuration options and possible values.
304 ..............................................
305 Note: when there is no whitespace, quotes are optional.
307 <boolean>       -> "true" or "false"
308 <color>         -> #ff9933 (hexadecimal color notation: #red green blue)
309 <float>         -> 0.3, 0,8 (often values between 0 and 1 are useful)
310 <font>          -> Xft font: mono-10, fixed-12, sans-8, ...
311 <identifier>    -> foobar (choose a name/string)
312 <image>         -> "/home/awesome/pics/icon.png" (path to image)
313 <integer>       -> 1, 10, -3 (positive numbers are required mostly)
314 <key>           -> a, 1, F10 (see /usr/include/X11/keysymdef.h w/o XK_ or 'xev')
315                    or a keycode beginning with #
316 <mod>           -> "Mod1", "Mod4", "Control" (modifiers)
317 <regex>         -> regular expression
318 <string>        -> "foo bar"
319 <uicb-arg>      -> prog, 3... (argument to a uicb function, where required)
320 <uicb-cmd>      -> spawn, exec, client_tag... (see UICB FUNCTIONS above)
321 <{.., ...}>     -> list of available options
323 [MULTI] means, you can use an item multiple times.
327 screen <integer> [MULTI]
329     general
330     {
331         allow_lower_floats = <boolean>
332         border = <integer> 
333         focus_move_pointer = <boolean>
334         font = <font> 
335         new_become_master = <boolean>
336         new_get_focus = <boolean>
337         opacity_unfocused = <integer>
338         resize_hints = <boolean> 
339         sloppy_focus = <boolean>
340         snap = <integer> 
341     }
342     tags
343     { 
344         tag <identifier> [MULTI]
345         { 
346             layout = <{dwindle,floating,max,
347                      spiral,tile,tileleft,tilebottom,tiletop}>
348             mwfact = <float> 
349             nmaster = <integer>
350         }
351     }
352     layouts
353     {
354         layout <{dwindle,floating,max,
355                  spiral,tile,tileleft,
356                  tilebottom,tiletop}> { image = <image> } [MULTI]
357     }
358     colors
359     {
360         tab_border = <color> 
361         normal_fg = <color>
362         normal_bg = <color> 
363         normal_border = <color> 
364         focus_fg = <color> 
365         focus_bg = <color> 
366         focus_border = <color>
367         urgent_fg = <color>
368         urgent_bg = <color>
369     }
370     padding 
371     { 
372         top = <integer> 
373         bottom = <integer> 
374         left = <integer> 
375         right = <integer> 
376     }
377     statusbar <identifier> [MULTI]
378     {
379         position = <{top,bottom,left,right}>
380         height = <integer>
381         width = <integer>
383         taglist <identifier> [MULTI]
384         {
385             x = <integer> y = <integer>
386             mouse [MULTI]
387             {   
388                 button = <integer> modkey = {<mod>, ...}
389                 command = <uicb-cmd> arg = <uicb-arg>
390             }
391         }
392         layoutinfo <identifier>
393         {
394             x = <integer> y = <integer>
395             mouse [MULTI]
396             {   
397                 button = <integer> modkey = {<mod>, ...} 
398                 command = <uicb-cmd> arg = <uicb-arg>
399             }
400         }
401         netwmicon <identifier>
402         {
403             x = <integer> y = <integer>
404             mouse [MULTI]
405             {   
406                 button = <integer> modkey = {<mod>, ...} 
407                 command = <uicb-cmd> arg = <uicb-arg>
408             }
409         }
410         focustitle <identifier>
411         {
412             fg = <color>
413             bg = <color>
414             font = <font>
415             align = <{center,left,right}>
416             x = <integer> y = <integer>
417             mouse [MULTI]
418             {   
419                 button = <integer> modkey = {<mod>, ...} 
420                 command = <uicb-cmd> arg = <uicb-arg>
421             }
422         }
423         tasklist <identifier>
424         {
425             fg = <color>
426             bg = <color>
427             focus_fg = <color>
428             focus_bg = <color>
429             font = <font>
430             show_icons = <boolean>
431             show_all = <boolean>
432             align = <{center,left,right}>
433             x = <integer> y = <integer>
434             mouse [MULTI]
435             {   
436                 command = <uicb-cmd> arg = <uicb-arg>
437                 button = <integer> modkey = {<mod>, ...} 
438             }
439         }    
440         textbox <identifier> [MULTI]
441         {
442             text = <string>
443             bg = <color> 
444             fg = <color> 
445             font = <font>
446             width = <integer>
447             align = <{center,left,right}>
448             x = <integer> y = <integer>
449             mouse [MULTI]
450             {   
451                 button = <integer> modkey = {<mod>, ...} 
452                 command = <uicb-cmd> arg = <uicb-arg>
453             }
454         }
455         iconbox <identifier> [MULTI]
456         {
457             image = <image>
458             resize = <boolean>
459             x = <integer> y = <integer>
460             mouse [MULTI]
461             {   
462                 button = <integer> modkey = {<mod>, ...} 
463                 command = <uicb-cmd> arg = <uicb-arg>
464             }
465         }
466         progressbar <identifier> [MULTI]
467         {
468             bar { fg = <color> bg = <color> bordercolor = <color> } [MULTI]
469             gap = <integer> 
470             width = <integer>
471             height = <float> 
472             padding_left = <integer>
473             x = <integer> y = <integer>
474             mouse [MULTI]
475             {   
476                 button = <integer> modkey = {<mod>, ...} 
477                 command = <uicb-cmd> arg = <uicb-arg>
478             }
479         }
480         graph <identifier> [MULTI]
481         {
482             scale = <boolean>
483             max = <float>
484             width = <integer>
485             height = <float>
486             padding_left = <integer>
487             fg = <color>
488             bg = <color>
489             bordercolor = <color>
490             x = <integer> y = <integer>
491             mouse [MULTI]
492             {   
493                 button = <integer> modkey = {<mod>, ...} 
494                 command = <uicb-cmd> arg = <uicb-arg>
495             }
496         }
497     }
499 rules
500 {  
501     rule [MULTI] 
502     { 
503         name = <regex> 
504         xproperty_name = <string>
505         xproperty_value = <regex>
506         float = <{auto,true,false}>
507         tags = <regex>
508         screen = <integer> 
509         icon = <image> 
510         not_master = <boolean>
511     }
513 keys
515     key [MULTI]
516     { 
517         key = <key> modkey = {<mod>, ...} 
518         command = <uicb-cmd> arg = <uicb-arg> 
519     }
520     keylist [MULTI]
521     { 
522         keylist = {<key>, ...} 
523         modkey = {<mod>, ...} 
524         command = <uicb-cmd> 
525         arglist = {<uicb-arg>, ...} 
526     }
528 mouse
530     client [MULTI] 
531     {
532         button = <integer> modkey = {<mod>, ...} 
533         command = <uicb-cmd> arg = <uicb-arg> 
534     }
535     root [MULTI]
536     {
537         button = <integer> modkey = {<mod>, ...} 
538         command = <uicb-cmd> arg = <uicb-arg> 
539     }
541 ..............................................
543 EXAMPLES
544 --------
546 Check awesome's wiki: http://awesome.naquadah.org/wiki/
549 SEE ALSO
550 --------
551 awesome(1) awesome-client(1)
554 AUTHORS
555 -------
556 This man page was written by Julien Danjou <julien@danjou.info> and Marco Candrian <mac@calmar.ws>.
560 http://awesome.naquadah.org