From 6a29c5145aa9d9d2455854165fe57dc74b6766fd Mon Sep 17 00:00:00 2001 From: Terencio Agozzino Date: Sun, 20 May 2018 20:18:06 +0200 Subject: [PATCH 1/2] Fix typo with two dots --- betterlockscreen | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/betterlockscreen b/betterlockscreen index f2eef8e..57be313 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -104,11 +104,11 @@ lockselect() { usage() { - echo "Important : Update the image cache, Ex: betterlockscreen -u path/to/image.jpg" + echo "Important: Update the image cache, Ex: betterlockscreen -u path/to/image.jpg" echo " Image cache must be updated to initially configure or update wallpaper used" echo echo - echo "See : https://github.com/pavanjadhaw/betterlockscreen for additional info..." + echo "See: https://github.com/pavanjadhaw/betterlockscreen for additional info..." echo echo echo "Options:" @@ -167,26 +167,26 @@ usage() { case "$1" in "") if [ ! -f $l_dim ]; then - echo "Important : Update the image cache, Ex. betterlockscreen -u path/to/image.jpg" + echo "Important: Update the image cache, Ex. betterlockscreen -u path/to/image.jpg" echo echo " Image cache must be updated to initially configure or update wallpaper used" echo - echo "See also : For other set of options and help use help command." + echo "See also: For other set of options and help use help command." echo "Ex. betterlockscreen -h or betterlockscreen --help" echo - echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..." + echo "See: https://github.com/pavanjadhaw/betterlockscreen for addition info..." exit 1 else echo echo "Seems you havent provided any argument, see below for usage info" echo - echo "See also : For other set of options and help use help command." + echo "See also: For other set of options and help use help command." echo "Ex. betterlockscreen -h or betterlockscreen --help" echo - echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..." + echo "See: https://github.com/pavanjadhaw/betterlockscreen for addition info..." echo exit 1 fi From 89e620cbfeadae51bd95eb0ddea9865e38553948 Mon Sep 17 00:00:00 2001 From: Terencio Agozzino Date: Sun, 20 May 2018 20:26:18 +0200 Subject: [PATCH 2/2] Fix exempli gratia and a few forgotten points. --- betterlockscreen | 52 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/betterlockscreen b/betterlockscreen index 57be313..4a60433 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -104,7 +104,7 @@ lockselect() { usage() { - echo "Important: Update the image cache, Ex: betterlockscreen -u path/to/image.jpg" + echo "Important: Update the image cache (e.g. betterlockscreen -u path/to/image.jpg)." echo " Image cache must be updated to initially configure or update wallpaper used" echo echo @@ -115,64 +115,64 @@ usage() { echo echo " -h --help" - echo " For help. Ex: betterlockscreen -h or betterlockscreen --help" + echo " For help (e.g. betterlockscreen -h or betterlockscreen --help)." echo echo echo " -u --update" echo " to update image cache, you should do this before using any other options" - echo " Ex: betterlockscreen -u path/to/image.png when image.png is custom background" - echo " Or you can use betterlockscreen -u path/to/imagedir and a random file will be selected" + echo " E.g: betterlockscreen -u path/to/image.png when image.png is custom background" + echo " Or you can use betterlockscreen -u path/to/imagedir and a random file will be selected." echo echo echo " -l --lock" - echo " to lock screen, Ex. betterlockscreen -l" - echo " you can also use dimmed or blurred background for lockscreen" - echo " Ex: betterlockscreen -l dim (for dimmed background)" - echo " Ex: betterlockscreen -l blur (for blurred background)" - echo " Ex: betterlockscreen -l dimblur (for dimmed + blurred background)" + echo " to lock screen (e.g. betterlockscreen -l)" + echo " you can also use dimmed or blurred background for lockscreen." + echo " E.g: betterlockscreen -l dim (for dimmed background)" + echo " E.g: betterlockscreen -l blur (for blurred background)" + echo " E.g: betterlockscreen -l dimblur (for dimmed + blurred background)" echo echo echo " -s --suspend" - echo " to suspend system and lock screen, Ex. betterlockscreen -s" - echo " you can also use dimmed or blurred background for lockscreen" - echo " Ex: betterlockscreen -s dim (for dimmed background)" - echo " Ex: betterlockscreen -s blur (for blurred background)" - echo " Ex: betterlockscreen -s dimblur (for dimmed + blurred background)" + echo " to suspend system and lock screen (e.g. betterlockscreen -s)" + echo " you can also use dimmed or blurred background for lockscreen." + echo " E.g: betterlockscreen -s dim (for dimmed background)" + echo " E.g: betterlockscreen -s blur (for blurred background)" + echo " E.g: betterlockscreen -s dimblur (for dimmed + blurred background)" echo echo echo " -w --wall" echo " you can also set lockscreen background as wallpaper" - echo " to set wallpaper. Ex betterlockscreen -w or betterlockscreen --wall" - echo " you can also use dimmed or blurred variants" - echo " Ex: betterlockscreen -w dim (for dimmed wallpaper)" - echo " Ex: betterlockscreen -w blur (for blurred wallpaper)" - echo " Ex: betterlockscreen -w dimblur (for dimmed + blurred wallpaper)" + echo " to set wallpaper (e.g. betterlockscreen -w or betterlockscreen --wall)" + echo " you can also use dimmed or blurred variants." + echo " E.g: betterlockscreen -w dim (for dimmed wallpaper)" + echo " E.g: betterlockscreen -w blur (for blurred wallpaper)" + echo " E.g: betterlockscreen -w dimblur (for dimmed + blurred wallpaper)" echo echo echo " -r --resolution" echo " to be used after -u" echo " used to set a custom resolution for the image cache." - echo " Ex: betterlockscreen -u path/to/image.png -r 1920x1080" - echo " Ex: betterlockscreen -u path/to/image.png --resolution 3840x1080" + echo " E.g: betterlockscreen -u path/to/image.png -r 1920x1080" + echo " E.g: betterlockscreen -u path/to/image.png --resolution 3840x1080" echo echo echo " -b --blur" echo " to be used after -u" echo " used to set blur intensity. Default to 1." - echo " Ex: betterlockscreen -u path/to/image.png -b 3" - echo " Ex: betterlockscreen -u path/to/image.png --blur 0.5" + echo " E.g: betterlockscreen -u path/to/image.png -b 3" + echo " E.g: betterlockscreen -u path/to/image.png --blur 0.5" } # Options case "$1" in "") if [ ! -f $l_dim ]; then - echo "Important: Update the image cache, Ex. betterlockscreen -u path/to/image.jpg" + echo "Important: Update the image cache (e.g. betterlockscreen -u path/to/image.jpg)." echo echo " Image cache must be updated to initially configure or update wallpaper used" echo echo "See also: For other set of options and help use help command." - echo "Ex. betterlockscreen -h or betterlockscreen --help" + echo "E.g. betterlockscreen -h or betterlockscreen --help" echo echo "See: https://github.com/pavanjadhaw/betterlockscreen for addition info..." @@ -183,7 +183,7 @@ case "$1" in echo echo "See also: For other set of options and help use help command." - echo "Ex. betterlockscreen -h or betterlockscreen --help" + echo "E.g. betterlockscreen -h or betterlockscreen --help" echo echo "See: https://github.com/pavanjadhaw/betterlockscreen for addition info..."