X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/819f8424e89d1fffed6311f3dfc6651438881053..8b4070b51e98191e73b51fc28c42b8a10e0d92dc:/awesome/autostart.lua diff --git a/awesome/autostart.lua b/awesome/autostart.lua index 8adfc70..bb58d7c 100644 --- a/awesome/autostart.lua +++ b/awesome/autostart.lua @@ -1,24 +1,8 @@ --- http://awesome.naquadah.org/wiki/Autostart#Simple_way -function run_once(prg,arg_string,pname,screen) - if not prg then - do return nil end - end +local utils = require("utils") - if not pname then - pname = prg - end - - if not arg_string then - awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. "' || (" .. prg .. ")",screen) - else - awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. " ".. arg_string .."' || (" .. prg .. " " .. arg_string .. ")",screen) - end -end - ---run_once("xscreensaver","-no-splash") ---run_once("pidgin",nil,nil,2) ---run_once("wicd-client",nil,"/usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py") -run_once("xmodmap", "~/.Xmodmap") -run_once("qupzilla") -run_once("quassel") -run_once("kopete") +utils.run_once("dwb") +utils.run_once("dwb", "-r social --name dwb-social", "dwb-social") +utils.run_once("urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png -e ncmpcpp", nil, "ncmpcpp") +utils.run_once("urxvtc -name weechat -icon ~/src/dotfiles/icons/im-irc.png -e weechat", nil, "weechat") +utils.run_once("urxvtc -name mutt -icon ~/src/dotfiles/icons/internet-mail.png -e mutt", nil, "mutt") +utils.run_once("dropboxd")