From 26d41c697010ed9dea83b0029bfbdf34afbc0322 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 10 Jul 2012 23:35:30 +0200 Subject: [PATCH] rules: switch to the appropriate tag for emacs, web and pidgin --- rc/rules.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rc/rules.lua b/rc/rules.lua index 56352ae..50996d7 100644 --- a/rc/rules.lua +++ b/rc/rules.lua @@ -10,21 +10,20 @@ awful.rules.rules = { buttons = config.mouse.client }}, -- Emacs { rule = { class = "Emacs" }, - properties = { tag = config.tags.emacs }}, + properties = { tag = config.tags.emacs, + switchtotag = true }}, -- Browser stuff - { rule = { name = "Iceweasel" }, - properties = { tag = config.tags.www }}, - { rule = { name = "Firefox" }, - properties = { tag = config.tags.www }}, - { rule = { name = "Chromium" }, - properties = { tag = config.tags.www }}, + { rule_any = { name = { "Iceweasel", "Firefox", "Chromium" } }, + properties = { tag = config.tags.www, + switchtotag = true }}, { rule = { instance = "plugin-container" }, properties = { floating = true }}, -- Flash with Firefox { rule = { instance = "exe", class="Exe", instance="exe" }, properties = { floating = true }}, -- Flash with Chromium -- Pidgin { rule = { class = "Pidgin" }, - properties = { tag = config.tags.im }}, + properties = { tag = config.tags.im, + switchtotag = true }}, { rule = { class = "Pidgin" }, except = { role = "buddy_list" }, -- buddy_list is the master properties = { }, callback = awful.client.setslave },