2 changed files with 11 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
PKGS=$(checkupdates) |
||||||
|
uid=1000 |
||||||
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus |
||||||
|
|
||||||
|
if [ $(echo "$PKGS" | wc -w) -gt 0 ]; then |
||||||
|
notify-send "$(echo "$PKGS" | wc -l) updates available" "$PKGS" |
||||||
|
fi |
||||||
Loading…
Reference in new issue