104 lines
2.4 KiB
Bash
Executable file
104 lines
2.4 KiB
Bash
Executable file
#!/bin/zsh
|
|
|
|
IMG_PATH=$HOME/i/zamkopapiery
|
|
FILENAME=$(ls $IMG_PATH | sort -R | head -n 1)
|
|
IMG=$IMG_PATH/$FILENAME
|
|
|
|
tmp=/tmp/lockscreen.jpg
|
|
scrot --format jpg $tmp
|
|
|
|
magick $tmp -scale 5% -scale 2000% $tmp
|
|
magick $tmp "$IMG" -gravity South -composite $tmp
|
|
|
|
loginbox=00000066
|
|
loginshadow=00000000
|
|
locktext="Type password to unlock..."
|
|
font="sans-serif"
|
|
ringcolor=ffffffff
|
|
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 \
|
|
--image "${tmp}" \
|
|
--screen 1 \
|
|
\
|
|
--ind-pos="x+310:y+h-80" \
|
|
--radius=25 \
|
|
--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 \
|
|
--time-pos="ix-265:iy-10" \
|
|
--time-align 1 \
|
|
--time-str "$time_format" \
|
|
--time-color="$timecolor" \
|
|
--time-font="$font" \
|
|
--time-size="$fontlg" \
|
|
\
|
|
--date-str "" \
|
|
\
|
|
--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-screen-keys \
|
|
--pass-volume-keys \
|
|
--pass-power-keys
|
|
|
|
rm "${tmp}"
|