Xtea is a program that executes a given command or program after a given time if no X11 keyboard or mouse input happend in the given time.
  • C 97.3%
  • Makefile 2.7%
Find a file
2025-01-14 04:22:55 +01:00
.gitignore Renamed program to Xtea. 2025-01-13 07:09:41 +01:00
LICENSE Added daemon mode, a help and version. Added a README. 2025-01-14 04:22:55 +01:00
Makefile Renamed program to Xtea. 2025-01-13 07:09:41 +01:00
README.md Added daemon mode, a help and version. Added a README. 2025-01-14 04:22:55 +01:00
Xtea.c Added daemon mode, a help and version. Added a README. 2025-01-14 04:22:55 +01:00

Xtea

Xtea is a program that executes a given command or program after a given time if no X11 keybord or mouse input happend in the given time.

Building checkpw

git clone https://git.xw3.org/hanez/Xtea.git
cd Xtea
make

Installation

sudo make install

Xtea is installed to /usr/bin/.

Uninstall

sudo make uninstall

Usage

Xtea -h
Usage: Xtea [-d] [-v] [-h] <seconds> <program> [arguments...]

Options:
  -d             Run in daemon mode. Restart the program after inactivity.
  -v             Show the program version and exit.
  -h             Show this help message and exit.

Arguments:
  <seconds>      Time (in seconds) to wait after inactivity before running the program.
  <program>      Program to execute after the specified delay.
  [arguments...] Optional arguments to pass to the program.

Examples:
  Xtea 5 ls -ls    Execute 'ls -l' after 5 seconds of inactivity.
  Xtea -d 10 echo 'Hello'    Run 'echo Hello' in daemon mode after 10 seconds of inactivity.