This commit is contained in:
ksyasuda 2022-01-24 21:59:14 -08:00
parent 63d1b24787
commit 1c3a86a813
3 changed files with 34 additions and 34 deletions

View File

@ -13,7 +13,7 @@
;; main colors
; background = #3B4252
background = #282c34
background = #24282f
; background-alt = #4C566A
; background-alt = "#464b55"
background-alt = "#464b55"
@ -23,16 +23,16 @@ foreground-alt = "#abb2bf"
primary = "#98be65"
white = "#bbc2cf"
black = "#464b55"
red = "#e06c75"
red = "#ff6c6b"
pink = #EC6798
purple = "#c678dd"
blue = "#1E90FF"
blue = "#51afef"
cyan = "#56B6c2"
teal = #00B19F
green = "#98c379"
green = "#98be65"
lime = #B9C244
yellow = "#d19a66"
amber = #EDB83F
amber = #d19a66
orange = #da8548
brown = #AC8476
gray = #9E9E9E

View File

@ -1,28 +1,28 @@
#!/usr/bin/env bash
format() {
if [ "$1" -eq 0 ]; then
echo '-'
else
echo "$1"
fi
if [ "$1" -eq 0 ]; then
echo '-'
else
echo "$1"
fi
}
if ! updates_arch="$(checkupdates | wc -l)"; then
updates_arch=0
updates_arch=0
fi
if ! updates_aur="$(paru -Qum 2>/dev/null | wc -l)"; then
updates_aur=0
if ! updates_aur="$(paru -Qum 2> /dev/null | wc -l)"; then
updates_aur=0
fi
updates="$((updates_arch + updates_aur))"
if [ "$updates" -gt 0 ]; then
#echo " ($(format $updates_arch)/$(format $updates_aur))"
# echo " ($(format $updates_arch)/$(format $updates_aur))"
# dunstify -i "/usr/share/icons/breeze-dark/mimetypes/24/package-x-generic.svg" " Outdated Packages: ($(format $updates_arch)/$(format $updates_aur))"
# dunstify -i "/usr/share/icons/breeze-dark/mimetypes/24/package-x-generic.svg" "Outdated Packages: ($(format $updates_arch)/$(format $updates_aur))"
echo "%{B#ecbe7b} %{B-}%{B#464b55} ($(format $updates_arch)/$(format $updates_aur)) %{B-}"
#echo " ($(format $updates_arch)/$(format $updates_aur))"
# echo " ($(format $updates_arch)/$(format $updates_aur))"
# dunstify -i "/usr/share/icons/breeze-dark/mimetypes/24/package-x-generic.svg" " Outdated Packages: ($(format $updates_arch)/$(format $updates_aur))"
# dunstify -i "/usr/share/icons/breeze-dark/mimetypes/24/package-x-generic.svg" "Outdated Packages: ($(format $updates_arch)/$(format $updates_aur))"
echo "%{B#d19a66} %{B-}%{B#464b55} ($(format $updates_arch)/$(format $updates_aur)) %{B-}"
else
echo
echo
fi