From 99b10c4aaf5650f616d7508d61e24c426027558d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 11 Sep 2018 09:12:59 +0200 Subject: [PATCH 1/1] fix positioning of certain modal apps --- .config/awesome/rc.lua | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 = { -- 2.39.5