test-urgent.lua: Test "tag by name" rules
With this commit, the code added previously to awful.rules is now also tested. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
3f0483003c
commit
9efc5ca409
|
@ -35,7 +35,7 @@ local steps = {
|
||||||
tags[awful.screen.focused()][1]:view_only()
|
tags[awful.screen.focused()][1]:view_only()
|
||||||
|
|
||||||
runner.add_to_default_rules({ rule = { class = "XTerm" },
|
runner.add_to_default_rules({ rule = { class = "XTerm" },
|
||||||
properties = { tag = tags[awful.screen.focused()][2], focus = true } })
|
properties = { tag = "2", focus = true } })
|
||||||
|
|
||||||
awful.spawn("xterm")
|
awful.spawn("xterm")
|
||||||
end
|
end
|
||||||
|
@ -75,7 +75,7 @@ local steps = {
|
||||||
tags[awful.screen.focused()][1]:view_only()
|
tags[awful.screen.focused()][1]:view_only()
|
||||||
|
|
||||||
runner.add_to_default_rules({ rule = { class = "XTerm" },
|
runner.add_to_default_rules({ rule = { class = "XTerm" },
|
||||||
properties = { tag = tags[awful.screen.focused()][2], focus = true, switchtotag = true }})
|
properties = { tag = "2", focus = true, switchtotag = true }})
|
||||||
|
|
||||||
awful.spawn("xterm")
|
awful.spawn("xterm")
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ local steps = {
|
||||||
manage_cb_done = false
|
manage_cb_done = false
|
||||||
|
|
||||||
runner.add_to_default_rules({rule = { class = "XTerm" },
|
runner.add_to_default_rules({rule = { class = "XTerm" },
|
||||||
properties = { tag = tags[awful.screen.focused()][2], focus = false }})
|
properties = { tag = "2", focus = false }})
|
||||||
|
|
||||||
awful.spawn("xterm")
|
awful.spawn("xterm")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue