You are not logged in.
Pages: 1
I know this is two years old. I'm struggling with making things autostart. I tried Jnb's method of making a .Xsession file in ~. I noticed it in the Awesome's wiki as well. Unfortunately it doesn't work. I know I'm doing something wrong I just can't figure out what. Anyone fix this problem?
Offline
hi
Dis you try this way : https://awesome.naquadah.org/wiki/Autostart#Simple_way
here's the end of my rc.lua :
function run_once(prg,arg_string,screen)
if not prg then
do return nil end
end
if not arg_string then
awful.util.spawn_with_shell("pgrep -f -u $USER -x " .. prg .. " || (" .. prg .. ")",screen)
else
awful.util.spawn_with_shell("pgrep -f -u $USER -x " .. prg .. " || (" .. prg .. " " .. arg_string .. ")",screen)
end
end
run_once("iceweasel",nil,1)
run_once("gedit",nil,1)Offline
I use something very similar to wlourf's run_once code for autostarting apps (dropbox, nm-applet etc.)
If you don't care if the program starts everytime you reload awesome (for instance, running xmodmap) you can do:
os.execute("command to run &")IRC: PizzaAndWine Script bits: Incremental Backup | Sleep Timer
Offline
Aye ok. Looking back at the awesome autostart page I decided to use the
awful.util.spawn_with_shell("COMMAND1")
awful.util.spawn_with_shell("COMMAND2")and insert my commands in place of the 'COMMAND'. It works fine.
The Lua language is a little confusing to read and sort out although all in all it's easier to configure that dwm. I don't know any computer languages.
Thanks for your help and sorry anon about recycling a two year old thread. Thanks for the help there.
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.