#!/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 BLANK='#00000000' CLEAR='#ffffff22' DEFAULT='#ff00ffcc' TEXT='#ee00eeee' WRONG='#880000bb' VERIFYING='#bb00bbbb' i3lock \ --insidever-color=$CLEAR \ --ringver-color=$VERIFYING \ \ --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" \ --radius=25 \ --ring-width=5 \ --clock --force-clock \ --time-pos="ix-265:iy-10" \ --time-align 1 \ --date-str "" \ --greeter-pos="ix-265:iy+12" \ --pass-media-keys \ --pass-screen-keys \ --pass-volume-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