From 41ba7bc68b1386b3614f26a7edb17b36c214b313 Mon Sep 17 00:00:00 2001 From: elenapan Date: Sat, 22 Aug 2020 21:39:51 +0300 Subject: [PATCH] Add window rules for dragon-drag-and-drop utility --- config/awesome/rc.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 7968f5d..d25f47c 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -724,6 +724,29 @@ awful.rules.rules = { end }, + -- Dragon drag and drop utility + { + rule_any = { + class = { + "Dragon-drag-and-drop", + "Dragon", + }, + }, + properties = { + floating = true, + ontop = true, + sticky = true, + width = screen_width * 0.3, + }, + callback = function (c) + awful.placement.bottom_right(c, { + honor_padding = true, + honor_workarea = true, + margins = { bottom = beautiful.useless_gap * 2, right = beautiful.useless_gap * 2} + }) + end + }, + -- Magit window { rule = { instance = "Magit" },