mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 18:49:45 +00:00
Just small change
This commit is contained in:
parent
13bdde37c0
commit
cd33700ba2
1 changed files with 41 additions and 35 deletions
|
@ -70,41 +70,10 @@ rec_get_random() {
|
||||||
rec_get_random "$dir"
|
rec_get_random "$dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
|
||||||
# Options
|
echo "Important : Update the image cache, Ex: betterlockscreen -g path/to/image.jpg"
|
||||||
case "$1" in
|
echo " Image cache must be updated to initially configure or update wallpaper used"
|
||||||
"")
|
|
||||||
if [ ! -f $l_dim ]; then
|
|
||||||
|
|
||||||
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 "Ex. betterlockscreen -h or betterlockscreen --help"
|
|
||||||
|
|
||||||
echo
|
|
||||||
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 "Ex. betterlockscreen -h or betterlockscreen --help"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..."
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
-h | --help)
|
|
||||||
|
|
||||||
echo "Important : Update the image cache, Ex: betterlockscreen -g path/to/image.jpg"
|
|
||||||
echo " Image cache must be updated to initially configure or update wallpaper used"
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "See : https://github.com/pavanjadhaw/betterlockscreen for additional info..."
|
echo "See : https://github.com/pavanjadhaw/betterlockscreen for additional info..."
|
||||||
|
@ -160,7 +129,44 @@ case "$1" in
|
||||||
echo " used to set blur intensity. Default to 1."
|
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 -b 3"
|
||||||
echo " Ex: betterlockscreen -u path/to/image.png --blur 0.5"
|
echo " Ex: betterlockscreen -u path/to/image.png --blur 0.5"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# Options
|
||||||
|
case "$1" in
|
||||||
|
"")
|
||||||
|
if [ ! -f $l_dim ]; then
|
||||||
|
|
||||||
|
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 "Ex. betterlockscreen -h or betterlockscreen --help"
|
||||||
|
|
||||||
|
echo
|
||||||
|
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 "Ex. betterlockscreen -h or betterlockscreen --help"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..."
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
-h | --help)
|
||||||
|
|
||||||
|
usage
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-l | --lock)
|
-l | --lock)
|
||||||
|
|
Loading…
Reference in a new issue