/mouse-mover

Primary LanguageCApache License 2.0Apache-2.0

mouse-mover

The mouse-mover program is a command-line tool for Linux that prevents the screen saver from activating by continuously moving the mouse cursor at fixed intervals. It utilizes the Xlib and XTest libraries to interact with the X server and simulate mouse motion events.

Features

  • Prevents the screen saver from activating by simulating mouse movement.
  • Works on Linux systems with an X server.
  • Runs as a background process, continuously moving the mouse cursor.
  • Configurable interval for mouse movement.

Installation

  1. Ensure that you have the necessary development libraries installed for Xlib and XTest.

  2. Clone the repository to your local machine:

git clone <https://github.com/vroby65/mouse-mover.git>

  1. Compile the mouse-mover program using the provided script makefile:

cd mouse-mover

make

  1. Install the mouse_mover program:

sudo make install

Usage

To start the mouse-mover program, execute the following command in your terminal:

mouse-mover

The program will start moving the mouse cursor every 10 seconds by default. You can modify the interval by editing the source code and recompiling the program.

To stop the program, press Ctrl+C in the terminal where it is running.

Uninstallation

To uninstall the mouse_mover program, execute the following command in your terminal:

sudo make uninstall

License

This program is distributed under the Apache License 2.0.