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-01-08 16:33:22 +01:00
|
|
|
<item> [<argument>]
|
|
|
|
{
|
|
|
|
<option> = <value>
|
|
|
|
|
|
|
|
<item> [<argument>] { <option> = <value>, ... }
|
|
|
|
....
|
|
|
|
}
|
|
|
|
|
|
|
|
<option> = <value>
|
|
|
|
|
2008-02-29 09:55:39 +01:00
|
|
|
include(file.conf)
|
2008-01-08 16:33:22 +01:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The awesomerc file contains configuration informations for *awesome*. It can
|
|
|
|
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-13 13:09:19 +01:00
|
|
|
awesomerc contains 4 global sections: *screen*, *rules*, *keys* and *mouse* which
|
|
|
|
are described here.
|
|
|
|
|
|
|
|
screen
|
|
|
|
~~~~~~
|
|
|
|
This is the global section for a physical screen. It must have a title with screen number,
|
|
|
|
starting at 0. It contains several subsections, which are *general*, *tags*, *layouts*, *colors*,
|
|
|
|
*padding* and *statusbar*.
|
2008-03-13 11:49:28 +01:00
|
|
|
|
|
|
|
general
|
|
|
|
^^^^^^^
|
2008-03-14 12:44:07 +01:00
|
|
|
General is a section containing some general options for this screen.
|
2008-03-13 11:49:28 +01:00
|
|
|
|
|
|
|
border::
|
2008-03-14 12:44:07 +01:00
|
|
|
This defines the window borders size in pixel.
|
2008-03-13 11:49:28 +01:00
|
|
|
font::
|
|
|
|
This defines the general font used in awesome.
|
|
|
|
new_become_master::
|
2008-03-14 12:44:07 +01:00
|
|
|
If this is set to true, new windows will become the master window.
|
2008-03-13 11:49:28 +01:00
|
|
|
new_get_focus::
|
|
|
|
If this is set to true, new windows will get focus.
|
|
|
|
opacity_unfocused::
|
|
|
|
If this is set to true, non-focused windows will have this opacity.
|
2008-03-14 12:44:07 +01:00
|
|
|
This requires an external XComposite manager.
|
2008-03-13 11:49:28 +01:00
|
|
|
resize_hints::
|
|
|
|
If this is set to true, resize hints given by the window will be respected.
|
|
|
|
If this is set to false, window size will be forced.
|
|
|
|
If you dislike gaps between windows, you should try to set it to false.
|
|
|
|
sloppy_focus::
|
|
|
|
If this is set to true, focus will be set to the window under the mouse. If not,
|
|
|
|
you will have to click on a window to set it focused.
|
|
|
|
sloppy_focus_raise::
|
|
|
|
If this is set to true with sloppy_focus, when a window is focused with the mouse
|
|
|
|
it will be raised on top of the windows stack.
|
|
|
|
snap::
|
|
|
|
Snap windows to the screen border when it is this pixel away only from the border.
|
|
|
|
floating_placement::
|
|
|
|
Select the floating placement algorithm to use when placing window.
|
|
|
|
|
|
|
|
tags
|
|
|
|
^^^^
|
2008-03-13 13:09:19 +01:00
|
|
|
Tags is a section containing one or more tag sections, which defines a tag.
|
|
|
|
|
|
|
|
tag
|
|
|
|
+++
|
2008-03-14 12:44:07 +01:00
|
|
|
Tag is a section which contains several options defining a tag.
|
2008-03-13 13:09:19 +01:00
|
|
|
|
|
|
|
layout::
|
|
|
|
Layout is a name of an available layout which will be set by default on this tag.
|
|
|
|
mwfact::
|
|
|
|
Set the default master width factor for this tag.
|
|
|
|
ncol::
|
2008-03-14 12:44:07 +01:00
|
|
|
Set the default number of columns for non-master windows for this tag.
|
2008-03-13 13:09:19 +01:00
|
|
|
nmaster::
|
2008-03-14 12:44:07 +01:00
|
|
|
Set the default number of windows which will be treated as master for this tag.
|
2008-03-13 11:49:28 +01:00
|
|
|
|
|
|
|
layouts
|
|
|
|
^^^^^^^
|
2008-03-13 13:09:19 +01:00
|
|
|
Layouts is a section containing a layout list, where each layout is a layout section.
|
|
|
|
|
|
|
|
layout
|
|
|
|
++++++
|
|
|
|
Layout is a section which define a layout. It has a title which is the algorithm to use.
|
|
|
|
|
|
|
|
image::
|
|
|
|
Set the image path used to describe this layouts, useful in layoutinfo widget.
|
2008-03-13 11:49:28 +01:00
|
|
|
|
|
|
|
colors
|
|
|
|
^^^^^^
|
2008-03-13 17:57:38 +01:00
|
|
|
Colors is a section containing the colors parameters which is composed of a normal, focus and urgent
|
|
|
|
subsection each ones containing:
|
|
|
|
|
|
|
|
fg::
|
|
|
|
Set the foreground color.
|
|
|
|
bg::
|
|
|
|
Set the background color.
|
|
|
|
border::
|
|
|
|
Set the window's border color.
|
|
|
|
shadow::
|
|
|
|
Set the shadow color.
|
|
|
|
shadow_offset::
|
|
|
|
Set the shadow offset in pixel.
|
2008-03-13 11:49:28 +01:00
|
|
|
|
|
|
|
padding
|
|
|
|
^^^^^^^
|
2008-03-13 13:09:19 +01:00
|
|
|
Padding is a section containing screen padding parameters.
|
|
|
|
|
|
|
|
top::
|
|
|
|
Set the top padding in pixel.
|
|
|
|
bottom::
|
|
|
|
Set the bottom padding in pixel.
|
|
|
|
left::
|
|
|
|
Set the left padding in pixel.
|
|
|
|
right::
|
|
|
|
Set the right padding in pixel.
|
2008-03-13 11:49:28 +01:00
|
|
|
|
|
|
|
statusbar
|
|
|
|
^^^^^^^^^
|
2008-03-13 13:09:19 +01:00
|
|
|
Statusbar are sections containing statusbars parameters. Each statusbar section
|
|
|
|
must have a title which is the statusbar name. Each statusbar can have none or
|
|
|
|
several widgets (see WIDGETS section for more details) each one identified by its
|
|
|
|
name.
|
|
|
|
|
|
|
|
position::
|
|
|
|
Default statusbar position.
|
|
|
|
height::
|
|
|
|
Statusbar height. By default, is auto computed with font size.
|
|
|
|
width::
|
|
|
|
Statusbar width. By default, it will be whole screen.
|
|
|
|
|
|
|
|
rules
|
|
|
|
~~~~~
|
2008-03-14 12:44:07 +01:00
|
|
|
Rules is a section containing a rule list to automatically configure windows.
|
2008-03-13 13:09:19 +01:00
|
|
|
|
2008-03-14 12:44:07 +01:00
|
|
|
rule
|
|
|
|
^^^^
|
|
|
|
Rule are sections containing the auto-configuration options for one window.
|
|
|
|
|
|
|
|
name::
|
|
|
|
Set the window name for name matching as a regular expression.
|
|
|
|
xproperty_name::
|
|
|
|
Set the name of the XProperty for XProperty matching.
|
|
|
|
xproperty_value::
|
|
|
|
Set the regular expression to match against the named XProperty's value.
|
|
|
|
float::
|
|
|
|
Set the window to be floating. One of auto, true or false. Defaults to auto.
|
|
|
|
master::
|
|
|
|
Set the window to be the master. One of auto, true or false. Defaults to
|
|
|
|
auto.
|
|
|
|
tags::
|
|
|
|
Set the tags to be assigned to the window as a regular expression.
|
|
|
|
screen::
|
|
|
|
Set the screen the window should show up on.
|
|
|
|
icon::
|
|
|
|
Set the window's icon.
|
|
|
|
opacity::
|
|
|
|
Set the window's opacity.
|
2008-03-13 13:09:19 +01:00
|
|
|
|
|
|
|
keys
|
|
|
|
~~~~
|
2008-03-14 12:44:07 +01:00
|
|
|
Keys is the section to define your keybindings in. It may consist of multiple
|
|
|
|
key and keylist entries.
|
|
|
|
|
|
|
|
key
|
|
|
|
^^^
|
|
|
|
In a key section you define a single keybinding.
|
|
|
|
|
|
|
|
key::
|
|
|
|
The keysym you want to bind.
|
|
|
|
mod::
|
|
|
|
Modifiers that need to be pressed for this binding.
|
|
|
|
command::
|
|
|
|
The *uicb function* to call.
|
|
|
|
arg::
|
|
|
|
The argument to the *uicb function*, if needed.
|
|
|
|
|
|
|
|
keylist
|
|
|
|
^^^^^^^
|
|
|
|
In a keylist you can define multiple very similar keybindings at once. For
|
|
|
|
example you can define <Mod1>-{1..9} to switch the view to tag 1..9
|
|
|
|
respectively.
|
|
|
|
|
|
|
|
keylist::
|
|
|
|
The list of keysyms to bind.
|
|
|
|
modkey::
|
|
|
|
Modifiers that need to be pressed for these bindings.
|
|
|
|
command::
|
|
|
|
The *uicb function* to call.
|
|
|
|
arglist::
|
|
|
|
The list of arguments to the *uicb function*, if needed. *Must* match the
|
|
|
|
length of *keylist*.
|
2008-03-13 13:09:19 +01:00
|
|
|
|
|
|
|
mouse
|
|
|
|
~~~~~
|
2008-03-14 12:44:07 +01:00
|
|
|
In the mouse section you may define mouse button bindings for the root and
|
|
|
|
client windows.
|
|
|
|
|
|
|
|
client
|
|
|
|
^^^^^^
|
|
|
|
Defines a mouse button binding for events on clients.
|
|
|
|
|
|
|
|
button::
|
|
|
|
The mouse button you want to bind.
|
|
|
|
modkey::
|
|
|
|
Modifiers that need to be pressed for this binding.
|
|
|
|
command::
|
|
|
|
The *uicb function* to call.
|
|
|
|
arg::
|
|
|
|
The argument to the *uicb function*, if needed.
|
|
|
|
|
|
|
|
root
|
|
|
|
^^^^
|
|
|
|
Defines a mouse button binding for events on the root window.
|
|
|
|
|
|
|
|
button::
|
|
|
|
The mouse button you want to bind.
|
|
|
|
modkey::
|
|
|
|
Modifiers that need to be pressed for this binding.
|
|
|
|
command::
|
|
|
|
The *uicb function* to call.
|
|
|
|
arg::
|
|
|
|
The argument to the *uicb function*, if needed.
|
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
|
|
|
|
|
|
|
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
|
|
|
*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.
|
2008-02-06 08:49:31 +01:00
|
|
|
*client_setscratch*::
|
|
|
|
Set or unset client as being the scratch window.
|
|
|
|
*client_togglescratch*::
|
|
|
|
Toggle scratch window.
|
2007-12-15 05:08:44 +01:00
|
|
|
|
|
|
|
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.
|
2008-01-16 07:57:32 +01:00
|
|
|
*tag_viewprev*::
|
2007-12-15 05:08:44 +01:00
|
|
|
Show windows tagged with previous tag in list.
|
2008-01-16 07:59:07 +01:00
|
|
|
*tag_prev_selected*::
|
2007-12-15 05:08:44 +01:00
|
|
|
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.
|
2008-01-11 11:46:56 +01:00
|
|
|
*tag_create* name::
|
|
|
|
Create a new tag with that name.
|
2007-12-15 05:08:44 +01:00
|
|
|
|
2008-01-15 16:32:32 +01:00
|
|
|
Focus
|
|
|
|
~~~~~
|
|
|
|
*focus_client_byname* string::
|
|
|
|
Give client focus by its name.
|
|
|
|
*focus_history* negative number::
|
|
|
|
Focus the client that had focused nth focus switch earlier.
|
|
|
|
|
2007-12-15 05:08:44 +01:00
|
|
|
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).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
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).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
2007-12-30 15:38:23 +01:00
|
|
|
|
2008-02-06 20:13:41 +01:00
|
|
|
focusicon
|
2007-12-30 15:38:23 +01:00
|
|
|
~~~~~~~~~
|
|
|
|
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).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
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.
|
2008-03-13 17:57:38 +01:00
|
|
|
*colors*::
|
|
|
|
Colors section with a focus and normal subsection.
|
2008-02-08 09:58:36 +01:00
|
|
|
*text_align*::
|
2008-01-03 16:13:08 +01:00
|
|
|
Text alignement.
|
2008-01-03 19:21:36 +01:00
|
|
|
*show_icons*::
|
|
|
|
Show applications icons.
|
2008-02-06 20:03:18 +01:00
|
|
|
*show*::
|
|
|
|
Show all windows from all tags, tags clients only or focused client.
|
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.
|
|
|
|
*width*::
|
|
|
|
Set width.
|
2008-03-13 17:57:38 +01:00
|
|
|
*colors*::
|
|
|
|
Colors section with a focus and normal subsection.
|
2007-12-30 15:38:23 +01:00
|
|
|
*text*::
|
|
|
|
Text to change.
|
2008-02-08 09:58:36 +01:00
|
|
|
*text_align*::
|
2008-01-03 16:13:08 +01:00
|
|
|
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).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
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).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
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
|
|
|
|
2008-02-17 07:52:14 +01:00
|
|
|
*data*::
|
|
|
|
Draws a bar for each data section;
|
2008-03-02 13:16:42 +01:00
|
|
|
Options: reverse, fg, fg_center, fg_end, bg, bordercolor.
|
|
|
|
*reverse*::
|
|
|
|
Reverse/mirror the bar.
|
2007-12-30 15:38:23 +01:00
|
|
|
*fg*::
|
|
|
|
Foreground color.
|
2008-02-06 01:07:27 +01:00
|
|
|
*fg_center*::
|
|
|
|
Foreground color in the center of the bar (as gradient).
|
|
|
|
*fg_end*::
|
|
|
|
Foreground color at the end of a bar (as gradient).
|
2007-12-30 15:38:23 +01:00
|
|
|
*bg*::
|
|
|
|
Background color.
|
2008-01-07 04:52:03 +01:00
|
|
|
*bordercolor*::
|
|
|
|
Border color.
|
2008-01-25 21:38:59 +01:00
|
|
|
*mouse*::
|
|
|
|
Set mouse bindings.
|
|
|
|
*width*::
|
|
|
|
Set width.
|
|
|
|
*height*::
|
|
|
|
Set height (i.e. 0.9 = 90%)
|
2008-01-29 08:44:16 +01:00
|
|
|
*padding*::
|
|
|
|
Empty space on both sides.
|
2008-03-03 16:34:12 +01:00
|
|
|
*vertical*::
|
|
|
|
Draw the bar(s) vertically/standing up.
|
2008-01-07 04:52:03 +01:00
|
|
|
*x*::
|
|
|
|
Horizontal offset (auto-alignment if not set).
|
|
|
|
*y*::
|
|
|
|
Vertical offset (auto-alignment if not set).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
2008-01-07 04:52:03 +01:00
|
|
|
|
|
|
|
graph
|
|
|
|
~~~~~
|
|
|
|
This widget shows a graph.
|
|
|
|
|
2008-01-25 21:38:59 +01:00
|
|
|
*data*::
|
2008-02-17 07:52:14 +01:00
|
|
|
Defines a data-stream section;
|
|
|
|
Options: max, scale, fg, fg_center, fg_end and style.
|
2008-01-25 21:38:59 +01:00
|
|
|
*max*::
|
|
|
|
This value prints a full graph (default = 100)
|
2008-01-07 15:17:55 +01:00
|
|
|
*scale*::
|
|
|
|
Re-scales when input > max (see below).
|
2008-01-25 21:38:59 +01:00
|
|
|
*fg*::
|
|
|
|
Foreground color.
|
2008-02-06 01:07:27 +01:00
|
|
|
*fg_center*::
|
|
|
|
Foreground color in the center of the bar (as gradient).
|
2008-02-05 14:59:55 +01:00
|
|
|
*fg_end*::
|
2008-02-06 01:07:27 +01:00
|
|
|
Foreground color at the end of a bar (as gradient).
|
2008-03-09 23:49:03 +01:00
|
|
|
*vertical_gradient*
|
|
|
|
If true, create a gradient from 0 > full instead of new > old values
|
2008-01-25 21:38:59 +01:00
|
|
|
*style*::
|
|
|
|
bottom (fills to bottom with fg), top, or line.
|
2008-01-07 04:52:03 +01:00
|
|
|
*mouse*::
|
|
|
|
Set mouse bindings.
|
|
|
|
*width*::
|
|
|
|
Set width.
|
|
|
|
*height*::
|
|
|
|
Set height (i.e. 0.9 = 90%)
|
|
|
|
*padding_left*::
|
|
|
|
Empty space on the left.
|
|
|
|
*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).
|
2008-02-08 10:59:55 +01:00
|
|
|
*align*::
|
|
|
|
Widget alignment.
|
2007-12-30 15:38:23 +01:00
|
|
|
|
2008-03-13 11:49:28 +01:00
|
|
|
FORMAT
|
|
|
|
------
|
|
|
|
Here is the global configuration file format, with a list of options
|
|
|
|
and possible values.
|
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-20 17:55:09 +01:00
|
|
|
or a keycode beginning with #
|
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
|
2008-03-13 17:57:38 +01:00
|
|
|
<color section> -> a section with fg, bg, border, shadow and shadow_offset options.
|
2008-01-03 06:51:09 +01:00
|
|
|
|
|
|
|
[MULTI] means, you can use an item multiple times.
|
|
|
|
|
2008-01-08 16:33:22 +01:00
|
|
|
|
2008-01-03 06:51:09 +01:00
|
|
|
screen <integer> [MULTI]
|
2008-01-02 07:18:39 +01:00
|
|
|
{
|
|
|
|
general
|
|
|
|
{
|
2008-01-25 21:38:59 +01:00
|
|
|
border = <integer>
|
|
|
|
font = <font>
|
2008-01-05 13:24:15 +01:00
|
|
|
new_become_master = <boolean>
|
2008-01-07 18:57:25 +01:00
|
|
|
new_get_focus = <boolean>
|
2008-02-04 14:54:50 +01:00
|
|
|
opacity_unfocused = <integer>
|
2008-01-25 21:38:59 +01:00
|
|
|
resize_hints = <boolean>
|
2008-01-05 13:24:15 +01:00
|
|
|
sloppy_focus = <boolean>
|
2008-01-25 23:27:32 +01:00
|
|
|
sloppy_focus_raise = <boolean>
|
2008-01-25 21:38:59 +01:00
|
|
|
snap = <integer>
|
2008-02-13 18:14:34 +01:00
|
|
|
floating_placement = <{smart,under_mouse}>
|
2008-03-08 10:48:15 +01:00
|
|
|
mwfact_lower_limit = <float>
|
|
|
|
mwfact_upper_limit = <float>
|
2008-01-05 13:24:15 +01:00
|
|
|
}
|
|
|
|
tags
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
2008-01-05 13:24:15 +01:00
|
|
|
tag <identifier> [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
2008-01-05 13:24:15 +01:00
|
|
|
layout = <{dwindle,floating,max,
|
2008-01-17 17:04:40 +01:00
|
|
|
spiral,tile,tileleft,tilebottom,tiletop}>
|
2008-01-25 21:38:59 +01:00
|
|
|
mwfact = <float>
|
2008-01-05 13:24:15 +01:00
|
|
|
nmaster = <integer>
|
2008-03-13 13:09:19 +01:00
|
|
|
ncol = <integer>
|
2008-01-05 13:24:15 +01:00
|
|
|
}
|
2008-01-02 07:18:39 +01:00
|
|
|
}
|
|
|
|
layouts
|
|
|
|
{
|
2008-01-03 06:51:09 +01:00
|
|
|
layout <{dwindle,floating,max,
|
2008-01-14 00:37:46 +01:00
|
|
|
spiral,tile,tileleft,
|
2008-01-17 17:04:40 +01:00
|
|
|
tilebottom,tiletop}> { image = <image> } [MULTI]
|
2008-01-05 13:24:15 +01:00
|
|
|
}
|
|
|
|
colors
|
|
|
|
{
|
2008-03-13 17:57:38 +01:00
|
|
|
normal { <color section> }
|
|
|
|
focus { <color section> }
|
|
|
|
urgent { <color section> }
|
2008-01-02 07:18:39 +01:00
|
|
|
}
|
2008-01-25 21:38:59 +01:00
|
|
|
padding
|
|
|
|
{
|
|
|
|
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-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-03 16:13:08 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
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-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-03 16:13:08 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-05 13:24:15 +01:00
|
|
|
command = <uicb-cmd> arg = <uicb-arg>
|
2008-01-03 16:13:08 +01:00
|
|
|
}
|
2008-01-05 13:24:15 +01:00
|
|
|
}
|
2008-02-06 20:13:41 +01:00
|
|
|
focusicon <identifier>
|
2008-01-02 07:18:39 +01:00
|
|
|
{
|
2008-01-05 13:24:15 +01:00
|
|
|
x = <integer> y = <integer>
|
2008-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-03 06:51:09 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-05 13:24:15 +01:00
|
|
|
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
|
|
|
tasklist <identifier>
|
2008-01-03 16:13:08 +01:00
|
|
|
{
|
2008-03-13 17:57:38 +01:00
|
|
|
colors
|
|
|
|
{
|
|
|
|
normal { <color section> }
|
|
|
|
focus { <color section> }
|
|
|
|
}
|
2008-01-05 13:24:15 +01:00
|
|
|
font = <font>
|
|
|
|
show_icons = <boolean>
|
2008-02-06 20:03:18 +01:00
|
|
|
show = <{all,tags,focus}>
|
2008-02-08 10:59:55 +01:00
|
|
|
text_align = <{center,left,right}>
|
2008-01-05 13:24:15 +01:00
|
|
|
x = <integer> y = <integer>
|
2008-01-03 16:13:08 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
2008-01-05 13:24:15 +01:00
|
|
|
command = <uicb-cmd> arg = <uicb-arg>
|
2008-01-25 21:38:59 +01:00
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-03 16:13:08 +01:00
|
|
|
}
|
2008-01-25 21:38:59 +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>
|
2008-01-25 21:38:59 +01:00
|
|
|
bg = <color>
|
|
|
|
fg = <color>
|
2008-01-05 13:24:15 +01:00
|
|
|
font = <font>
|
|
|
|
width = <integer>
|
2008-02-08 10:59:55 +01:00
|
|
|
text_align = <{center,left,right}>
|
2008-01-05 13:24:15 +01:00
|
|
|
x = <integer> y = <integer>
|
2008-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-03 06:51:09 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-05 13:24:15 +01:00
|
|
|
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-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-03 06:51:09 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-05 13:24:15 +01:00
|
|
|
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-02-17 07:52:14 +01:00
|
|
|
data [MULTI]
|
2008-02-05 12:03:05 +01:00
|
|
|
{
|
2008-03-02 13:16:42 +01:00
|
|
|
reverse = <boolean> bg = <color> bordercolor = <color>
|
2008-02-06 01:07:27 +01:00
|
|
|
fg = <color> fg_center = <color> fg_end = <color>
|
2008-02-05 12:03:05 +01:00
|
|
|
}
|
2008-01-25 21:38:59 +01:00
|
|
|
gap = <integer>
|
2008-01-05 13:24:15 +01:00
|
|
|
width = <integer>
|
2008-01-25 21:38:59 +01:00
|
|
|
height = <float>
|
2008-01-29 08:44:16 +01:00
|
|
|
padding = <integer>
|
2008-03-03 16:34:12 +01:00
|
|
|
vertical = <boolean>
|
2008-01-07 04:52:03 +01:00
|
|
|
x = <integer> y = <integer>
|
2008-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-07 04:52:03 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-07 04:52:03 +01:00
|
|
|
command = <uicb-cmd> arg = <uicb-arg>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
graph <identifier> [MULTI]
|
|
|
|
{
|
2008-01-25 21:38:59 +01:00
|
|
|
data [MULTI]
|
|
|
|
{
|
2008-02-05 14:59:55 +01:00
|
|
|
scale = <boolean> max = <float> style = <{bottom, top, line}>
|
2008-02-06 01:07:27 +01:00
|
|
|
fg = <color> fg_center = <color> fg_end = <color>
|
2008-03-09 23:49:03 +01:00
|
|
|
vertical_gradient = <boolean>
|
2008-01-25 21:38:59 +01:00
|
|
|
}
|
2008-01-07 04:52:03 +01:00
|
|
|
width = <integer>
|
|
|
|
height = <float>
|
|
|
|
padding_left = <integer>
|
|
|
|
bg = <color>
|
|
|
|
bordercolor = <color>
|
2008-01-05 13:24:15 +01:00
|
|
|
x = <integer> y = <integer>
|
2008-02-08 10:59:55 +01:00
|
|
|
align = <{auto,right,left}>
|
2008-01-03 06:51:09 +01:00
|
|
|
mouse [MULTI]
|
2008-01-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
button = <integer> modkey = {<mod>, ...}
|
2008-01-05 13:24:15 +01:00
|
|
|
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-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
rule [MULTI]
|
|
|
|
{
|
|
|
|
name = <regex>
|
2008-01-05 13:24:15 +01:00
|
|
|
xproperty_name = <string>
|
|
|
|
xproperty_value = <regex>
|
2008-01-07 00:36:45 +01:00
|
|
|
float = <{auto,true,false}>
|
2008-02-05 17:31:37 +01:00
|
|
|
master = <{auto,true,false}>
|
2008-01-05 13:24:15 +01:00
|
|
|
tags = <regex>
|
2008-01-25 21:38:59 +01:00
|
|
|
screen = <integer>
|
|
|
|
icon = <image>
|
2008-01-25 23:48:24 +01:00
|
|
|
opacity = <float>
|
2008-01-02 07:18:39 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
keys
|
|
|
|
{
|
2008-01-03 06:51:09 +01:00
|
|
|
key [MULTI]
|
2008-01-25 21:38:59 +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-25 21:38:59 +01:00
|
|
|
{
|
|
|
|
keylist = {<key>, ...}
|
|
|
|
modkey = {<mod>, ...}
|
|
|
|
command = <uicb-cmd>
|
|
|
|
arglist = {<uicb-arg>, ...}
|
2008-01-02 07:18:39 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
mouse
|
|
|
|
{
|
2008-01-25 21:38:59 +01:00
|
|
|
client [MULTI]
|
2008-01-02 09:57:26 +01:00
|
|
|
{
|
2008-01-25 21:38:59 +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-25 21:38:59 +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
|
|
|
|
2008-01-08 16:33:22 +01:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
Check awesome's wiki: http://awesome.naquadah.org/wiki/
|
|
|
|
|
2008-03-09 23:28:56 +01:00
|
|
|
Simple textbox example
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
..............................................
|
|
|
|
1. Add an include directive into ~/.awesomerc
|
|
|
|
|
|
|
|
screen 0 {
|
|
|
|
include(~/.awesome/bottom-status-bar)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
screen 0
|
|
|
|
{
|
|
|
|
include(~/.awesome/bottom-status-bar)
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
--------
|
|
|
|
awesome(1) awesome-client(1)
|
|
|
|
|
|
|
|
|
|
|
|
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
|