feat(hyprlock): update
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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=" "
|
||||
|
||||
Reference in New Issue
Block a user