summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-11-09 17:19:20 -0600
committerTim Keller <tjkeller.xyz>2024-11-09 17:19:20 -0600
commit1d048c3caf026ef7d8f1c35d55c59d42cdf5173e (patch)
tree00965c6970103e0c979881dc9e1f283c0fe9bdcc
parent5b7ad5a0c4e00ab4a18110fd77d0fcb5e3b253da (diff)
downloadawesome-1d048c3caf026ef7d8f1c35d55c59d42cdf5173e.tar.xz
awesome-1d048c3caf026ef7d8f1c35d55c59d42cdf5173e.zip
make placement centered and prevent windows from spawning maximized
-rw-r--r--rules.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/rules.lua b/rules.lua
index 8655541..0a5af26 100644
--- a/rules.lua
+++ b/rules.lua
@@ -12,17 +12,18 @@ awful.rules.rules = {
focus = awful.client.focus.filter,
raise = true,
keys = clientkeys,
- buttons = clientbuttons,
+ buttons = client_buttons,
screen = awful.screen.preferred,
- placement = awful.placement.no_overlap+awful.placement.no_offscreen,
+ placement = awful.placement.centered+awful.placement.no_offscreen,
prevent_kill = false,
+ maximized = false,
}
},
-- Warp cursor
{
rule_any = { class = {
"Chromium-browser",
- "Firefox",
+ "firefox",
"Firefox-esr",
"Gimp",
"KeePassXC",
@@ -48,9 +49,7 @@ awful.rules.rules = {
properties = {
screen = awful.screen.focused(),
floating = true,
- placement = awful.placement.centered,
- -- tags = awful.screen.focused().selected_tags, -- For some reason, this doesn't work
- callback = function(c) c:tags(awful.screen.focused().selected_tags) end -- But this does
+ sticky = true,
}
},
}