Browse Source

i3-lock -> lock-screen

Samuel W. Flint 2 years ago
parent
commit
74765a48ee
1 changed files with 5 additions and 5 deletions
  1. 5 5
      lock-screen

+ 5 - 5
i3-lock → lock-screen

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [[ $# -eq 0 ]] ; then
-    echo "i3-lock [ enable | disable | suspend | lock | start ]"
+    echo "lock-screen [ enable | disable | suspend | lock | start ]"
     exit
 fi
 
@@ -21,7 +21,7 @@ case ${1} in
         xidlehook --socket ~/.xidlehook.sock \
                   --not-when-fullscreen \
                   --not-when-audio \
-                  --timer 300 "i3-lock locker-command" ""
+                  --timer 300 "lock-screen locker-command" ""
         ;;
     disable)
         xidlehook-client --socket ~/.xidlehook.sock \
@@ -33,16 +33,16 @@ case ${1} in
         ;;
     suspend)
         ssh-add -D
-        i3-lock lock
+        lock-screen lock
         sleep 1
         systemctl suspend
         ;;
     hibernate)
         ssh-add -D
-        i3-lock lock
+        lock-screen lock
         sleep 1
         systemctl hibernate
         ;;
     *)
-        echo "i3-lock [ enable | disable | lock | start ]"
+        echo "lock-screen [ enable | disable | lock | start ]"
 esac