Parcourir la source

Updated i3-lock script

Samuel W. Flint il y a 8 ans
Parent
commit
1042ec88e8
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      i3-lock

+ 7 - 2
i3-lock

@@ -6,12 +6,17 @@ if [[ $# -eq 0 ]] ; then
 fi
 
 case ${1} in
+    locker-command)
+        i3lock -c 242424 -d -e -f
+        ;;
     lock)
         save-emacs-files
-        xscreensaver-command --lock
+        # xscreensaver-command --lock
+        xautolock -locknow
         ;;
     start)
-        xscreensaver
+        # xscreensaver
+        xautolock -time 10 -locker "i3-lock locker-command" -detectsleep -notify
         ;;
     *)
         echo "i3-lock [ lock | start ]"