local awful = require("awful") local beautiful = require("beautiful") -- Rules to apply to new clients (through the "manage" signal) awful.rules.rules = { -- All clients will match this rule { rule = { }, properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, raise = true, keys = clientkeys, buttons = client_buttons, screen = awful.screen.preferred, placement = awful.placement.centered+awful.placement.no_offscreen, prevent_kill = false, maximized = false, } }, -- Warp cursor { rule_any = { class = { "Chromium-browser", "firefox", "Firefox-esr", "Gimp", "KeePassXC", "Pcmanfm", }}, properties = { warp_cursor = true, } }, -- KeePassXC rules { rule = { class = "KeePassXC" }, -- except = { name = "Unlock Database - KeePassXC" }, -- Not needed properties = { new_tag = { name = "KeePassXC", layout = awful.layout.suit.max, volatile = true, }, -- callback = function(c) c.first_tag.icon = c.icon end } }, { rule_any = { name = { "Unlock Database - KeePassXC", "KeePassXC - Browser Access Request" } }, properties = { screen = awful.screen.focused(), floating = true, sticky = true, } }, }