this post was submitted on 29 Mar 2024
43 points (97.8% liked)
Arch Linux
9265 readers
13 users here now
The beloved lightweight distro
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Literally just
mod+shift+u was bound to spawn a terminal window running yay -Syu, obviously change the notification to say whatever you want. The icon is a custom icon, replace it with whatever icon you want for the notification or just remove the icon if you don't want one.
I've since moved to Artix so the test is now just
yay -Quascheckupdatesdoesn't seem to exist on Artix, but if you're on base Arch and use yay, the above should work. You can also remove the yay if you don't use yay and I think that just checks for updates from official arch repos, not from aur. (yay -Qushould check both but I have both commands in the script just in case)This is so cool! Very clever solution to this issue. Thank you for sharing! ๐ An interesting thing that I ran into when testing it was regarding the difference between
[pacman|yay|paru] -Quandcheckupdates:checkupdatesshowed that an update was available, but the-Quoption did not reveal the update. It wasn't until I synced the database with-Sythat-Qustarted showing the updates.Update (2024-03-31T03:20Z): Ah, it looks like
checkupdatesessentially is just runningpacman -Syandpacman -Qu.