summaryrefslogtreecommitdiff
path: root/awesome/rules.lua
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2024-09-17 19:17:49 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2024-09-17 19:17:49 -0500
commit36b45cb895303f4b8bdd99a737259740129e1fb9 (patch)
treec463be93caa340eb389a7b85ba155d2855b1e244 /awesome/rules.lua
parent3d98a08123c0c79641dd27516ef776747710ad4a (diff)
downloaddotconfig-36b45cb895303f4b8bdd99a737259740129e1fb9.tar.xz
dotconfig-36b45cb895303f4b8bdd99a737259740129e1fb9.zip
add current awesome configs
Diffstat (limited to 'awesome/rules.lua')
-rw-r--r--awesome/rules.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/awesome/rules.lua b/awesome/rules.lua
new file mode 100644
index 0000000..16ac074
--- /dev/null
+++ b/awesome/rules.lua
@@ -0,0 +1,40 @@
+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 = clientbuttons,
+ screen = awful.screen.preferred,
+ placement = awful.placement.no_overlap+awful.placement.no_offscreen,
+ prevent_kill = false
+ }
+ },
+ { 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,
+ 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
+ }
+ },
+}