Browse Source

Added in suspension functionality

Samuel W. Flint 7 years ago
parent
commit
fef7a69ab2
1 changed files with 5 additions and 1 deletions
  1. 5 1
      i3-lock

+ 5 - 1
i3-lock

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [[ $# -eq 0 ]] ; then
-    echo "i3-lock [ enable | disable | lock | start ]"
+    echo "i3-lock [ enable | disable | suspend | lock | start ]"
     exit
 fi
 
@@ -24,6 +24,10 @@ case ${1} in
     enable)
         xautolock -enable
         ;;
+    suspend)
+        i3-lock lock
+        systemctl suspend
+        ;;
     *)
         echo "i3-lock [ enable | disable | lock | start ]"
 esac