diff --git a/swaylock-script b/swaylock-script new file mode 100755 index 0000000..413a3d3 --- /dev/null +++ b/swaylock-script @@ -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 +