Skip to content

Instantly share code, notes, and snippets.

Avatar
🦎

Akseli Akselmo

🦎
View GitHub Profile
@Akselmo
Akselmo / restrictmouse.sh
Last active Sep 22, 2021
Restrict mouse to screen
View restrictmouse.sh
#!/bin/bash
#Not my script! Found it when searching the web for this kind of option.
#Saved for future reference
#Run with "bash restrictmouse.sh 0 0 1919 1080" to restrict the mouse to your first monitor
#Run inside terminal so it's easier to close the script when done
#Needs xdotool to work
borderxl=$1
borderyu=$2