Skip to content

Tooloop/XIdleRun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XIdleRun

XIdleRun is a small command line tool that waits for a certain time in seconds the user hasn't interacted with X11. After that it will run a command.

Compiling

You need these packets installed

Packet Description
libx11-dev X11 client-side library (development headers)
libxext-dev X11 miscellaneous extensions library (development headers)
libxss-dev X11 Screen Saver extension library (development headers)

On Ubuntu this line will do:

sudo apt install libx11-dev libxext-dev libxss-dev

Then compile it like so:

make

Usage

xidlerun [-t seconds] [-c command]

-t Time in seconds, default is 60
-c Command to run

Examples:

xidlerun -c "echo One minute"
xidlerun -t 3600 -c "/bin/bash ~/myscript.sh"

Credits

The code is based on this forum post

About

XIdleRun is a small command line tool that waits for a certain time in seconds the user hasn't interacted with X11. After that it will run a command.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published