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:
parent
4e54f45347
commit
1b10cba5ab
8
TODO
8
TODO
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue