On Sat, Sep 10, 2011 at 12:56:13AM +0200, Xenia wrote: > [...] > I'm managing my autostart programs by changing my > /etc/xdg/awesome/rc.lua > as discribed in the wiki-article about the nm-applet [1]. > [...]
FWIW, it's generally a bad idea to edit that file directly, as it gets
overwritten on updates.
I'd either copy the file you edited to ~/.config/awesome/rc.lua and do
all further modifications there to make sure they don't disappear after
an update, or do the following if you don't want to have a complete copy
of the config (and if you want to benefit from the default config should
it ever change to adapt to new syntax for example):
$ mkdir -p ~/.config/awesome
$ cat > ~/.config/awesome <<EOF
dofile("/etc/xdg/awesome/rc.lua")
awful.util.spawn("gnome-terminal -e top")
Replacing the spawned command with the one you want of course. That way,
awesome first executes the default config (via dofile()) and then
handles the rest of your config, e.g. by spawning something in this
case.
--
Gregor Best
pgp68s6OI6j80.pgp
Description: PGP signature
