From ad6ceff3ffeaa35d15f0ccce9575d15651d3e940 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 3 Mar 2010 09:08:49 +0100 Subject: [PATCH] centred placement of dialogs --- .config/awesome/rc.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index c79e623..2781f76 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -482,7 +482,8 @@ awful.rules.rules = { focus = true, floating = true, keys = clientkeys, - buttons = clientbuttons } }, + buttons = clientbuttons }, + callback = awful.placement.centered }, { rule = { class = "URxvt" }, properties = { floating = false } }, { rule = { class = "URxvt", instance = "irc" }, @@ -490,7 +491,7 @@ awful.rules.rules = { { rule = { class = "Iceweasel" }, properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][9], switchtotag = false, floating = false } }, { rule = { class = "Iceweasel", instance = "Dialog" }, - properties = { floating = true }, callback = awful.placement.centered }, + properties = { floating = true } }, { rule = { class = "Jpilot" }, properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][8], switchtotag = true, floating = false } }, } -- 2.39.2