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

@@ -108,12 +108,11 @@ label {
input-field {
monitor =
size = 300, 50
position = 0, 200
position = 0, 100
halign = center
valign = bottom
color = rgba(242, 243, 244, 0.75)
inner_color = rgba(242, 243, 244, 0.75)
inner_color = rgba(242, 243, 244, 0.8)
outer_color = $outer_color
outline_thickness = 4
@@ -124,9 +123,9 @@ input-field {
check_color = $check_color
fail_text = <i>$FAIL ($ATTEMPTS)</i>
rounding = 15
rounding = 10
shadow_passes = 0
fade_on_empty = false
fade_on_empty = true
}
auth {

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="󰁹 "