46 lines
802 B
Bash
Executable file
46 lines
802 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
Version=0.1
|
|
Usage=" nfetch-startup [ PARAMETTER ]
|
|
|
|
nfetch-startup is a simple script which execute neofetch and wait until the user press 'q'.
|
|
|
|
PARAMETTER
|
|
|
|
-h, --help Print this help and quit
|
|
-v, --version Print the version of this script and quit.
|
|
"
|
|
|
|
|
|
for i in "$@"; do
|
|
case "$i" in
|
|
"-h" | "--help")
|
|
echo "$Usage"
|
|
exit 0
|
|
;;
|
|
"-v" | "--version")
|
|
echo "nfetch-startup $Version"
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Paramettre $i uknown"
|
|
echo "$Usage"
|
|
exit 127
|
|
;;
|
|
esac
|
|
done
|
|
|
|
|
|
neofetch
|
|
|
|
Goout="1"
|
|
|
|
while [ "$Goout" == "1" ]; do
|
|
read -n1 -s value
|
|
if echo "$value" | grep -q "q"
|
|
then
|
|
Goout=0
|
|
fi
|
|
done
|
|
|
|
|