From: martin f. krafft Date: Tue, 17 Sep 2019 06:08:58 +0000 (+0200) Subject: special mutt handling for filing X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5ef4d22a9d2b9a3d0f8717bce2a9721e4357f447?ds=sidebyside;hp=-c;pf=etc special mutt handling for filing --- 5ef4d22a9d2b9a3d0f8717bce2a9721e4357f447 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