feat(hyprlock): update

This commit is contained in:
2026-02-25 02:15:59 +01:00
parent 4454b0bb03
commit 9dc6bd9eb0
2 changed files with 9 additions and 10 deletions

View File

@@ -16,31 +16,31 @@ CAPACITY="$(<"${BAT_PATH}/capacity")" # 0-100
#  0-10,  11-35,  36-60,  61-85,  86-100
if ((CAPACITY <= 10)); then
if [[ "${STATUS}" == "Charging" ]]; then
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
ICON="󰢜 "
else
ICON="󰁺 "
fi
elif ((CAPACITY <= 30)); then
if [[ "${STATUS}" == "Charging" ]]; then
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
ICON="󰂇 "
else
ICON="󰁼 "
fi
elif ((CAPACITY <= 60)); then
if [[ "${STATUS}" == "Charging" ]]; then
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
ICON="󰂉 "
else
ICON="󰁿 "
fi
elif ((CAPACITY <= 80)); then
if [[ "${STATUS}" == "Charging" ]]; then
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
ICON="󰂊 "
else
ICON="󰂁 "
fi
else
if [[ "${STATUS}" == "Charging" ]]; then
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" ]]; then
ICON="󰂅 "
else
ICON="󰁹 "