You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd just like to display the list of pacman and AUR packages in tooltips, but I'm not sure how to go about it.
I've read the wiki and tried various ways of doing it but it doesn't work. https://github.com/Alexays/Waybar/wiki/Module:-Custom
I searched in "issues" and found this script:
#!/bin/sh
output="$(checkupdates)"
number="$(echo "$output" | wc -l)"
text="$number "
if (( $number > 20 ))
then
tooltip="$(echo "$output" | head -n 20 | sed -z 's/\n/\\n/g')"
tooltip+='...'
else
tooltip="$(echo "$output" | sed -z 's/\n/\\n/g')"
tooltip=${tooltip::-2}
fi
echo "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}"
exit 0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd just like to display the list of pacman and AUR packages in tooltips, but I'm not sure how to go about it.
I've read the wiki and tried various ways of doing it but it doesn't work.
https://github.com/Alexays/Waybar/wiki/Module:-Custom
I searched in "issues" and found this script:
possibly a script with AUR?
config here for the moment:
thank you for reading and for potentially helping me.
Beta Was this translation helpful? Give feedback.
All reactions