update lock screen

This commit is contained in:
Daylin Morgan 2022-09-29 09:47:40 -05:00
parent 2906f492df
commit 1a1c71e51c

View file

@ -3,12 +3,13 @@ if ! [[ -f /usr/bin/i3lock ]]; then
notify-send "no i3lock...install i3lock-color" notify-send "no i3lock...install i3lock-color"
exit exit
fi fi
# colors # colors
bg_color=22212cbb bg_color=1e1e2ebb
red=ff9580ff red=f38ba8ff
cyan=80ffeaff teal=94e2d5ff
green=8aff80ff rosewater=f5e0dcff
orange=ffca80ff green=a6e3a1ff
selection=454158ff selection=454158ff
# greeter config # greeter config
@ -46,7 +47,10 @@ font_to_px=$((font_size * 16 / 12))
greeter_h=$(($(make_figlet | wc -l) * font_to_px)) greeter_h=$(($(make_figlet | wc -l) * font_to_px))
greeter_w=$(($(make_figlet | wc -L) * font_to_px)) greeter_w=$(($(make_figlet | wc -L) * font_to_px))
# centered
greeter_pos="x+w/2-${greeter_w}/4:y+h/2-${greeter_h}/4" greeter_pos="x+w/2-${greeter_w}/4:y+h/2-${greeter_h}/4"
# left-aligned
greeter_pos="x+50:y+h/2-${greeter_h}/4"
# do the locking # do the locking
@ -62,12 +66,12 @@ i3lock \
--inside-color ffffff00 \ --inside-color ffffff00 \
--ring-color $green \ --ring-color $green \
--ringwrong-color $red \ --ringwrong-color $red \
--ringver-color $cyan \ --ringver-color $teal \
--insidewrong-color $bg_color \ --insidewrong-color $bg_color \
--insidever-color $bg_color \ --insidever-color $bg_color \
--line-uses-ring \ --line-uses-ring \
--separator-color $selection \ --separator-color $selection \
--keyhl-color $cyan \ --keyhl-color $teal \
--bshl-color $red \ --bshl-color $red \
--wrong-color $red \ --wrong-color $red \
--ind-pos x+w-5-r:y+h-10-r \ --ind-pos x+w-5-r:y+h-10-r \
@ -77,7 +81,7 @@ i3lock \
--greeter-text "$(make_figlet)" \ --greeter-text "$(make_figlet)" \
--greeter-font "${font}" \ --greeter-font "${font}" \
--greeter-size $font_size \ --greeter-size $font_size \
--greeter-color $cyan \ --greeter-color $rosewater \
--greeter-pos "${greeter_pos}" \ --greeter-pos "${greeter_pos}" \
--greeter-align 1 --greeter-align 1