summaryrefslogtreecommitdiff
path: root/dunstapt.sh
blob: 6cae44b8f55d88011397f7b4b4145feb5f8267b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

dunstify -r 9999 -h int:value:0 "APT" "Running update..."
sudo apt update

dunstify -r 9999 -h int:value:0 "APT" "Running upgrade..."

(
  for i in $(seq 1 10 100); do
    dunstify -r 9999 -h int:value:$i "APT Upgrade" "$i% complete..."
    sleep 2
  done
) &

sudo apt upgrade -y

dunstify -r 9999 -h int:value:100 "APT Upgrade" "System is fully upgraded!"