idle

package module
v0.0.0-...-6ed0d21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 4 Imported by: 1

README

Idle

Cross-platform idle time detection in Go (Golang).


Untitled, Zdislav Beksinski

Build Status

Overview

Read and run idle.go command for an example of the API usage:

> go run cmd/idle.go
2015/06/13 22:55:43 Idle for 1 seconds.
2015/06/13 22:55:44 Idle for 2 seconds.
2015/06/13 22:55:45 Idle for 3 seconds.
2015/06/13 22:55:46 Idle for 4 seconds.
2015/06/13 22:55:47 Idle for 5 seconds.

2015/06/13 22:55:50 Idle for 1 seconds.
2015/06/13 22:55:51 Idle for 2 seconds.
2015/06/13 22:55:52 Idle for 3 seconds.
2015/06/13 22:55:53 Idle for 4 seconds.
2015/06/13 22:55:54 Idle for 5 seconds.

To do

  • Docs.
  • Windows support.
  • Better OSX: Figure out how to collect these values using c.go.
  • Test Linux.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() (time.Duration, error)

Get idle time for Linux Xorg

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL