feat: add moonarch-update wrapper for interactive system updates
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 2s

Wraps paru in a script that waits for keypress after completion,
preventing foot from closing immediately. Used as Waybar on-click
action for the updates module.
This commit is contained in:
nevaforget 2026-04-09 11:34:11 +02:00
parent 8ddbb23851
commit b6beabe500
2 changed files with 8 additions and 1 deletions

7
defaults/bin/moonarch-update Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/bash
# ABOUTME: Interactive system update wrapper for use as Waybar on-click action.
# ABOUTME: Runs paru and waits for keypress before closing the terminal.
paru
echo
read -n 1 -s -r -p "Press any key to close..."

View File

@ -207,7 +207,7 @@
},
"exec": "moonarch-waybar-updates",
"interval": 60,
"on-click": "foot paru"
"on-click": "foot moonarch-update"
},
"custom/notification": {
"tooltip": true,