Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmysawczuk/sleeptimer
https://github.com/jimmysawczuk/sleeptimer
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimmysawczuk/sleeptimer
- Owner: jimmysawczuk
- License: mit
- Created: 2018-02-15T02:52:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T00:45:56.000Z (over 6 years ago)
- Last Synced: 2025-01-04T03:00:20.879Z (20 days ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sleeptimer
[![Go Report Card](https://goreportcard.com/badge/github.com/jimmysawczuk/sleeptimer)](https://goreportcard.com/report/github.com/jimmysawczuk/sleeptimer)
sleeptimer is a Windows command line version of a program I wrote in college to make my computer shut down, restart or quit certain programs after a set amount of time.
# usage
```bat
> sleeptimer [-action (shutdown|restart)] [-mute] [-blank] [-ttl duration]
```* `ttl` is required and a duration > 0 is required. Use a string parseable by [`time.ParseDuration`](https://golang.org/pkg/time/#ParseDuration), i.e. `10s` or `1h30m`.
* If `action` is set to `shutdown` or `restart` the computer will perform that action when the ttl expires. At most, one of these actions can be performed.
* If `mute` or `blank` is set, the sound will be muted or the screen will go blank (respectively). You can use both of these flags at the same time.