add swript swaylock-script, only parametters help and version

This commit is contained in:
primardj 2024-01-22 18:19:24 +00:00
parent 2a99cce7d8
commit e425446e57

28
swaylock-script Executable file
View 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