https://github.com/techgaun/easy-mouse-mover
A simple script to move mouse between monitors
https://github.com/techgaun/easy-mouse-mover
golang hacktoberfest hacktoberfest2021 xdotool
Last synced: about 1 year ago
JSON representation
A simple script to move mouse between monitors
- Host: GitHub
- URL: https://github.com/techgaun/easy-mouse-mover
- Owner: techgaun
- License: mit
- Created: 2021-08-29T04:46:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-29T20:58:26.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T06:34:36.017Z (about 1 year ago)
- Topics: golang, hacktoberfest, hacktoberfest2021, xdotool
- Language: Go
- Homepage:
- Size: 128 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easy-mouse-mover
> A simple script to move mouse between monitors
This simple script uses xdotool and xrandr
and can be used to move mouse from one monitor
to another with any number of monitors attached.
## Setup
- Install xdotool on your system
```bash
# debian-based eg. ubuntu
sudo apt install -y xdotool
```
- Install with go install
```bash
go install github.com/techgaun/easy-mouse-mover@latest
```
## Usage
- To move to left monitor, type: `easy-mouse-mover left`
- To move to right monitor, type: `easy-mouse-mover right`
- If you are on the left most monitor and try to move to left,
it will move to the right-most monitor (circular by design)
### Keyboard Shortcut
The easiest way to use this tool is by setting up keyboard shortcut on your system.
Refer to your system's documentation to setup the keyboard shortcut.
Here's a sample on Ubuntu 21.04

## LICENSE
Please see [LICENSE](LICENSE)