소스 검색

Add hibernation ability

Samuel W. Flint 4 년 전
부모
커밋
e2171a71e2
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      i3-lock

+ 6 - 0
i3-lock

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