From 1a3f7c6436631ac0fa86e78e906c276b9c4607e7 Mon Sep 17 00:00:00 2001 From: Boruch Baum Date: Tue, 7 Aug 2018 08:55:46 -0400 Subject: [PATCH 1/3] Add option to suppress display of the ring and keypress responses --- i3lock-fancy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i3lock-fancy b/i3lock-fancy index ab75ab6..ec998b0 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=(i3lock -i "$image" -u) ; shift ;; --) shift; shot_custom=true; break ;; *) echo "error" ; exit 1 ;; esac From 2d9a922ef19a222c0345ad0202d6063e4dc564d3 Mon Sep 17 00:00:00 2001 From: Boruch Baum Date: Tue, 7 Aug 2018 08:57:43 -0400 Subject: [PATCH 2/3] Document new option --- doc/lock.1 | 4 ++++ 1 file changed, 4 insertions(+) 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 From fe346a8b9b1578005515e2ff87ba20a3488e6663 Mon Sep 17 00:00:00 2001 From: Boruch Baum Date: Tue, 7 Aug 2018 22:07:10 -0400 Subject: [PATCH 3/3] Change way of setting option (prevent overwrite of no-fork option) --- i3lock-fancy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3lock-fancy b/i3lock-fancy index ec998b0..0298d18 100755 --- a/i3lock-fancy +++ b/i3lock-fancy @@ -79,7 +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=(i3lock -i "$image" -u) ; shift ;; + -u|--nounlockindicator) i3lock_cmd+=(-u) ; shift ;; --) shift; shot_custom=true; break ;; *) echo "error" ; exit 1 ;; esac