]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/rc.lua
awesome: autostart applications from awesome
[dotfiles.git] / awesome / rc.lua
index 22ff0a4504de1ed4bdc8296ba556c816a27c82e5..6ce193595f7cb280d0c77da1f83ff7dc1099dce3 100644 (file)
@@ -55,5 +55,20 @@ require("rules")
 -- require("conky")
 require("signals")
 
--- Set keys
+-- Set keys {{{1
 root.keys(globalkeys)
+
+-- Autostart {{{1
+local utils = require("utils")
+-- This seems to not keep awesome as parent of these processes
+utils.spawn_terminal_once("ncmpcpp", { instance = "ncmpcpp"
+                                     , tag = mediatag
+                                     })
+utils.spawn_terminal_once("neomutt",
+                          { instance = "mutt" , tag = wwwtag })
+utils.spawn_terminal_once("weechat", { instance = "weechat"
+                                     , tag = imtag
+                                     , function (c) awful.client.setmaster(c) end
+                                     })
+-- can't get this to work propery, restarting awesowe will respawn a new qutebrowser
+awful.spawn.single_instance("qutebrowser", { instance = "qutebrowser", tag = wwwtag })