Skip to content

Disable display sleep when closing computer (Works for M1 and M2) and built in mouse jiggler using python.

Notifications You must be signed in to change notification settings

korivernon/bootleg-amphetamine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootleg-amphetamine

I made this because for some reason my handy-ole Amphetamine stopped working and became a pain. I figured I could just make my own, so I present to you: bootleg-amphetamine!

Preface

@my boss - If you are reading this, I work, I promise <3.

Special thanks to Granit for the Zoom idea.

Setup

First, you want to install pip install pynput. This will allow you to use the module that we use to move the mouse.

Next, you want to add the location of where the move_mouse.py file is in the commands.sh file.

Following this, you need to add the commands.sh file to be referenced in your .zshrc file.

Once all of this is done, you should be able to run:

  • nosleep: this will prevent your machine from sleeping. You will notice that if you close your screen, it will still be on.
  • allowsleep: this will allow your machine to sleep and act as if nothing even happened :).

About

Disable display sleep when closing computer (Works for M1 and M2) and built in mouse jiggler using python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published