From e5ad2c3cd4566fec0590b6be0b4d195ffd5c8066 Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Sun, 15 Jun 2025 22:32:50 -0500 Subject: autodetect doas in profile, fixed floating wibar (awesome), rules for im on awesome and auto center, fixed display detect in lfrc, backup script changes --- env/.config/awesome/rc.lua | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'env/.config/awesome') diff --git a/env/.config/awesome/rc.lua b/env/.config/awesome/rc.lua index 45472fc..c262908 100644 --- a/env/.config/awesome/rc.lua +++ b/env/.config/awesome/rc.lua @@ -261,7 +261,7 @@ awful.screen.connect_for_each_screen(function(screen) spacerbg.bg = beautiful.bg_normal screen.mywibox.bg = beautiful.wibar_background - screen.mywibox.ontop = true + screen.mywibox.ontop = false screen.mywibox.floating = false local mykeyboardlayout = wibox.widget.background(mykeyboardlayout) @@ -454,6 +454,14 @@ awful.rules.rules = { class = { "steam_app*", "vesktop", "Minecraft*" } }, properties = { border_width = 0 } + }, + + { + rule = { name = "im-emoji-picker" }, + properties = { + focusable = false, + focus = false, + } } -- Set Firefox to always map on the tag named "2" on screen 1. @@ -471,6 +479,25 @@ if screen[2] then ) end +client.connect_signal("manage", function(c) + if c.name == "im-emoji-picker" then + local focused = client.focus + if focused and focused ~= c then + -- Center on focused client + local geo = focused:geometry() + local c_geo = c:geometry() + + c:geometry({ + x = geo.x + (geo.width - c_geo.width) / 2, + y = geo.y + (geo.height - c_geo.height) / 2 + }) + else + -- Fallback: center on screen + awful.placement.centered(c, nil) + end + end +end) + -- {{{ Signals -- Signal function to execute when a new client appears. client.connect_signal("manage", function (c) -- cgit v1.3