mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-08 05:49:06 -04:00
Add waybar
This commit is contained in:
parent
e0c17f71e2
commit
1ff2d77058
19 changed files with 1043 additions and 0 deletions
10
dot_config/waybar/modules/executable_updates.sh
Normal file
10
dot_config/waybar/modules/executable_updates.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
pkg_updates() {
|
||||
updates=$(pacman -Qu | wc -l)
|
||||
aurupdates=$(paru -Qua | wc -l)
|
||||
updates=$((updates + aurupdates))
|
||||
if [ $updates -gt 0 ]; then
|
||||
echo -n " $updates"
|
||||
fi
|
||||
}
|
||||
pkg_updates
|
Loading…
Add table
Add a link
Reference in a new issue