This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# mousemon.sh - Andrey Cizov ([email protected]) 2018 (no license applied, free to use on any terms) | |
# | |
# Sometimes you'd like to have more control on what toggles the screensaver on your Ubuntu. | |
# In my scenario the mouse is too sensitive, so whenever I lock the screen subsequently turning | |
# off the monitors - it's too easy to turn them back on by accidentally touching the mouse. | |
# Even mildly loud bass is enough to do so. | |
# This script disables a selected device whenever the lock screen is activated. |