add swript swaylock-script, only parametters help and version
This commit is contained in:
parent
2a99cce7d8
commit
e425446e57
1 changed files with 28 additions and 0 deletions
28
swaylock-script
Executable file
28
swaylock-script
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# Definition of constantes.
|
||||
Version="1.0.0"
|
||||
Usage="swaylock-script [ PARAMETTER ]
|
||||
|
||||
script who lock a computer by my own options.
|
||||
|
||||
PARAMETTER
|
||||
-h, --help Print this help message and quit
|
||||
-v, --version Print the version and quit
|
||||
--sleep Launch the script without waiting anytime
|
||||
--swaylock-effects Lauch the swaylock effects options.
|
||||
"
|
||||
|
||||
for i in $@; do
|
||||
case "$i" in
|
||||
"-h" | "--help")
|
||||
echo "$Usage"
|
||||
exit 0
|
||||
;;
|
||||
"-v" | "--version")
|
||||
echo "swaylock-script $Version"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
Reference in a new issue