Browse Source

Add suspend-hibernate lock version

Samuel W. Flint 2 years ago
parent
commit
2d89b92d07
1 changed files with 6 additions and 0 deletions
  1. 6 0
      lock-screen

+ 6 - 0
lock-screen

@@ -44,6 +44,12 @@ case ${1} in
         sleep 1
         systemctl hibernate
         ;;
+    suspend-hibernate)
+        ssh-add -D
+        lock-screen lock
+        sleep 1
+        systemctl suspend-hibernate
+        ;;
     *)
         echo "lock-screen [ enable | disable | lock | start ]"
 esac