summaryrefslogtreecommitdiff
path: root/dunstapt.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-07-27 21:40:33 +0000
committerdoc <doc@filenotfound.org>2025-07-27 21:40:33 +0000
commitd24f56519425c3dd4a4e016002f9305957895afb (patch)
treee71c69712928d4c06711c54b6c1ff3dfa6566e5d /dunstapt.sh
parentc15d45611d7d0a161111baf75b6e52d753552d19 (diff)
second commitHEADmaster
Diffstat (limited to 'dunstapt.sh')
-rwxr-xr-xdunstapt.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/dunstapt.sh b/dunstapt.sh
new file mode 100755
index 0000000..6cae44b
--- /dev/null
+++ b/dunstapt.sh
@@ -0,0 +1,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!"