2007-12-15 05:08:44 +01:00
awesomerc(1)
===========
NAME
----
awesomerc - Configuration file for the 'awesome window manager'
SYNOPSIS
--------
*awesome* reads *$HOME/.awesomerc* by default. You can choose another configuration
file with: awesome -c configuration
2007-12-15 07:42:18 +01:00
UICB FUNCTIONS
--------------
2007-12-15 05:08:44 +01:00
In awesome, a lot of *functions* are available. These functions are called uicb (User Interface Call Backs). Each function can be bound to a key shortcut or a mouse button.
General
~~~~~~~
*quit*::
This function quits awesome.
2008-01-07 08:37:40 +01:00
*statusbar_toggle* statusbar-identifier::
Hide or show statusbar (with no argument, toggle all).
2007-12-15 05:08:44 +01:00
*statusbar_set_position* top, bottom, left, right::
Set the position of the statusbar.
*spawn* client::
Execute an external program.
*exec* program::
Replace awesome with another window manager (or itself; i.e. reload config).
2007-12-24 09:49:50 +01:00
*widget_tell* widget-identifier data::
Feed information to your widgets.
2007-12-15 05:08:44 +01:00
Client
~~~~~~
*client_kill*::
Closes the focused client.
*client_moveresize* x y width height::
Dynamically move and resize floating windows.
Coordinates can be relative or absolute. Relative values must begin with + or -.
E.g: to move a window 10 pixels up: "+0 \+10 +0 +0" To move a window
in the upper left corner and increase its width by 10px: "0 0 \+0 +10"
*client_settrans* float::
Set client transparency, number can be a relative or absolute floating number in percentage.
*client_swapnext*::
Swap window placement with the next displayed window.
*client_swapprev*::
Swap window placement with the previous displayed window.
*client_focusnext*::
Focus next window.
*client_focusprev*::
Focus previous window.
*client_togglemax*::
Set window fullscreen. Calling this function another time will reset the window to its previous state.
*client_togglehorizontalmax*::
Set window's horizontal size to display width. Calling another time will reset the window to its previous state.
*client_toggleverticalmax*::
Set window's vertical size to display height. Calling another time will reset the window to its previous state.
*client_togglefloating*::
Set window floating or tiled.
*client_zoom*::
Set window as master window.
*client_movetoscreen* relative or absolute integer::
Move focused window to the nth screen, or next (+1) or previous (-1). If no screen_number is set, move to the next screen.
*client_tag* tag number::
Tag focused window with this tag.
*client_toggletag*::
Add or remove tag to focused window.
*client_movemouse*::
Move client window with mouse.
*client_resizemouse*::
Resize client window with mouse.
Tag
~~~
*tag_setlayout* relative or absolute integer::
Set layout number; or just switch to the next layout for current tag.
*tag_toggleview* tag::
Add windows tagged with tag number to current display.
*tag_view* tag number::
View windows tagged with tag number.
*tag_viewnext*::
Show windows tagged with next tag in list.
*tag_viewperv*::
Show windows tagged with previous tag in list.
*tag_viewprev_selected*::
Switch back to the previously displayed set of tags.
*tag_setmwfact* relative or absolute float::
Set master width factor.
*tag_setncol* relative or absolute integer::
Set number of columns for non-master windows.
*tag_setnmaster* relative or absolute integer::
Set number of master windows.
Screen
~~~~~~
*screen_focus* relative or absolute integer::
Select Screen and focus first window and move mouse.
2007-12-30 15:38:23 +01:00
WIDGETS
-------
2007-12-30 21:13:11 +01:00
Statusbars can be customized by modifying widgets names, order and options.
2007-12-30 15:38:23 +01:00
taglist
~~~~~~~
This widget shows the tag list.
*mouse*::
Set mouse bindings.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
layoutinfo
~~~~~~~~~~
This widget shows a icon for the selected layout.
*mouse*::
Set mouse bindings.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
netwmicon
~~~~~~~~~
This widget shows a icon for the focused window using NET_WM_ICON or icon file set in rule.
*mouse*::
Set mouse bindings.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
focustitle
~~~~~~~~~~
This widget shows the title of the focused window.
*mouse*::
Set mouse bindings.
*font*::
Font to use.
*bg*::
Background color.
*fg*::
Foreground color.
2008-01-03 16:13:08 +01:00
*align*::
Text alignement.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
2008-01-03 12:39:28 +01:00
tasklist
~~~~~~~~
This widget shows a list of running windows.
*mouse*::
Set mouse bindings.
*font*::
Font to use.
*bg*::
Background color.
*fg*::
Foreground color.
*focus_bg*::
Background color for focused window.
*focus_fg*::
Foreground color for focused window.
2008-01-03 16:13:08 +01:00
*align*::
Text alignement.
2008-01-03 19:21:36 +01:00
*show_icons*::
Show applications icons.
2008-01-07 11:20:24 +01:00
*show_all*::
Show all windows from all tags.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2008-01-03 12:39:28 +01:00
2007-12-30 15:38:23 +01:00
textbox
~~~~~~~
This widget shows a text.
*mouse*::
Set mouse bindings.
*font*::
Font to use.
*bg*::
Background color.
*fg*::
Foreground color.
*width*::
Set width.
*text*::
Text to change.
2008-01-03 16:13:08 +01:00
*align*::
Text alignement.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
iconbox
~~~~~~~
This widget shows an icon.
*mouse*::
Set mouse bindings.
*image*::
Image file.
2008-01-02 14:59:15 +01:00
*resize*::
Resize icon to fit into statusbar.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
progressbar
~~~~~~~~~~~
2008-01-02 07:18:39 +01:00
This widget shows one or more progress-bars.
2007-12-30 15:38:23 +01:00
*mouse*::
Set mouse bindings.
*width*::
Set width.
2008-01-07 04:52:03 +01:00
*height*::
Set height (i.e. 0.9 = 90%)
*padding_left*::
Empty space on the left.
2008-01-02 07:18:39 +01:00
*bar*::
2008-01-07 04:52:03 +01:00
Draws a bar; Options: fg, bg, bordercolor.
2007-12-30 15:38:23 +01:00
*fg*::
Foreground color.
*bg*::
Background color.
2008-01-07 04:52:03 +01:00
*bordercolor*::
Border color.
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
graph
~~~~~
This widget shows a graph.
*mouse*::
Set mouse bindings.
*width*::
Set width.
*height*::
Set height (i.e. 0.9 = 90%)
*padding_left*::
Empty space on the left.
*fg*::
Foreground color.
*bg*::
Background color.
*bordercolor*::
2008-01-02 07:18:39 +01:00
Border color.
2008-01-05 13:24:15 +01:00
*x*::
Horizontal offset (auto-alignment if not set).
*y*::
Vertical offset (auto-alignment if not set).
2007-12-30 15:38:23 +01:00
2007-12-15 05:08:44 +01:00
FILES
-----
2008-01-05 13:24:15 +01:00
For an example of an awesomerc file, see the file provided with the sources.
2007-12-15 05:08:44 +01:00
2007-12-24 09:49:50 +01:00
EXAMPLES
--------
2008-01-03 06:51:09 +01:00
2008-01-02 07:18:39 +01:00
The general config and subconfig options for the awesomerc:
2007-12-24 09:49:50 +01:00
2008-01-03 06:51:09 +01:00
..............................................
2008-01-07 04:52:03 +01:00
Note: when there is no whitespace, quotes are optional.
2008-01-03 06:51:09 +01:00
2008-01-05 13:24:15 +01:00
<boolean> -> "true" or "false"
2008-01-03 06:51:09 +01:00
<color> -> #ff9933 (hexadecimal color notation: #red green blue)
<float> -> 0.3, 0,8 (often values between 0 and 1 are useful)
2008-01-05 13:24:15 +01:00
<font> -> Xft font: mono-10, fixed-12, sans-8, ...
<identifier> -> foobar (choose a name/string)
2008-01-03 06:51:09 +01:00
<image> -> "/home/awesome/pics/icon.png" (path to image)
<integer> -> 1, 10, -3 (positive numbers are required mostly)
2008-01-04 18:01:48 +01:00
<key> -> a, 1, F10 (see /usr/include/X11/keysymdef.h w/o XK_ or 'xev')
2008-01-05 13:24:15 +01:00
<mod> -> "Mod1", "Mod4", "Control" (modifiers)
2008-01-04 18:47:12 +01:00
<regex> -> regular expression
2008-01-05 13:24:15 +01:00
<string> -> "foo bar"
<uicb-arg> -> prog, 3... (argument to a uicb function, where required)
<uicb-cmd> -> spawn, exec, client_tag... (see UICB FUNCTIONS above)
2008-01-03 06:51:09 +01:00
<{.., ...}> -> list of available options
[MULTI] means, you can use an item multiple times.
screen <integer> [MULTI]
2008-01-02 07:18:39 +01:00
{
general
{
2008-01-05 13:24:15 +01:00
allow_lower_floats = <boolean>
border = <integer>
focus_move_pointer = <boolean>
font = <font>
new_become_master = <boolean>
opacity_unfocused = <integer>
resize_hints = <boolean>
sloppy_focus = <boolean>
snap = <integer>
}
tags
{
tag <identifier> [MULTI]
{
layout = <{dwindle,floating,max,
spiral,tile,tileleft}>
mwfact = <float>
nmaster = <integer>
}
2008-01-02 07:18:39 +01:00
}
layouts
{
2008-01-03 06:51:09 +01:00
layout <{dwindle,floating,max,
2008-01-05 13:24:15 +01:00
spiral,tile,tileleft}> { image = <image> } [MULTI]
}
colors
{
tab_border = <color>
normal_fg = <color>
normal_bg = <color>
normal_border = <color>
focus_fg = <color>
focus_bg = <color>
focus_border = <color>
urgent_fg = <color>
urgent_bg = <color>
2008-01-02 07:18:39 +01:00
}
padding
{
2008-01-05 13:24:15 +01:00
top = <integer>
bottom = <integer>
left = <integer>
right = <integer>
2008-01-02 07:18:39 +01:00
}
2008-01-03 06:51:09 +01:00
statusbar <identifier> [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
position = <{top,bottom,left,right}>
height = <integer>
width = <integer>
2008-01-03 16:13:08 +01:00
2008-01-05 13:24:15 +01:00
taglist <identifier> [MULTI]
2008-01-03 16:13:08 +01:00
{
2008-01-05 13:24:15 +01:00
x = <integer> y = <integer>
2008-01-03 16:13:08 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 16:13:08 +01:00
}
}
2008-01-05 13:24:15 +01:00
layoutinfo <identifier>
2008-01-03 16:13:08 +01:00
{
2008-01-05 13:24:15 +01:00
x = <integer> y = <integer>
2008-01-03 16:13:08 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 16:13:08 +01:00
}
2008-01-05 13:24:15 +01:00
}
netwmicon <identifier>
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
x = <integer> y = <integer>
2008-01-03 06:51:09 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 06:51:09 +01:00
}
2008-01-02 07:18:39 +01:00
}
2008-01-05 13:24:15 +01:00
focustitle <identifier>
2008-01-03 16:13:08 +01:00
{
2008-01-05 13:24:15 +01:00
fg = <color>
bg = <color>
font = <font>
align = <{center,left,right}>
x = <integer> y = <integer>
2008-01-03 16:13:08 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 16:13:08 +01:00
}
}
2008-01-05 13:24:15 +01:00
tasklist <identifier>
2008-01-03 16:13:08 +01:00
{
2008-01-05 13:24:15 +01:00
fg = <color>
bg = <color>
focus_fg = <color>
focus_bg = <color>
font = <font>
show_icons = <boolean>
align = <{center,left,right}>
x = <integer> y = <integer>
2008-01-03 16:13:08 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
command = <uicb-cmd> arg = <uicb-arg>
button = <integer> modkey = {<mod>, ...}
2008-01-03 16:13:08 +01:00
}
2008-01-05 13:24:15 +01:00
}
textbox <identifier> [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
text = <string>
bg = <color>
fg = <color>
font = <font>
width = <integer>
align = <{center,left,right}>
x = <integer> y = <integer>
2008-01-03 06:51:09 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 06:51:09 +01:00
}
2008-01-02 07:18:39 +01:00
}
2008-01-05 13:24:15 +01:00
iconbox <identifier> [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
image = <image>
resize = <boolean>
x = <integer> y = <integer>
2008-01-03 06:51:09 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 06:51:09 +01:00
}
2008-01-02 07:18:39 +01:00
}
2008-01-05 13:24:15 +01:00
progressbar <identifier> [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-07 04:52:03 +01:00
bar { fg = <color> bg = <color> bordercolor = <color> } [MULTI]
2008-01-05 13:24:15 +01:00
gap = <integer>
width = <integer>
height = <float>
2008-01-07 04:52:03 +01:00
padding_left = <integer>
x = <integer> y = <integer>
mouse [MULTI]
{
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
}
}
graph <identifier> [MULTI]
{
width = <integer>
height = <float>
padding_left = <integer>
fg = <color>
bg = <color>
bordercolor = <color>
2008-01-05 13:24:15 +01:00
x = <integer> y = <integer>
2008-01-03 06:51:09 +01:00
mouse [MULTI]
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-03 06:51:09 +01:00
}
2008-01-02 07:18:39 +01:00
}
}
}
rules
{
2008-01-03 06:51:09 +01:00
rule [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
name = <regex>
xproperty_name = <string>
xproperty_value = <regex>
2008-01-07 00:36:45 +01:00
float = <{auto,true,false}>
2008-01-05 13:24:15 +01:00
tags = <regex>
screen = <integer>
icon = <image>
not_master = <boolean>
2008-01-02 07:18:39 +01:00
}
}
keys
{
2008-01-03 06:51:09 +01:00
key [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
key = <key> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-02 07:18:39 +01:00
}
2008-01-03 06:51:09 +01:00
keylist [MULTI]
2008-01-02 07:18:39 +01:00
{
2008-01-05 13:24:15 +01:00
keylist = {<key>, ...}
modkey = {<mod>, ...}
command = <uicb-cmd>
arglist = {<uicb-arg>, ...}
2008-01-02 07:18:39 +01:00
}
}
mouse
{
2008-01-03 06:51:09 +01:00
client [MULTI]
2008-01-02 09:57:26 +01:00
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-02 07:18:39 +01:00
}
2008-01-03 06:51:09 +01:00
root [MULTI]
2008-01-02 09:57:26 +01:00
{
2008-01-05 13:24:15 +01:00
button = <integer> modkey = {<mod>, ...}
command = <uicb-cmd> arg = <uicb-arg>
2008-01-02 07:18:39 +01:00
}
}
2008-01-03 06:51:09 +01:00
..............................................
2007-12-24 09:49:50 +01:00
2007-12-15 05:08:44 +01:00
SEE ALSO
--------
awesome(1) awesome-client(1)
AUTHORS
-------
2007-12-24 09:49:50 +01:00
This man page was written by Julien Danjou <julien@danjou.info> and Marco Candrian <mac@calmar.ws>.
2007-12-15 05:08:44 +01:00
WWW
---
http://awesome.naquadah.org