From 4a439d18320b1d993156a99a9796c37dbb055b7c Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Tue, 18 Jul 2023 19:22:58 -0400 Subject: feat: trying out some `dwmblocks`-style widgets --- .local/bin/awesome-widgets/widget-pacman_updates | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/awesome-widgets/widget-pacman_updates (limited to '.local/bin/awesome-widgets/widget-pacman_updates') diff --git a/.local/bin/awesome-widgets/widget-pacman_updates b/.local/bin/awesome-widgets/widget-pacman_updates new file mode 100755 index 0000000..dfd21e4 --- /dev/null +++ b/.local/bin/awesome-widgets/widget-pacman_updates @@ -0,0 +1,9 @@ +#!/bin/sh + +if ! command -v yay >/dev/null 2>&1; then + notify-send "awesomewm widget error" "the 'yay' package is required for the widget to work." +else + yay -Sy >/dev/null + count=$(yay -Qu | wc -l) + echo " 📤 $count" +fi -- cgit v1.2.3