This lightweight application is designed to prevent your computer from entering sleep mode by periodically moving the cursor when it detects periods of inactivity. Additionally, the program allows you to disable the keyboard programmatically (MacOS only).
For macOS systems, the installation of additional tools and development libraries is not needed.
You may require a proxy app which can convert the new DBus calls to the old format. More info in systray library info. For Debian-based systems with GTK based trays, use this script to install snixembed.
-
Verify that you have
Go 1.23+
installed$ go version
If
go
is not installed, follow instructions on the Go website. -
Clone this repository
$ git clone https://github.com/sonjek/mouse-stay-up $ cd mouse-stay-up
-
Build
$ make build
The binary file is built and ready to run:
$ ./bin/mouse-stay-up
-
You can install the binary file to your OS.
Installs to
/usr/local/bin/
by default:$ make install or $ sudo make install
Install to a different location:
$ make install INSTALL_PATH=/tmp
All available makefile actions:
% make
Usage: make COMMAND
Commands:
build Build application
clean Remove binary file from local bin directory
install Install binary file from local bin directory to /usr/local/bin/
uninstall Remove binary file from /usr/local/bin/
start Build and start application
test Run unit tests
check-go Ensure that Go is installed
tidy Removes unused dependencies and adds missing ones
update-deps Update go dependencies
get-deps Download application dependencies
format Fix code format issues
deadcode Run deadcode tool for find unreachable functions
audit Quality checks
help Display this help