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 ;; 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

View File

@ -20,8 +20,8 @@ headphone-soundcard = default
; Name of the master, speaker and headphone mixers ; Name of the master, speaker and headphone mixers
; Use the following command to list available mixer controls: ; Use the following command to list available mixer controls:
; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" ; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p"
; If master, speaker or headphone-soundcard isn't the default, ; If master, speaker or headphone-soundcard isn't the default,
; use `amixer -c # scontrols` instead where # is the number ; use `amixer -c # scontrols` instead where # is the number
; of the master, speaker or headphone soundcard respectively ; of the master, speaker or headphone soundcard respectively
; ;
; Default: Master ; Default: Master
@ -294,13 +294,13 @@ enable-click = false
; Default: true ; Default: true
;;enable-scroll = false ;;enable-scroll = false
; Set the scroll cycle direction ; Set the scroll cycle direction
; Default: true ; Default: true
;;reverse-scroll = false ;;reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning ; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces ; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces ; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label ; containing 'code' in the label
; Default: false ; Default: false
fuzzy-match = true fuzzy-match = true
@ -596,13 +596,13 @@ type = internal/i3
; Default: true ; Default: true
;;wrapping-scroll = false ;;wrapping-scroll = false
; Set the scroll cycle direction ; Set the scroll cycle direction
; Default: true ; Default: true
;;reverse-scroll = false ;;reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning ; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces ; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces ; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label ; containing 'code' in the label
; Default: false ; Default: false
;;fuzzy-match = true ;;fuzzy-match = true
@ -826,12 +826,12 @@ icon-next = " "
icon-next-background = ${color.background-alt} icon-next-background = ${color.background-alt}
icon-prev = " " icon-prev = " "
icon-prev-background = ${color.background-alt} icon-prev-background = ${color.background-alt}
icon-seekf = icon-seekf =
icon-seekb = icon-seekb =
icon-random = icon-random =
icon-repeat = icon-repeat =
icon-repeatone = icon-repeatone =
icon-single = icon-single =
icon-consume = icon-consume =
; Used to display the state of random/repeat/repeatone/single ; Used to display the state of random/repeat/repeatone/single
@ -1150,7 +1150,7 @@ type = internal/temperature
interval = 0.5 interval = 0.5
; Thermal zone to use ; Thermal zone to use
; To list all the zone types, run ; To list all the zone types, run
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
; Default: 0 ; Default: 0
thermal-zone = 0 thermal-zone = 0

View File

@ -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