summaryrefslogtreecommitdiff
path: root/scripts/gui
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui')
-rwxr-xr-xscripts/gui/sslock20
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}"