From 896c311feb10e947c727a888308dbc7eb71d1ec2 Mon Sep 17 00:00:00 2001 From: NPScript Date: Sat, 9 Apr 2022 21:22:20 +0200 Subject: init commit --- .local/bin/updates | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .local/bin/updates (limited to '.local/bin/updates') diff --git a/.local/bin/updates b/.local/bin/updates new file mode 100755 index 0000000..b3acb48 --- /dev/null +++ b/.local/bin/updates @@ -0,0 +1,15 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) setsid storeless;; + 3) notify-send "📦 Upates" "$(yay -Qu)";; +esac + +packages=$(yay -Sy >/dev/null && yay -Qu) + +if [ -n "$packages" ] +then + echo $(echo "$packages" | wc -l) ⏬ +else + echo 🔁 +fi -- cgit v1.2.3-70-g09d2