added support for yay; updated monitors in hyprland; updated zshrc with pip3 alias and deno reference

This commit is contained in:
2026-07-07 14:36:55 -06:00
parent 300ca6b436
commit a3be54e03a
3 changed files with 50 additions and 2 deletions
+37
View File
@@ -0,0 +1,37 @@
yay.opt.devel = false
yay.opt.clean_after = true
yay.opt.sort_by = "votes"
yay.opt.diff_menu = true
yay.opt.edit_menu = true
yay.create_autocmd("UpgradeSelect", {
callback = function(event)
local exclude = {}
local cutoff = os.time() - (3 * 24 * 60 * 60)
for _, pkg in ipairs(event.data.upgrades) do
if pkg.repository == "aur" and pkg.last_modified >= cutoff then
yay.log.warn("Excluding recently modified:", pkg.name)
table.insert(exclude, pkg.name)
end
end
return { exclude = exclude, skip_menu = false }
end,
})
yay.create_autocmd("AURPreInstall", {
callback = function(event)
local blocked = {
"curl.*|.*sh",
"wget.*|.*bash",
"eval%(",
"rm %-rf /",
"chmod 777",
"base64 %-d",
}
for _, pattern in ipairs(blocked) do
if event.data.pkgbuild:match(pattern) then
yay.abort("[BLOCKED] Suspicious: " .. pattern)
end
end
end,
})