From dbb4bef242959221f958df1080e0613f891b972e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 5 Jan 2010 16:04:23 +1300 Subject: [PATCH] improve client rules --- .config/awesome/rc.lua | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index eb4fead..a240d54 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -484,21 +484,13 @@ awful.rules.rules = { { rule = { class = "URxvt" }, properties = { floating = false } }, { rule = { class = "URxvt", instance = "irc" }, - properties = { tag = screen.count()>1 and tags[3][1] or tags[1][4], switchtotag = true, floating = false } }, - { rule = { class = "Okular" }, - properties = { tag = tags[1][7], switchtotag = true, floating = false } }, - { rule = { class = "Evince" }, - properties = { tag = tags[1][7], switchtotag = true, floating = false } }, - { rule = { class = "OpenOffice.org 3.1" }, - properties = { tag = tags[1][7], switchtotag = true, floating = false } }, - { rule = { class = "Vinagre" }, - properties = { tag = tags[1][6], switchtotag = false, floating = false } }, + properties = { floating = false, tag = tags[screen.count()][screen.count() == 1 and 2 or 1], switchtotag = true } }, { rule = { class = "Iceweasel" }, - properties = { tag = tags[1][9], switchtotag = false, floating = false } }, + properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][9], switchtotag = false, floating = false } }, { rule = { class = "Iceweasel", instance = "Dialog" }, - properties = { floating = true } }, + properties = { floating = true }, callback = awful.placement.centered }, { rule = { class = "Jpilot" }, - properties = { tag = tags[1][8], switchtotag = false, floating = false } }, + properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][8], switchtotag = true, floating = false } }, } -- }}} -- 2.39.5