diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gui/sslock | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/gui/sslock b/scripts/gui/sslock new file mode 100755 index 0000000..8af1611 --- /dev/null +++ b/scripts/gui/sslock @@ -0,0 +1,20 @@ +#!/bin/sh + +. slib + +help() { +cat << EOF +${0}: Wrapper script to set lock the screen +EOF + +exit 0 +} + +check_program "slock" + +[ "${#}" -eq 1 ] && [ "${1}" = "-h" ] && help + +[ "${#}" != 0 ] && invalid_use + +BACKGROUND="${XDG_CONFIG_HOME:-$HOME/.config}/wallpaper/current" +slock -f "${BACKGROUND}" |
