1
0
Fork 0

wywolanie i3lock z betterlockscreen

This commit is contained in:
zymon 2024-06-14 16:17:31 +02:00
parent e2176edb7a
commit 57c060787c

View file

@ -10,49 +10,95 @@ scrot --format jpg $tmp
magick $tmp -scale 5% -scale 2000% $tmp magick $tmp -scale 5% -scale 2000% $tmp
magick $tmp "$IMG" -gravity South -composite $tmp magick $tmp "$IMG" -gravity South -composite $tmp
BLANK='#00000000' loginbox=00000066
CLEAR='#ffffff22' loginshadow=00000000
DEFAULT='#ff00ffcc' locktext="Type password to unlock..."
TEXT='#ee00eeee' font="sans-serif"
WRONG='#880000bb' ringcolor=ffffffff
VERIFYING='#bb00bbbb' insidecolor=00000000
separatorcolor=00000000
ringvercolor=ffffffff
insidevercolor=00000000
ringwrongcolor=ffffffff
insidewrongcolor=d23c3dff
timecolor=ffffffff
time_format="%H:%M:%S"
greetercolor=ffffffff
layoutcolor=ffffffff
keyhlcolor=d23c3dff
bshlcolor=d23c3dff
veriftext="Verifying..."
verifcolor=ffffffff
wrongtext="Failure!"
wrongcolor=d23c3dff
modifcolor=d23c3dff
bgcolor=000000ff
local fontlg=32
local fontmd=16
local fontsm=12
i3lock \ i3lock \
--insidever-color=$CLEAR \ --image "${tmp}" \
--ringver-color=$VERIFYING \ --screen 1 \
\ \
--insidewrong-color=$CLEAR \ --ind-pos="x+310:y+h-80" \
--ringwrong-color=$WRONG \ --radius=25 \
\ --ring-width=5 \
--inside-color=$BLANK \ --inside-color="$insidecolor" \
--ring-color=$DEFAULT \ --ring-color="$ringcolor" \
--line-color=$BLANK \ --separator-color=$separatorcolor \
--separator-color=$DEFAULT \ --insidever-color="$insidevercolor" \
\ --insidewrong-color="$insidewrongcolor" \
--verif-color=$TEXT \ --ringver-color="$ringvercolor" \
--wrong-color=$TEXT \ --ringwrong-color="$ringwrongcolor" \
--time-color=$TEXT \ --line-uses-inside \
--date-color=$TEXT \ --keyhl-color="$keyhlcolor" \
--layout-color=$TEXT \ --bshl-color="$bshlcolor" \
--keyhl-color=$WRONG \ \
--bshl-color=$WRONG \ --clock --force-clock \
--ind-pos="x+310:y+h-80" \ --time-pos="ix-265:iy-10" \
--radius=25 \ --time-align 1 \
--ring-width=5 \ --time-str "$time_format" \
--clock --force-clock \ --time-color="$timecolor" \
--time-pos="ix-265:iy-10" \ --time-font="$font" \
--time-align 1 \ --time-size="$fontlg" \
--date-str "" \ \
--greeter-pos="ix-265:iy+12" \ --date-str "" \
--pass-media-keys \ \
--pass-screen-keys \ --greeter-pos="ix-265:iy+12" \
--pass-volume-keys \ --greeter-align 1 \
--pass-power-keys \ --greeter-text "$locktext" \
--screen 1 \ --greeter-color="$greetercolor" \
--blur 5 \ --greeter-font="$font" \
--time-str="%H:%M:%S" \ --greeter-size="$fontmd" \
--date-str="%A, %Y-%m-%d" \ \
--ignore-empty-password \ --layout-pos="ix-265:iy+32" \
--image="${tmp}" --layout-align 1 \
--layout-color="$layoutcolor" \
--layout-font="$font" \
--layout-size="$fontsm" \
--verif-pos="ix+35:iy-34" \
--verif-align 2 \
--verif-text="$veriftext" \
--verif-color="$verifcolor" \
--verif-font="$font" \
--verif-size="$fontsm" \
--wrong-pos="ix+24:iy-34" \
--wrong-align 2 \
--wrong-text="$wrongtext" \
--wrong-color="$wrongcolor" \
--wrong-font="$font" \
--wrong-size="$fontsm" \
--modif-pos="ix+45:iy+43" \
--modif-align 2 \
--modif-size="$fontsm" \
--modif-color="$modifcolor" \
--noinput-text="" \
\
--pass-media-keys \
--pass-screen-keys \
--pass-volume-keys \
--pass-power-keys
rm $tmp rm "${tmp}"