Difference between revisions of "Package:Awesome (Window Manager)"

(Started "Getting Started" section)
(Finished "Getting started" section)
Line 51: Line 51:
 
So, you should see a nice awesome background and a top bar which includes your tags on the left (from 1 to 9), the status bar (containing a clock widget) on the right and, on the very left, an icon representing the current layout.
 
So, you should see a nice awesome background and a top bar which includes your tags on the left (from 1 to 9), the status bar (containing a clock widget) on the right and, on the very left, an icon representing the current layout.
  
You can switch against tags by typing <code>Mod4 + [1..9]</code> or <code>Mod4 + Left/Right</code>. Where Mod4 is the "Super" key and [1..9] any digit from 1 to 9. Mod4 is the default modifier for awesome key bindings, yet you can configure another one (See [[#Configuration Configuration]]).
+
You can switch against tags by typing <code>Mod4 + [1..9]</code> or <code>Mod4 + Left/Right</code>. Where Mod4 is the "Super" key and [1..9] any digit from 1 to 9. Mod4 is the default modifier for awesome key bindings, yet you can configure another one (See [[#Configuration]]).
 +
 
 +
To run a program, hit <code>Mod4 + r</code>. You will be prompted for a command to run (on the top left corner, next to the tags list). Open some clients (3 or 4) and hit <code>Mod4 + Space</code>. This will switch to the next layout. Go ahead and try available layouts (notice the layout icon on the top right corner). You can also switch to the previous layout by hitting <code>Mod4 + Shift + Space</code>. To understand how each layout is arranged, you might want to add some more clients to the current tag. You can also toggle full screen for the current focused client with <code>Mod4 + f</code>.
 +
 
 +
Here is some other interesting key bindings:
 +
 
 +
* <code>Mod4 + h/l</code>: Resize clients (this will not work on some layouts)
 +
* <code>Mod4 + Ctrl + r</code>: Restart awesome (useful when you want to test the configuration file you just edited)
 +
* <code>Mod4 + Shift + q</code>: Quit awesome (note that this will not exit your display manager if ever you have one)
 +
 
 +
There's plenty of other key bindings. We will see them, how to change them and how to create your owns in the next section.
  
 
== Configuration ==
 
== Configuration ==

Revision as of 17:02, August 24, 2014

x11-wm/awesome


Source Repository:Gentoo Portage Tree
Homepage

Summary: A dynamic floating and tiling window manager.



Awesome (Window Manager)



About Awesome

Awesome is a highly configurable window manager distributed under GPL-2 license. It handles both tiling and floating layouts. You can go into a fine-grained customization to suit your needs with Lua scripting. As a window manager, awesome is an ideal choice if you plan to get rid of your mouse.

Vocabulary

Screen
A physical monitor plugged into your computer.
Client
A window.
Tag
A tag is something like a workspace or a desktop that you may find in other window managers. However, it is slightly more flexible as you can attach a client to multiple tags. Moreover, each screen has its own range of tags.
Layout
A layout is a way to arrange your clients in the current tag (eg. floating, horizontaly tiled, verticaly tiled, focused client full-screen, ...)
Widget
A widget is a box that can contain text, images or more advanced objects. It enables you to add pieces of information in the status bar (at the top-right of each screen) such as the time, the volume level or your battery load. You can also add widgets in the title bar of a client.

USE flags

Name Description
dbus Enables awesome to receive signals from dbus (eg. to trigger events on hotplug)
doc Includes extra HTML documentation (using doxygen)
gnome Enables you to use awesome as gnome's window manager (See. Quickly Setting up Awesome with Gnome)

Installation

Just emerge it:

# emerge -a awesome

Then you can add this line to your ~/.xinitrc:

~/.xinitrc
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session awesome

And run xinit to launch awesome. You can also configure a display manager instead, but this is not covered in this document.

Getting Started

So, you should see a nice awesome background and a top bar which includes your tags on the left (from 1 to 9), the status bar (containing a clock widget) on the right and, on the very left, an icon representing the current layout.

You can switch against tags by typing Mod4 + [1..9] or Mod4 + Left/Right. Where Mod4 is the "Super" key and [1..9] any digit from 1 to 9. Mod4 is the default modifier for awesome key bindings, yet you can configure another one (See #Configuration).

To run a program, hit Mod4 + r. You will be prompted for a command to run (on the top left corner, next to the tags list). Open some clients (3 or 4) and hit Mod4 + Space. This will switch to the next layout. Go ahead and try available layouts (notice the layout icon on the top right corner). You can also switch to the previous layout by hitting Mod4 + Shift + Space. To understand how each layout is arranged, you might want to add some more clients to the current tag. You can also toggle full screen for the current focused client with Mod4 + f.

Here is some other interesting key bindings:

  • Mod4 + h/l: Resize clients (this will not work on some layouts)
  • Mod4 + Ctrl + r: Restart awesome (useful when you want to test the configuration file you just edited)
  • Mod4 + Shift + q: Quit awesome (note that this will not exit your display manager if ever you have one)

There's plenty of other key bindings. We will see them, how to change them and how to create your owns in the next section.

Configuration

Awesome user configuration files are located in ~/.config/awesome/. For now, a single file called rc.lua should lie in this directory. It contains the default configuration (including widgets, tags, key bindings, ...). Note that if you don't know Lua, you can still proceed some customization. As far as I'm concerned, I only had to learn Lua basics when I started to create my own widgets.

Note

A quick introduction to awesome configuration will be described here soon.