commit 52d10969b3d5799bd14aea3412bd7e1e33979a5e
parent a48bdcf6d8f03629aa95c622b205f688a86d91f1
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sun, 23 May 2021 15:47:43 +0200

Add dwmb-updates

Diffstat:
A.local/bin/dwmblocks/dwmb-updates | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.local/bin/dwmblocks/dwmb-updates b/.local/bin/dwmblocks/dwmb-updates @@ -0,0 +1,7 @@ +#!/bin/sh + +UPDATES="$(checkupdates | wc -l)" +if [ "0" != "$UPDATES" ]; then + echo " $UPDATES" + sudo checkupdates -d >/dev/null 2>&1 & +fi