Browse Source

made i3-lock a little bit better

Samuel W. Flint 8 years ago
parent
commit
42bef496af
1 changed files with 16 additions and 2 deletions
  1. 16 2
      i3-lock

+ 16 - 2
i3-lock

@@ -1,4 +1,18 @@
 #!/bin/sh
 
-save-emacs-files
-xscreensaver-command --lock
+if [[ $# -eq 0 ]] ; then
+    echo "i3-lock [ lock | start ]"
+    exit
+fi
+
+case ${1} in
+    lock)
+        save-emacs-files
+        xscreensaver-command --lock
+        ;;
+    start)
+        xscreensaver
+        ;;
+    *)
+        echo "i3-lock [ lock | start ]"
+esac