A bash script to enable caffeine mode.
Use this tool when you don't want to let the device to sleep while you are gone for some time
It works by simulating a left click (using xdotool) after every 10 minutes.
Steps to install(temp)
- Copy the caffeine file to your Desktop(or any other folder)
- Go to that folder via terminal.
- Type in
chmod +x caffeine
- Install xdotool
To run it
- Go to Desktop via terminal
- Enter
./caffeine
- Enter the number of minutes you want the computer to remain awake
(Place caffeine in /usr/local/bin instead of placing it in the desktop and following step 3 to be able to launch it from anywhere (that is no going to any specific folder to run it))