mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 19:54:21 +02:00
rules: switch to the appropriate tag for emacs, web and pidgin
This commit is contained in:
parent
3aef0ba974
commit
26d41c6970
1 changed files with 7 additions and 8 deletions
15
rc/rules.lua
15
rc/rules.lua
|
@ -10,21 +10,20 @@ awful.rules.rules = {
|
||||||
buttons = config.mouse.client }},
|
buttons = config.mouse.client }},
|
||||||
-- Emacs
|
-- Emacs
|
||||||
{ rule = { class = "Emacs" },
|
{ rule = { class = "Emacs" },
|
||||||
properties = { tag = config.tags.emacs }},
|
properties = { tag = config.tags.emacs,
|
||||||
|
switchtotag = true }},
|
||||||
-- Browser stuff
|
-- Browser stuff
|
||||||
{ rule = { name = "Iceweasel" },
|
{ rule_any = { name = { "Iceweasel", "Firefox", "Chromium" } },
|
||||||
properties = { tag = config.tags.www }},
|
properties = { tag = config.tags.www,
|
||||||
{ rule = { name = "Firefox" },
|
switchtotag = true }},
|
||||||
properties = { tag = config.tags.www }},
|
|
||||||
{ rule = { name = "Chromium" },
|
|
||||||
properties = { tag = config.tags.www }},
|
|
||||||
{ rule = { instance = "plugin-container" },
|
{ rule = { instance = "plugin-container" },
|
||||||
properties = { floating = true }}, -- Flash with Firefox
|
properties = { floating = true }}, -- Flash with Firefox
|
||||||
{ rule = { instance = "exe", class="Exe", instance="exe" },
|
{ rule = { instance = "exe", class="Exe", instance="exe" },
|
||||||
properties = { floating = true }}, -- Flash with Chromium
|
properties = { floating = true }}, -- Flash with Chromium
|
||||||
-- Pidgin
|
-- Pidgin
|
||||||
{ rule = { class = "Pidgin" },
|
{ rule = { class = "Pidgin" },
|
||||||
properties = { tag = config.tags.im }},
|
properties = { tag = config.tags.im,
|
||||||
|
switchtotag = true }},
|
||||||
{ rule = { class = "Pidgin" },
|
{ rule = { class = "Pidgin" },
|
||||||
except = { role = "buddy_list" }, -- buddy_list is the master
|
except = { role = "buddy_list" }, -- buddy_list is the master
|
||||||
properties = { }, callback = awful.client.setslave },
|
properties = { }, callback = awful.client.setslave },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue