From 8d7bb4e84f06957c0f5f4b882193e5d36a31af1c Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 21 Feb 2023 13:15:46 -0600 Subject: resize scratchpads and spawn in center; spawn windows as master by default --- awesome/rc.lua | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'awesome') diff --git a/awesome/rc.lua b/awesome/rc.lua index 5eaae53..69c2636 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -77,7 +77,7 @@ local inertmode = false -- Spawn windows at bottom of stack -local spawnatbottom = true +local spawnatbottom = false -- Default modkey. @@ -126,7 +126,7 @@ function terminal_sp_cmd (spc, cmd) cflag = "-c" gflag = "-g" xflag = "-e" - geo = "100x30" + geo = "150x45" elseif terminal == "alacritty" then cflag = "--class" gflag = false @@ -762,15 +762,8 @@ awful.rules.rules = { } }, - -- Floating clients. { rule_any = { - instance = { - "DTA", -- Firefox addon DownThemAll. - "copyq", -- Includes session name in class. - "pinentry", - }, class = { - --"mpv", "sphtop", "spterm", "sppmxr", @@ -782,6 +775,24 @@ awful.rules.rules = { "sptodo", "sptrem", "qpwgraph", + "gcr-prompter" + } + }, + properties = { floating = true }, + callback = function(c) + awful.placement.centered(c,nil) + end + }, + + -- Floating clients. + { rule_any = { + instance = { + "DTA", -- Firefox addon DownThemAll. + "copyq", -- Includes session name in class. + "pinentry", + }, + class = { + --"mpv", "ProtonMail Bridge", "TheFiniteDemo", "Arandr", @@ -789,7 +800,7 @@ awful.rules.rules = { "Gpick", "Kruler", "MessageWin", -- kalarm. - "Sxiv", + -- "Sxiv", "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size. "Wpa_gui", "veromix", -- cgit v1.2.3