2017-12-28 15:57:35 +01:00
|
|
|
#!/bin/bash
|
|
|
|
TIMECOLOR="00FFFFFF"
|
|
|
|
TIMEFONT="Neuropolitical"
|
|
|
|
TIMESIZE=60
|
|
|
|
TIMESTYLE="%H:%M:%S"
|
|
|
|
DATECOLOR="00FFFFFF"
|
|
|
|
DATEFONT="Space Age"
|
|
|
|
DATESIZE=25
|
|
|
|
DATESTYLE="%A, %d %b"
|
|
|
|
# Ring Colors
|
|
|
|
VERIFYING_INSIDE="FFFFFF44"
|
|
|
|
WRONG_INSIDE="FF000044"
|
|
|
|
INSIDE="00000000"
|
|
|
|
LINE="00000000"
|
|
|
|
KEYPRESS="FFFFFFFF"
|
|
|
|
BACKSPACEPRESS="CCCCCCFF"
|
|
|
|
RINGCOLOR="F7045DFF"
|
|
|
|
RINGVERIFYINGCOLOR="F7045DFF"
|
|
|
|
RINGWRONGCOLOR="F7045DFF"
|
|
|
|
RINGTEXTSIZE=14
|
|
|
|
RINGRADIUS=45
|
|
|
|
|
|
|
|
# Get custom config
|
|
|
|
source $HOME/i3lock-delta/config
|
|
|
|
|
|
|
|
# Pause dunst
|
2018-08-05 19:07:03 +02:00
|
|
|
pkill -u $USER -USR1 dunst
|
2017-12-28 15:57:35 +01:00
|
|
|
# Set the image as used.
|
|
|
|
echo 1 > $HOME/.config/lock_screen.sta
|
|
|
|
xset dpms force off
|
|
|
|
|
|
|
|
# Call the lock
|
2018-01-10 12:40:22 +01:00
|
|
|
i3lock -i $HOME/.rand_bg.png -knf --force-clock\
|
2018-06-22 12:16:45 +02:00
|
|
|
--timecolor="$TIMECOLOR" --layout-align 1 --time-align 1 --time-font="$TIMEFONT" \
|
|
|
|
--datecolor="$DATECOLOR" --timepos "35:iy+15" --datesize="$DATESIZE" \
|
|
|
|
--timesize="$TIMESIZE" --datestr="$DATESTYLE" -e --date-font="$DATEFONT" \
|
2017-12-28 15:57:35 +01:00
|
|
|
--date-align 1 --insidevercolor="$VERIFYING_INSIDE" --insidewrongcolor="$WRONG_INSIDE" \
|
|
|
|
--insidecolor="$INSIDE" --linecolor="$LINE" --keyhlcolor="$KEYPRESS" --bshlcolor="$BACKSPACEPRESS" \
|
|
|
|
--ringcolor="$RINGCOLOR" --ringvercolor="$RINGVERIFYINGCOLOR" --ringwrongcolor="$RINGWRONGCOLOR" \
|
|
|
|
--separatorcolor="$KEYPRESS" --indpos="w-r-30:h-r-60" --radius="$RINGRADIUS" --modsize=1 \
|
2018-06-22 12:16:45 +02:00
|
|
|
--wrongsize="$RINGTEXTSIZE" --verifsize="$RINGTEXTSIZE" --indicator --timestr="$TIMESTYLE"
|
2017-12-28 15:57:35 +01:00
|
|
|
|
|
|
|
# Resume dunst
|
2018-08-05 19:07:03 +02:00
|
|
|
pkill -u $USER -USR2 dunst
|