]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/autostart.lua
weechat: add matrix plugin
[dotfiles.git] / awesome / autostart.lua
index a46fa81fef038b282e5fdebbbddf1080ad1e5cee..707d8b70098f186db548c950ffceefe941904ac1 100644 (file)
@@ -1,25 +1,7 @@
--- 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("kopete")
-run_once("quassel")
-run_once("kontact")
+utils.run_once("qutebrowser")
+utils.run_once("urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp",         nil, "ncmpcpp")
+utils.run_once("urxvtc -name mopidy  -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp -p 6601", nil, "ncmpcpp -p 6601")
+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")