Skip to content

Commit

Permalink
Merge pull request #125 from lavadew/sleep
Browse files Browse the repository at this point in the history
Add time input for sleep command
  • Loading branch information
rgcr committed Aug 2, 2018
2 parents d68cf9f + 8dd7e7b commit 27dd5d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/sleep
Expand Up @@ -14,9 +14,11 @@ case $1 in
help)
help
;;
*)
"" | 0)
pmset sleepnow
;;
*)
(sleep $1 ; pmset sleepnow ) &
esac

# vim: ts=4 sw=4 softtabstop=4 expandtab

0 comments on commit 27dd5d0

Please sign in to comment.