dots

my dotfiles
git clone https://git.awy.one/dots
Log | Files | Refs | Submodules | README | LICENSE

commit ad72486a2b42c398ab66619af3418da8b3b54083
parent f1ced35f096163745a6fe071f5dc828b98ee634c
Author: awy <awy@awy.one>
Date:   Sun, 21 Dec 2025 03:55:08 +0300

updating

Diffstat:
M.local/bin/cron/checkup | 7++++++-
M.local/bin/statusbar/sb-pacpackages | 7++++++-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup @@ -1,11 +1,16 @@ #!/bin/sh # Syncs repositories and downloads updates, meant to be run as a cronjob. +pkill -RTMIN+8 ".*blocks|waybar" +touch /tmp/pacupgrade && pkill -RTMIN+8 ".*blocks|waybar" +trap 'rm -f "/tmp/pacupgrade"' EXIT INT TERM + doas pacman -Syyuw --noconfirm || notify-send "Error downloading updates. Check your internet connection, if pacman is already running, or run update manually to see errors." -pkill -RTMIN+8 "${STATUSBAR:-i3blocks}" +pkill -RTMIN+8 ".*blocks|waybar" if pacman -Qu | rg -v "\[ignored\]"; then notify-send "Repository Sync" "Updates available." + pkill -RTMIN+8 ".*blocks|waybar" fi diff --git a/.local/bin/statusbar/sb-pacpackages b/.local/bin/statusbar/sb-pacpackages @@ -2,8 +2,13 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e sb-popupgrade >/dev/null 2>&1 ;; -2) notify-send "$(/usr/bin/pacman -Qu)" ;; +3) notify-send "$(/usr/bin/pacman -Qu)" ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; esac +if [ -f /tmp/pacupgrade ]; then + echo "🔃" + exit 0 +fi + pacman -Qu | rg -Fcv "[ignored]" | sed "s/^//;s/^📦0$//g"