59 lines
1.5 KiB
Bash
Executable File
59 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Background (--color=rrggbb or --image=path)
|
|
#BACKGROUND="--image=${HOME}/wallpaper-lock.jpg"
|
|
|
|
# Foreground color (rrggbbaa)
|
|
COLOR_FG="ffffffff"
|
|
COLOR_SCREEN="000000ff";
|
|
|
|
# Ring color during incorrect password flash (rrggbbaa)
|
|
COLOR_RINGWRONG="ff0000ff";
|
|
|
|
COLOR_TEXT="ffffffff";
|
|
# Date string format (see `man strftime.3`)
|
|
FORMAT_DATE="%A, %B %e"
|
|
FORMAT_TIME="%H:%M"
|
|
|
|
# Main font (for time and greeter)
|
|
FONT="sans-serif:light"
|
|
# Alternative font (for date)
|
|
FONT_ALT="sans-serif:thin"
|
|
|
|
# Time font size
|
|
SIZE_TIME=144
|
|
# Date font size
|
|
SIZE_DATE=48
|
|
|
|
# "${BACKGROUND}" \
|
|
swaylock \
|
|
--ignore-empty-password \
|
|
--show-keyboard-layout \
|
|
--color="${COLOR_SCREEN}" \
|
|
--indicator-radius=105 \
|
|
--font="${FONT}" \
|
|
--font-size=30 \
|
|
--text-color="${COLOR_TEXT}" \
|
|
--text-clear-color="${COLOR_TEXT}" \
|
|
-f
|
|
# \
|
|
# --clock \
|
|
# --datestr="${FORMAT_DATE}" \
|
|
# --timestr="${FORMAT_TIME}"
|
|
# --screen=0 \
|
|
# --show-failed-attempts \
|
|
# --inside-color="${COLOR_SCREEN}" \
|
|
# --ring-color="${COLOR_SCREEN}" \
|
|
# --insidever-color="${COLOR_SCREEN}" \
|
|
# --ringver-color="${COLOR_SCREEN}" \
|
|
# --insidewrong-color="${COLOR_SCREEN}" \
|
|
# --ringwrong-color="${COLOR_RINGWRONG}" \
|
|
# --layout-color="${COLOR_TEXT}" \
|
|
# --time-color="${COLOR_TEXT}" \
|
|
# --date-color="${COLOR_TEXT}" \
|
|
# --greeter-color="${COLOR_TEXT}" \
|
|
# --noinput-text="clear" \
|
|
# --pass-screen-keys \
|
|
# --pass-power-keys \
|
|
# --pass-volume-keys \
|