Browse Source

Added in enable/disable functionality

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

+ 8 - 2
i3-lock

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 
 
 if [[ $# -eq 0 ]] ; then
 if [[ $# -eq 0 ]] ; then
-    echo "i3-lock [ lock | start ]"
+    echo "i3-lock [ enable | disable | lock | start ]"
     exit
     exit
 fi
 fi
 
 
@@ -18,6 +18,12 @@ case ${1} in
     start)
     start)
         xautolock -time 10 -locker "i3-lock locker-command" -detectsleep -notify 30
         xautolock -time 10 -locker "i3-lock locker-command" -detectsleep -notify 30
         ;;
         ;;
+    disable)
+        xautolock -disable
+        ;;
+    enable)
+        xautolock -enable
+        ;;
     *)
     *)
-        echo "i3-lock [ lock | start ]"
+        echo "i3-lock [ enable | disable | lock | start ]"
 esac
 esac