i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 0d5fb3da8aa9b71ac10edef987522527dd29f129
parent 58f10c6f5ae7c4a5c4730057c8c37cd8c7293666
Author: Raymond Li <hi@raymond.li>
Date:   Sun, 14 Feb 2021 16:27:59 -0500

Redo examples

Remove commented lines in sample locks, fix their executable paths, move all examples to examples folder, update readme with new screenshot path

Diffstat:
MREADME.md | 2+-
Aexamples/lock.sh | 36++++++++++++++++++++++++++++++++++++
Aexamples/lock_bar.sh | 41+++++++++++++++++++++++++++++++++++++++++
Rscreenshot.png -> examples/screenshot.png | 0
Dlock.sh | 44--------------------------------------------
Dlock_bar.sh | 41-----------------------------------------
6 files changed, 78 insertions(+), 86 deletions(-)
diff --git a/README.md b/README.md
@@ -23,7 +23,7 @@
 ### The world's most popular non-default computer lockscreen.
 **A modern version of i3lock with color functionality and other features.**
 
-![i3lock-color in action](screenshot.png "Screenshot sample")
+![i3lock-color in action](examples/screenshot.png "Screenshot sample")
 
 i3lock is a simple screen locker like slock. After starting it, you will see a white screen (you can configure the color/an image). You can return to your screen by entering your password.
 
diff --git a/examples/lock.sh b/examples/lock.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+B='#00000000'  # blank
+C='#ffffff22'  # clear ish
+D='#ff00ffcc'  # default
+T='#ee00eeee'  # text
+W='#880000bb'  # wrong
+V='#bb00bbbb'  # verifying
+
+i3lock \
+--insidevercolor=$C   \
+--ringvercolor=$V     \
+\
+--insidewrongcolor=$C \
+--ringwrongcolor=$W   \
+\
+--insidecolor=$B      \
+--ringcolor=$D        \
+--linecolor=$B        \
+--separatorcolor=$D   \
+\
+--verifcolor=$T        \
+--wrongcolor=$T        \
+--timecolor=$T        \
+--datecolor=$T        \
+--layoutcolor=$T      \
+--keyhlcolor=$W       \
+--bshlcolor=$W        \
+\
+--screen 1            \
+--blur 5              \
+--clock               \
+--indicator           \
+--timestr="%H:%M:%S"  \
+--datestr="%A, %m %Y" \
+--keylayout 1         \
diff --git a/examples/lock_bar.sh b/examples/lock_bar.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+B='#00000000'  # blank
+C='#ffffff22'  # clear ish
+D='#ff00ffcc'  # default
+T='#ee00eeee'  # text
+W='#880000bb'  # wrong
+V='#bb00bbbb'  # verifying
+
+i3lock \
+--blur 5 \
+--bar-indicator \
+--bar-position h \
+--bar-direction 1 \
+--bar-max-height 50 \
+--bar-base-width 50 \
+--bar-color 000000cc \
+--keyhlcolor 880088cc \
+--bar-periodic-step 50 \
+--bar-step 50 \
+--bar-width 250 \
+--redraw-thread \
+\
+--clock \
+--force-clock \
+--timepos 5:h-80 \
+--timecolor 880088ff \
+--datepos tx:ty+15 \
+--datecolor 990099ff \
+--date-align 1 \
+--time-align 1 \
+--ringvercolor 8800ff88 \
+--ringwrongcolor ff008888 \
+--statuspos 5:h-16 \
+--verif-align 1 \
+--wrong-align 1 \
+--verifcolor ffffffff \
+--wrongcolor ffffffff \
+--modifpos -50:-50 \
+\
+--screen 1
diff --git a/screenshot.png b/examples/screenshot.png
Binary files differ.
diff --git a/lock.sh b/lock.sh
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-B='#00000000'  # blank
-C='#ffffff22'  # clear ish
-D='#ff00ffcc'  # default
-T='#ee00eeee'  # text
-W='#880000bb'  # wrong
-V='#bb00bbbb'  # verifying
-
-./x86_64-pc-linux-gnu/i3lock \
---insidevercolor=$C   \
---ringvercolor=$V     \
-\
---insidewrongcolor=$C \
---ringwrongcolor=$W   \
-\
---insidecolor=$B      \
---ringcolor=$D        \
---linecolor=$B        \
---separatorcolor=$D   \
-\
---verifcolor=$T        \
---wrongcolor=$T        \
---timecolor=$T        \
---datecolor=$T        \
---layoutcolor=$T      \
---keyhlcolor=$W       \
---bshlcolor=$W        \
-\
---screen 1            \
---blur 5              \
---clock               \
---indicator           \
---timestr="%H:%M:%S"  \
---datestr="%A, %m %Y" \
---keylayout 1         \
-
-# --veriftext="Drinking verification can..."
-# --wrongtext="Nope!"
-# --textsize=20
-# --modsize=10
-# --timefont=comic-sans
-# --datefont=monofur
-# etc
diff --git a/lock_bar.sh b/lock_bar.sh
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-B='#00000000'  # blank
-C='#ffffff22'  # clear ish
-D='#ff00ffcc'  # default
-T='#ee00eeee'  # text
-W='#880000bb'  # wrong
-V='#bb00bbbb'  # verifying
-
-./x86_64-pc-linux-gnu/i3lock \
---blur 5 \
---bar-indicator \
---bar-position h \
---bar-direction 1 \
---bar-max-height 50 \
---bar-base-width 50 \
---bar-color 000000cc \
---keyhlcolor 880088cc \
---bar-periodic-step 50 \
---bar-step 50 \
---bar-width 250 \
---redraw-thread \
-\
---clock \
---force-clock \
---timepos 5:h-80 \
---timecolor 880088ff \
---datepos tx:ty+15 \
---datecolor 990099ff \
---date-align 1 \
---time-align 1 \
---ringvercolor 8800ff88 \
---ringwrongcolor ff008888 \
---statuspos 5:h-16 \
---verif-align 1 \
---wrong-align 1 \
---verifcolor ffffffff \
---wrongcolor ffffffff \
---modifpos -50:-50 \
-\
---screen 1