2008-02-28 12:36:17 +01:00
|
|
|
awesomerc(5)
|
2007-12-15 05:08:44 +01:00
|
|
|
===========
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
|
|
|
|
awesomerc - Configuration file for the 'awesome window manager'
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2008-03-27 16:48:52 +01:00
|
|
|
..........................
|
|
|
|
<section> [title]
|
2008-01-08 16:33:22 +01:00
|
|
|
{
|
|
|
|
<option> = <value>
|
|
|
|
|
2008-03-27 16:48:52 +01:00
|
|
|
<section> [title]
|
|
|
|
{
|
|
|
|
<option> = <value>
|
|
|
|
...
|
|
|
|
}
|
|
|
|
...
|
2008-01-08 16:33:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
<option> = <value>
|
|
|
|
|
2008-02-29 09:55:39 +01:00
|
|
|
include(file.conf)
|
2008-03-27 16:48:52 +01:00
|
|
|
..........................
|
2008-01-08 16:33:22 +01:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2008-03-27 16:48:52 +01:00
|
|
|
The *awesomerc* file contains configuration informations for *awesome*. It can
|
2008-01-08 16:33:22 +01:00
|
|
|
be used to configure the behaviour and look of awesome in a variety of ways.
|
|
|
|
|
|
|
|
It is read at startup.
|
2007-12-15 05:08:44 +01:00
|
|
|
|
2008-03-13 11:49:28 +01:00
|
|
|
OPTIONS
|
|
|
|
--------
|
2008-03-27 16:48:52 +01:00
|
|
|
*awesomerc* contains 5 global sections: *screen*, *rules*, *keys*, *mouse* and *menu* which
|
2008-03-13 13:09:19 +01:00
|
|
|
are described here.
|
|
|
|
|
2008-03-27 16:48:52 +01:00
|
|
|
All this sections contain options which may be string, integer, float, or even sections again.
|
|
|
|
|
|
|
|
include::optsdocgen.txt[]
|
2008-03-13 11:49:28 +01:00
|
|
|
|
2007-12-15 07:42:18 +01:00
|
|
|
UICB FUNCTIONS
|
|
|
|
--------------
|
2007-12-15 05:08:44 +01:00
|
|
|
|
2008-01-08 16:33:22 +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.
|
2007-12-15 05:08:44 +01:00
|
|
|
|
2008-03-27 15:00:46 +01:00
|
|
|
include::uicbdocgen.txt[]
|
2007-12-15 05:08:44 +01:00
|
|
|
|
2008-01-08 16:33:22 +01:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2008-03-27 16:48:52 +01:00
|
|
|
More examples are available on awesome's wiki:
|
|
|
|
http://awesome.naquadah.org/wiki/
|
2008-01-08 16:33:22 +01:00
|
|
|
|
2008-03-09 23:28:56 +01:00
|
|
|
Simple textbox example
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
..............................................
|
|
|
|
1. Add an include directive into ~/.awesomerc
|
|
|
|
|
2008-03-27 16:48:52 +01:00
|
|
|
screen 0 { include(~/.awesome/bottom-status-bar) }
|
2008-03-09 23:28:56 +01:00
|
|
|
|
|
|
|
2. Create ~/.awesome/bottom-status-bar
|
|
|
|
|
2008-03-12 07:10:56 +01:00
|
|
|
statusbar "bottom"
|
|
|
|
{
|
2008-03-09 23:28:56 +01:00
|
|
|
position = "bottom"
|
2008-03-12 07:10:56 +01:00
|
|
|
textbox "clock" { }
|
2008-03-09 23:28:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
3. Check the configuration file for errors
|
|
|
|
|
|
|
|
$ awesome -k
|
|
|
|
Configuration file OK.
|
|
|
|
|
|
|
|
Note: If you see anything other than "Configuration file OK." you have a
|
|
|
|
typo somewhere.
|
|
|
|
|
|
|
|
4. Create ~/bin/awesome-clock
|
|
|
|
|
2008-03-12 07:10:56 +01:00
|
|
|
#!/bin/sh
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
echo "0 widget_tell clock text `date`"
|
2008-03-13 00:57:13 +01:00
|
|
|
echo "" # an empty line flushes data inside awesome
|
2008-03-12 07:10:56 +01:00
|
|
|
sleep 1
|
|
|
|
done | awesome-client
|
2008-03-09 23:28:56 +01:00
|
|
|
|
|
|
|
Note: What we're saying is "awesome-client, tell widget 'clock' to set
|
2008-03-12 07:10:56 +01:00
|
|
|
it's 'text' property to date's output".
|
2008-03-09 23:28:56 +01:00
|
|
|
|
|
|
|
5. Make your ~/bin/awesome-clock executable
|
|
|
|
|
|
|
|
$ chmod a+x ~/bin/awesome-clock
|
|
|
|
|
|
|
|
6. Modify ~/.xinitrc
|
|
|
|
|
|
|
|
~/bin/awesome-clock &
|
|
|
|
exec awesome
|
|
|
|
|
|
|
|
7. Restart awesome
|
|
|
|
|
|
|
|
8. If your didn't get what you were expecting, take a look at
|
2008-03-12 07:10:56 +01:00
|
|
|
~/.xsession-errors or the terminal where X got started.
|
2008-03-09 23:28:56 +01:00
|
|
|
..............................................
|
|
|
|
|
2008-03-13 00:57:13 +01:00
|
|
|
Simple progressbar example
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
..............................................
|
|
|
|
|
|
|
|
1. Add an include directive into ~/.awesomerc
|
|
|
|
|
2008-03-27 16:48:52 +01:00
|
|
|
screen 0 { include(~/.awesome/bottom-status-bar) }
|
2008-03-13 00:57:13 +01:00
|
|
|
|
|
|
|
2. Create ~/.awesome/bottom-status-bar
|
|
|
|
|
|
|
|
progressbar diskusage
|
|
|
|
{
|
|
|
|
data "disk"
|
|
|
|
{
|
|
|
|
bordercolor = "#006e96"
|
|
|
|
bg = "#000000"
|
|
|
|
fg = "#ff0000"
|
|
|
|
fg_center = "#daaf0a"
|
|
|
|
fg_end = "#00ff00"
|
|
|
|
}
|
|
|
|
width = 100
|
|
|
|
align = "left"
|
|
|
|
}
|
|
|
|
|
|
|
|
3. Check the configuration file for errors
|
|
|
|
|
|
|
|
$ awesome -k
|
|
|
|
Configuration file OK.
|
|
|
|
|
|
|
|
Note: If you see anything other than "Configuration file OK," you have a
|
|
|
|
typo somewhere.
|
|
|
|
|
|
|
|
4. Create ~/bin/awesome-diskusage
|
|
|
|
|
|
|
|
#!/bin/sh
|
|
|
|
while true; do
|
|
|
|
usage = `df /dev/sda5 | awk '/\/dev\/sda5/ { print 100-$5 }'`
|
|
|
|
echo "0 widget_tell diskusage data disk ${usage}"
|
|
|
|
echo "" # an empty line flushes data inside awesome
|
|
|
|
sleep 600;
|
|
|
|
done | awesome-client
|
|
|
|
|
|
|
|
|
|
|
|
Note: What we're saying is "awesome-client, tell widget 'diskusage' to
|
|
|
|
set it's 'data' property named 'disk' to ${usage}."
|
|
|
|
|
|
|
|
5. Make ~/bin/awesome-diskusage executable
|
|
|
|
|
|
|
|
$ chmod a+x ~/bin/awesome-diskusage
|
|
|
|
|
|
|
|
6. Modify ~/.xinitrc
|
|
|
|
|
|
|
|
~/bin/awesome-diskusage &
|
|
|
|
exec awesome
|
|
|
|
|
|
|
|
7. Restart awesome
|
|
|
|
|
|
|
|
8. If your didn't get what you were expecting, take a look at
|
|
|
|
~/.xsession-errors or the terminal where X got started.
|
|
|
|
..............................................
|
|
|
|
|
2007-12-24 09:49:50 +01:00
|
|
|
|
2007-12-15 05:08:44 +01:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2008-03-27 16:48:52 +01:00
|
|
|
awesome(1) awesome-client(1) awesome-menu(1) awesome-message(1)
|
2007-12-15 05:08:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
2008-03-12 07:10:56 +01:00
|
|
|
This man page was written by Julien Danjou <julien@danjou.info>, Marco Candrian <mac@calmar.ws>
|
2008-03-13 00:57:13 +01:00
|
|
|
and Chris Ciulla <chris.ciulla@gmail.com> (Simple Examples).
|
2008-03-09 23:28:56 +01:00
|
|
|
|
2007-12-15 05:08:44 +01:00
|
|
|
WWW
|
|
|
|
---
|
|
|
|
http://awesome.naquadah.org
|