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 \
--ringwrong-color=$WRONG \
\
--inside-color=$BLANK \
--ring-color=$DEFAULT \
--line-color=$BLANK \
--separator-color=$DEFAULT \
\
--verif-color=$TEXT \
--wrong-color=$TEXT \
--time-color=$TEXT \
--date-color=$TEXT \
--layout-color=$TEXT \
--keyhl-color=$WRONG \
--bshl-color=$WRONG \
--ind-pos="x+310:y+h-80" \ --ind-pos="x+310:y+h-80" \
--radius=25 \ --radius=25 \
--ring-width=5 \ --ring-width=5 \
--inside-color="$insidecolor" \
--ring-color="$ringcolor" \
--separator-color=$separatorcolor \
--insidever-color="$insidevercolor" \
--insidewrong-color="$insidewrongcolor" \
--ringver-color="$ringvercolor" \
--ringwrong-color="$ringwrongcolor" \
--line-uses-inside \
--keyhl-color="$keyhlcolor" \
--bshl-color="$bshlcolor" \
\
--clock --force-clock \ --clock --force-clock \
--time-pos="ix-265:iy-10" \ --time-pos="ix-265:iy-10" \
--time-align 1 \ --time-align 1 \
--time-str "$time_format" \
--time-color="$timecolor" \
--time-font="$font" \
--time-size="$fontlg" \
\
--date-str "" \ --date-str "" \
\
--greeter-pos="ix-265:iy+12" \ --greeter-pos="ix-265:iy+12" \
--greeter-align 1 \
--greeter-text "$locktext" \
--greeter-color="$greetercolor" \
--greeter-font="$font" \
--greeter-size="$fontmd" \
\
--layout-pos="ix-265:iy+32" \
--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-media-keys \
--pass-screen-keys \ --pass-screen-keys \
--pass-volume-keys \ --pass-volume-keys \
--pass-power-keys \ --pass-power-keys
--screen 1 \
--blur 5 \
--time-str="%H:%M:%S" \
--date-str="%A, %Y-%m-%d" \
--ignore-empty-password \
--image="${tmp}"
rm $tmp rm "${tmp}"