Extract more helpers

This commit is contained in:
David Heinemeier Hansson
2026-05-14 12:51:03 +02:00
parent 6840242c44
commit 84de3d3a2e
22 changed files with 90 additions and 106 deletions
+14
View File
@@ -65,3 +65,17 @@ end
function o.notify(message)
return "notify-send -u low " .. shell_quote(message)
end
function o.window(match, rules)
rules.match = rules.match or {}
if type(match) == "string" then
rules.match.class = match
else
for key, value in pairs(match) do
rules.match[key] = value
end
end
hl.window_rule(rules)
end