Created
January 18, 2020 15:47
-
-
Save dnorhoj/a23eecc14107ee1687d474d9bf0d948d to your computer and use it in GitHub Desktop.
My i3lock script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use this script you need these dependencies: i3lock-color, ImageMagick 7+ | |
timeposx=100 | |
timeposy=$((screenH-150)) | |
dateposy=$((timeposy+60)) | |
timefont="Monospace bold" | |
green=00ff99c0 | |
red=ff5050c0 | |
cyan=66ffffa0 | |
transparent=00000000 | |
littletransparent=808080e0 | |
prettytrans=80808040 | |
timecolor=99ffdda5 | |
scrot -z /tmp/i3lockscr.png | |
convert /tmp/i3lockscr.png -spread 10 -blur 0x10 -level 0,150% /tmp/i3lockscr.png | |
i3lock \ | |
--insidecolor=$prettytrans --ringcolor=$littletransparent --line-uses-inside \ | |
--keyhlcolor=$green --bshlcolor=$red --separatorcolor=$transparent \ | |
--insidevercolor=$prettytrans --insidewrongcolor=$prettytrans \ | |
--ringvercolor=$cyan --ringwrongcolor=$red \ | |
--radius=120 --ring-width=15 \ | |
--veriftext="" --wrongtext="" --noinputtext="_" \ | |
--wrongcolor=$red \ | |
--force-clock \ | |
--timestr="%H:%M:%S" --timepos="x+$timeposx:y+$timeposy" --timecolor=$timecolor --time-align=1 --timesize=80 \ | |
--time-font="$timefont" \ | |
--datestr="%B %d, %Y" --datepos="x+$timeposx:y+$dateposy" --datecolor=$timecolor --date-align=1 --datesize=30 \ | |
--date-font=$timefont \ | |
--nofork --tiling --image /tmp/i3lockscr.png -e | |
rm /tmp/i3lockscr.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment