1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-12 02:26:04 +02:00

updated waybar pkg module voidlinux

This commit is contained in:
eoli3n 2021-05-13 22:17:11 +02:00
parent 4e54f45347
commit 1b10cba5ab
2 changed files with 7 additions and 4 deletions

8
TODO
View File

@ -13,10 +13,12 @@
* firefox menu size when scaling : https://bugzilla.mozilla.org/show_bug.cgi?id=1638168
# IMPROVMENTS
- dynamic waybar colors
- wrapper script to assign new windows to current workspace to avoid wrong workspace when jumping quickly between workspaces
- wrap all .desktop with wofi
- wrap all .desktop with wofi
#TEST
* wf-recorder
- launch kitty in xwayland mode to be able to share window
# Voidlinux
- [x] waybar upgrade module with xbps-flatpak
- [ ] list xbps updates without need to xbps-install -S as root

View File

@ -18,13 +18,14 @@ pacman_check() {
xbps_check(){
pkg=$(xbps-install -nu 2>/dev/null)
pkg_count=$(wc -l <<< "$pkg")
flatpak_count=$(flatpak update | grep -E '^ *[0-9]+\.' | awk '{print $2}' | wc -l)
if [[ $pkg_count -eq "0" ]] || [[ ! $pkg =~ [0-9]+ ]]
then
exit 0
fi
text="<span foreground='#929292'></span> $pkg_count"
text="$pkg_count <span foreground='#929292'></span> $flatpak_count"
tooltip=$(awk -v ORS=' ' '$0=$1' <<< "$pkg")
}