You are not logged in.
Hello,
I installed awesome-wm 3.5.1 and I would like to be able to autostart some programs in specific tabs (like opening a terminal and other things in the "main" tab, a browser in the "web" tab, an editor and a terminal in the "dev" tab and so on..).
I tried using rules in rc.lua but I want the programs I manually start to be placed normally in the current tab and also they should not mess up when I hit the "restart" button of Awesome WM.
How can I do this?
Thanks.
Last edited by stkts (2013-12-09 13:01:26)
Offline
I don't really think you are going to get what you want easily but still I have programs that open on certain tabs (check my dot files for configs)
You may be able to get that kind of behaviour from a script wrapper of some kind ...possibly.
Offline
I solved setting some rules like that:
...
{ rule = { instance = "hTerm" },
properties = { }, callback = function (c)
if not skipMovingHT then
awful.client.movetotag(tags[1][1], c)
skipMovingHT = true
end
end },
{ rule = { class = "Google-chrome-stable" },
properties = { }, callback = function (c)
if not skipMovingGC then
awful.client.movetotag(tags[1][2], c)
skipMovingGC = true
end
end },
{ rule = { class = "sublime-text" },
properties = { }, callback = function (c)
if not skipMovingST then
awful.client.movetotag(tags[1][3], c)
skipMovingST = true
end
end },
{ rule = { class = "Thunar" },
properties = { }, callback = function (c)
if not skipMovingTH then
awful.client.movetotag(tags[1][4], c)
skipMovingTH = true
end
end },
...And then to autostart programs:
awful.util.spawn_with_shell("xterm -name hTerm -e htop")
awful.util.spawn("google-chrome-stable")
awful.util.spawn("thunar")
awful.util.spawn("subl")In this way the rule will be applied only the first time a program is launched.
Source: https://bbs.archlinux.org/viewtopic.php … 9#p1041479
Offline