diff --git a/defaults/bin/moonarch-update b/defaults/bin/moonarch-update new file mode 100755 index 0000000..d4ac3c7 --- /dev/null +++ b/defaults/bin/moonarch-update @@ -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..." diff --git a/defaults/xdg/waybar/config b/defaults/xdg/waybar/config index 7e71b58..ba95677 100644 --- a/defaults/xdg/waybar/config +++ b/defaults/xdg/waybar/config @@ -207,7 +207,7 @@ }, "exec": "moonarch-waybar-updates", "interval": 60, - "on-click": "foot paru" + "on-click": "foot moonarch-update" }, "custom/notification": { "tooltip": true,