Coder Social home page Coder Social logo

gosleep-mode's Introduction

Introduction / 简介

(This is a script to help you go to sleep soundly, oh wait, no, that's not true.)
This is a script to shutdown the computer after a current time, and prevent the computer from going suspended or turnning off the power automatically.
使电脑在一段时间后自动关机的脚本,并且防止电脑在这段时间挂起。(所以你可以尽情使用你的WiFi :)

Install / 安装

Put the script in somewhere handy so that you can start it easily~
把这个脚本放在你随时都能够得着的地方~

Supported Operation / 支持的操作

  • Start the script / 启动脚本
gosleep-mode [timeleft-to-shutdown-in-minutes]
  • Abort shutdown schedule when script is running / 在脚本还在运行的时候取消关机排程
Input command > abort|cancel|a|c

Notice that it's supposed not to close the terminal window, or you may not be able to cancel the shutdown schedule. This bug may be fixed in the next version, with service control.
请注意一旦关闭该脚本的控制台窗口,你可能没有机会取消关机排程。这个Bug大概会在下个版本的时候修复。

Author / 作者

Donny

gosleep-mode's People

Contributors

donny-hikari avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.