1 -- http://awesome.naquadah.org/wiki/Autostart#Simple_way
2 function run_once(prg,arg_string,pname,screen)
11 if not arg_string then
12 awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. "' || (" .. prg .. ")",screen)
14 awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. " ".. arg_string .."' || (" .. prg .. " " .. arg_string .. ")",screen)
18 --run_once("xscreensaver","-no-splash")
19 --run_once("pidgin",nil,nil,2)
20 --run_once("wicd-client",nil,"/usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py")
21 run_once("xmodmap", "~/.Xmodmap")