From 5ef4d22a9d2b9a3d0f8717bce2a9721e4357f447 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 17 Sep 2019 08:08:58 +0200 Subject: [PATCH 1/1] special mutt handling for filing --- .config/awesome/rc.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 2be8687..4aae8af 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -1016,8 +1016,17 @@ awful.rules.rules = { { rule = { class = "Thunderbird" }, callback = move_to_tag_by_name(nil, "cal"), }, + { rule = { instance = "mutt" }, + properties = { + new_tag = { + name = "mutt", + layout = awful.layout.suit.fair.horizontal, + volatile = true + }, + switchtotag = true, + }, + }, { rule_any = { class = { - "MuPDF", "Wicd-client.py", "Gxmessage", "Pinentry" @@ -1091,6 +1100,12 @@ client.connect_signal("manage", function (c) -- Set the windows at the slave, -- i.e. put it at the end of others instead of setting it master. -- if not awesome.startup then awful.client.setslave(c) end + if not awesome.startup then + local t = awful.screen.focused().selected_tag + if t.name == "xmutt" then + awful.client.setslave(c) + end + end if awesome.startup and not c.size_hints.user_position -- 2.39.5