From: martin f. krafft Date: Tue, 11 Sep 2018 07:12:59 +0000 (+0200) Subject: fix positioning of certain modal apps X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/99b10c4aaf5650f616d7508d61e24c426027558d?ds=inline;hp=-c fix positioning of certain modal apps --- 99b10c4aaf5650f616d7508d61e24c426027558d diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 1d382ad..4041dba 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -978,7 +978,7 @@ awful.rules.rules = { { rule = { class = "URxvt" }, properties = { size_hints_honor = false, } }, - { rule = { instance = "irc" }, + { rule = { instance = "irc" }, callback = move_to_tag_by_name(nil, "irc"), }, { rule = { class = "Revolt" }, @@ -996,12 +996,23 @@ awful.rules.rules = { { rule_any = { class = { "MuPDF", "Wicd-client.py", + "Gxmessage", + "Pinentry" }}, properties = { floating = true, + maximized = false, focus = true, - placement = function(c) - float_client_in_the_middle_with_margins(c, 50, 25) - end, + placement = awful.placement.centered, + }, + }, + { rule_any = { instance = { + "tridactyl-edit", + "libreoffice" + }}, + properties = { floating = true, + maximized = false, + focus = true, + placement = awful.placement.centered, }, }, -- { rule_any = { class = {