mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
updates
This commit is contained in:
parent
63d1b24787
commit
1c3a86a813
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
;; main colors
|
;; main colors
|
||||||
; background = #3B4252
|
; background = #3B4252
|
||||||
background = #282c34
|
background = #24282f
|
||||||
; background-alt = #4C566A
|
; background-alt = #4C566A
|
||||||
; background-alt = "#464b55"
|
; background-alt = "#464b55"
|
||||||
background-alt = "#464b55"
|
background-alt = "#464b55"
|
||||||
@ -23,16 +23,16 @@ foreground-alt = "#abb2bf"
|
|||||||
primary = "#98be65"
|
primary = "#98be65"
|
||||||
white = "#bbc2cf"
|
white = "#bbc2cf"
|
||||||
black = "#464b55"
|
black = "#464b55"
|
||||||
red = "#e06c75"
|
red = "#ff6c6b"
|
||||||
pink = #EC6798
|
pink = #EC6798
|
||||||
purple = "#c678dd"
|
purple = "#c678dd"
|
||||||
blue = "#1E90FF"
|
blue = "#51afef"
|
||||||
cyan = "#56B6c2"
|
cyan = "#56B6c2"
|
||||||
teal = #00B19F
|
teal = #00B19F
|
||||||
green = "#98c379"
|
green = "#98be65"
|
||||||
lime = #B9C244
|
lime = #B9C244
|
||||||
yellow = "#d19a66"
|
yellow = "#d19a66"
|
||||||
amber = #EDB83F
|
amber = #d19a66
|
||||||
orange = #da8548
|
orange = #da8548
|
||||||
brown = #AC8476
|
brown = #AC8476
|
||||||
gray = #9E9E9E
|
gray = #9E9E9E
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
format() {
|
format() {
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
echo '-'
|
echo '-'
|
||||||
else
|
else
|
||||||
echo "$1"
|
echo "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! updates_arch="$(checkupdates | wc -l)"; then
|
if ! updates_arch="$(checkupdates | wc -l)"; then
|
||||||
updates_arch=0
|
updates_arch=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! updates_aur="$(paru -Qum 2>/dev/null | wc -l)"; then
|
if ! updates_aur="$(paru -Qum 2> /dev/null | wc -l)"; then
|
||||||
updates_aur=0
|
updates_aur=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
updates="$((updates_arch + updates_aur))"
|
updates="$((updates_arch + updates_aur))"
|
||||||
|
|
||||||
if [ "$updates" -gt 0 ]; then
|
if [ "$updates" -gt 0 ]; then
|
||||||
#echo " ($(format $updates_arch)/$(format $updates_aur))"
|
#echo " ($(format $updates_arch)/$(format $updates_aur))"
|
||||||
# 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))"
|
||||||
# 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 "%{B#d19a66} %{B-}%{B#464b55} ($(format $updates_arch)/$(format $updates_aur)) %{B-}"
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user