feat(hyprlock): update
This commit is contained in:
@@ -108,12 +108,11 @@ label {
|
|||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 300, 50
|
size = 300, 50
|
||||||
position = 0, 200
|
position = 0, 100
|
||||||
halign = center
|
halign = center
|
||||||
valign = bottom
|
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
|
outer_color = $outer_color
|
||||||
outline_thickness = 4
|
outline_thickness = 4
|
||||||
|
|
||||||
@@ -124,9 +123,9 @@ input-field {
|
|||||||
check_color = $check_color
|
check_color = $check_color
|
||||||
fail_text = <i>$FAIL ($ATTEMPTS)</i>
|
fail_text = <i>$FAIL ($ATTEMPTS)</i>
|
||||||
|
|
||||||
rounding = 15
|
rounding = 10
|
||||||
shadow_passes = 0
|
shadow_passes = 0
|
||||||
fade_on_empty = false
|
fade_on_empty = true
|
||||||
}
|
}
|
||||||
|
|
||||||
auth {
|
auth {
|
||||||
|
|||||||
@@ -16,31 +16,31 @@ CAPACITY="$(<"${BAT_PATH}/capacity")" # 0-100
|
|||||||
|
|
||||||
# 0-10, 11-35, 36-60, 61-85, 86-100
|
# 0-10, 11-35, 36-60, 61-85, 86-100
|
||||||
if ((CAPACITY <= 10)); then
|
if ((CAPACITY <= 10)); then
|
||||||
if [[ "${STATUS}" == "Charging" ]]; then
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
ICON=" "
|
ICON=" "
|
||||||
else
|
else
|
||||||
ICON=" "
|
ICON=" "
|
||||||
fi
|
fi
|
||||||
elif ((CAPACITY <= 30)); then
|
elif ((CAPACITY <= 30)); then
|
||||||
if [[ "${STATUS}" == "Charging" ]]; then
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
ICON=" "
|
ICON=" "
|
||||||
else
|
else
|
||||||
ICON=" "
|
ICON=" "
|
||||||
fi
|
fi
|
||||||
elif ((CAPACITY <= 60)); then
|
elif ((CAPACITY <= 60)); then
|
||||||
if [[ "${STATUS}" == "Charging" ]]; then
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
ICON=" "
|
ICON=" "
|
||||||
else
|
else
|
||||||
ICON=" "
|
ICON=" "
|
||||||
fi
|
fi
|
||||||
elif ((CAPACITY <= 80)); then
|
elif ((CAPACITY <= 80)); then
|
||||||
if [[ "${STATUS}" == "Charging" ]]; then
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
ICON=" "
|
ICON=" "
|
||||||
else
|
else
|
||||||
ICON=" "
|
ICON=" "
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ "${STATUS}" == "Charging" ]]; then
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" ]]; then
|
||||||
ICON=" "
|
ICON=" "
|
||||||
else
|
else
|
||||||
ICON=" "
|
ICON=" "
|
||||||
|
|||||||
Reference in New Issue
Block a user