8000 GitHub - epanji/idle-suspend: Command line application to get X11 idle time and to suspending OS via send-dbus
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

epanji/idle-suspend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDLE-SUSPEND

Command line application to get X11 idle time and to suspending OS via send-dbus. Ensure user have authority on org.freedesktop.upower.policy otherwise suspend won't work.

Author: Panji Kusuma epanji@gmail.com

Installation

Run these commands from source directory.

make build
sudo make install

Usages

Use watch for temporary activation.

watch -n 1 idle-suspend

Use crontab for permanent activation.

crontab -e

For user display :0.0, add this line and save it.

* * * * * env - DISPLAY=:0.0 /usr/bin/idle-suspend &> /dev/null

By default, countdown time before suspend is 300 seconds. But, we can optionally add seconds argument as we wish.

...idle-suspend 600 ...

License

Public Domain

About

Command line application to get X11 idle time and to suspending OS via send-dbus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0