2012-07-07 00:29:14 +02:00
|
|
|
Vincent Bernat's awesome configuration
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
This is my [awesome](http://awesome.naquadah.org) configuration. It
|
|
|
|
does not exactly feature the same keybindings as the default
|
|
|
|
configuration. I don't recommend using it by you can pick anything you
|
|
|
|
need in it.
|
|
|
|
|
2014-02-17 18:40:17 +01:00
|
|
|
This configuration is for _awesome_ 3.4. I did not update to 3.5 yet.
|
|
|
|
|
2012-07-07 00:29:14 +02:00
|
|
|
I rely on machine hostname for some configuration parts (see
|
2012-07-07 00:58:34 +02:00
|
|
|
`rc/start.lua`) for the most important part.
|
|
|
|
|
|
|
|
Here some of the things you may be interested in:
|
|
|
|
|
|
|
|
- It is modular. I am using `config` as a table to pass different
|
|
|
|
things between "modules".
|
2012-07-15 17:02:57 +02:00
|
|
|
|
|
|
|
- In `rc/xrun.lua`, there is a `xrun` function which runs a program
|
2012-07-07 00:58:34 +02:00
|
|
|
only if it is not already running. Instead of relying on tools like
|
2012-07-15 17:02:57 +02:00
|
|
|
`ps`, it looks at the list of awesome clients and at the list of
|
|
|
|
connected clients with `xwininfo`. Seems reliable.
|
|
|
|
|
2012-07-07 00:58:34 +02:00
|
|
|
- I use a light transparency effect to tell if a window has the focus
|
2012-07-07 02:08:36 +02:00
|
|
|
or not. It needs a composite manager.
|
2012-07-15 17:02:57 +02:00
|
|
|
|
2012-07-07 00:58:34 +02:00
|
|
|
- I use a Python script `bin/build-wallpaper` to build the wallpaper
|
|
|
|
to be displayed. There is a random selection and it works with
|
|
|
|
multihead setup. It seems that classic tools are now able to change
|
|
|
|
the wallpaper per screen and therefore, the script may seem a bit
|
|
|
|
useless but I keep it.
|
2012-07-15 17:02:57 +02:00
|
|
|
|
2014-09-12 14:52:36 +02:00
|
|
|
- I am using `xss-lock` with `i3lock` as a screensaver. It relies on
|
|
|
|
standard X screensaver handling (and therefore is easy for
|
|
|
|
application to disable) and also supports systemd
|
|
|
|
inhibitors. Nothing fancy but I reuse the wallpaper built above. A
|
|
|
|
notification is sent 10 seconds before starting.
|
2012-07-15 17:02:57 +02:00
|
|
|
|
2012-07-07 11:35:39 +02:00
|
|
|
- In `rc/apparance.lua`, you may be interested by the way I configure
|
2012-07-07 00:58:34 +02:00
|
|
|
GTK2 and GTK3 to have an unified look. It works and it does not
|
|
|
|
need `gnome-control-center`.
|
2012-07-15 17:02:57 +02:00
|
|
|
|
|
|
|
- I have rebuilt my own implementation of the Quake console in
|
|
|
|
`lib/quake.lua`. The common ones didn't like when awesome was
|
|
|
|
restarted.
|
|
|
|
|
|
|
|
- I am using notifications when changing volume or brightness. I am
|
|
|
|
also using notifications to change xrandr setup. This is pretty
|
2012-07-20 22:23:41 +02:00
|
|
|
cool.
|
2012-07-15 17:02:57 +02:00
|
|
|
|
|
|
|
- Keybindings are "autodocumented". See `lib/keydoc.lua` to see how
|
|
|
|
this works. The list of key bindings can be accessed with Mod4 +
|
|
|
|
F1.
|
2012-07-15 17:10:40 +02:00
|
|
|
|
|
|
|
- On the debug front, I am quite happy with `dbg()` in
|
|
|
|
`rc/debug.lua`.
|
2012-07-15 17:02:57 +02:00
|
|
|
|
|
|
|
Things in `lib/` are meant to be reused. I am using my own `loadrc()`
|
|
|
|
function to load modules and therefore, I prefix my modules with
|
2012-07-15 22:25:48 +02:00
|
|
|
`vbe/`. Before reusing a module, you may want to change this. Another
|
|
|
|
way to load them is to use:
|
|
|
|
|
|
|
|
require("lib/quake")
|
|
|
|
local quake = package.loaded["vbe/quake"]
|