From a3be54e03a2a1faa41f17f7e0ede9cb527478eeb Mon Sep 17 00:00:00 2001 From: Samuel O'Neal Date: Tue, 7 Jul 2026 14:36:55 -0600 Subject: [PATCH] added support for yay; updated monitors in hyprland; updated zshrc with pip3 alias and deno reference --- hyprland/.config/hypr/monitors.conf | 7 ++++-- yay/.config/yay/init.lua | 37 +++++++++++++++++++++++++++++ zsh/.zshrc | 8 +++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 yay/.config/yay/init.lua diff --git a/hyprland/.config/hypr/monitors.conf b/hyprland/.config/hypr/monitors.conf index c22730b..ec70fe1 100644 --- a/hyprland/.config/hypr/monitors.conf +++ b/hyprland/.config/hypr/monitors.conf @@ -1,3 +1,6 @@ -# Generated by nwg-displays on 2026-05-08 at 23:25:33. Do not edit manually. +# Generated by nwg-displays on 2026-05-12 at 10:26:18. Do not edit manually. -monitor=desc:BOE 0x0BC9,2560x1600@165.0,0x0,1.25 +monitor=desc:BOE 0x0BC9,disable +monitor=desc:Viewteck Co. Ltd. GNV34DB,3440x1440@50.0,3795x1785,1.0 +monitor=desc:Dell Inc. DELL U2515HX GMDK46C4053L,2560x1440@59.95,5488x345,1.0 +monitor=desc:Dell Inc. DELL U2518D 0WG2J9C5B3WL,2560x1440@59.95,2928x345,1.0 diff --git a/yay/.config/yay/init.lua b/yay/.config/yay/init.lua new file mode 100644 index 0000000..fbe0c26 --- /dev/null +++ b/yay/.config/yay/init.lua @@ -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, +}) diff --git a/zsh/.zshrc b/zsh/.zshrc index dc78007..4f4d013 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,3 +1,5 @@ +# Add deno completions to search path +if [[ ":$FPATH:" != *":/home/sammieo/.zsh/completions:"* ]]; then export FPATH="/home/sammieo/.zsh/completions:$FPATH"; fi # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH @@ -106,6 +108,8 @@ source $ZSH/oh-my-zsh.sh # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +setopt aliases + # Local Bin export PATH=$HOME/.local/bin:$HOME/bin:$PATH @@ -129,3 +133,7 @@ export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock # Hosts Aliases export HOSTALIASES=$HOME/.config/hosts + +# Pip +alias pip=pip3 +. "/home/sammieo/.deno/env"