diff --git a/doc/lock.1 b/doc/lock.1 index b42915d..b349c71 100644 --- a/doc/lock.1 +++ b/doc/lock.1 @@ -52,6 +52,10 @@ immediately. \fB-n, --nofork\fP Do not fork i3lock after starting. +.TP +\fB-u, --nounlockindicator\fP +Suppress display of the ring and keypress feedback. + .TP \fB--\fP Must be last option. Set command to use for taking a screenshot. Default is diff --git a/i3lock-fancy b/i3lock-fancy index ab75ab6..0298d18 100755 --- a/i3lock-fancy +++ b/i3lock-fancy @@ -32,6 +32,8 @@ options="Options: -n, --nofork Do not fork i3lock after starting. + -u, --nounlockindicator Suppress display of the ring and keypress feedback. + -- Must be last option. Set command to use for taking a screenshot. Default is 'import -window root'. Using 'scrot' or 'maim' will increase script speed and allow setting @@ -40,7 +42,7 @@ options="Options: # move pipefail down as for some reason "convert -list font" returns 1 set -o pipefail trap 'rm -f "$image"' EXIT -temp="$(getopt -o :hdnpglt:f: -l desktop,help,listfonts,nofork,pixelate,greyscale,text:,font: --name "$0" -- "$@")" +temp="$(getopt -o :hdnpglt:f:u -l desktop,help,listfonts,nofork,pixelate,greyscale,text:,font:,nounlockindicator --name "$0" -- "$@")" eval set -- "$temp" # l10n support @@ -77,6 +79,7 @@ while true ; do convert -list font | awk -F: '/Font: / { print $2 }' | sort -du | command -- ${PAGER:-less} exit 0 ;; -n|--nofork) i3lock_cmd+=(--nofork) ; shift ;; + -u|--nounlockindicator) i3lock_cmd+=(-u) ; shift ;; --) shift; shot_custom=true; break ;; *) echo "error" ; exit 1 ;; esac