]> git.rmz.io Git - dotfiles.git/blob - awesome/autostart.lua
create rule for kmix
[dotfiles.git] / awesome / autostart.lua
1 -- http://awesome.naquadah.org/wiki/Autostart#Simple_way
2 function run_once(prg,arg_string,pname,screen)
3 if not prg then
4 do return nil end
5 end
6
7 if not pname then
8 pname = prg
9 end
10
11 if not arg_string then
12 awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. "' || (" .. prg .. ")",screen)
13 else
14 awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. " ".. arg_string .."' || (" .. prg .. " " .. arg_string .. ")",screen)
15 end
16 end
17
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")
22 run_once("qupzilla")
23 run_once("kopete")
24 run_once("quassel")
25 run_once("kontact")