Skip to content

A simple - no dependency Swift script that chases your mouse on MacOS (works for Monterey)

License

Notifications You must be signed in to change notification settings

hvnsweeting/tom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tom

A simple - no dependency Swift script that chases your mouse on MacOS (works for Monterey)

TomMi

What it does?

Keep the display on and move your mouse up then down every 10 seconds.

Why

At the time of writing this, the great UI automation lib PyAutoGUI at version 0.9.53 not working on MacOS Monterey (it worked perfectly on Catalina).

Instead of download random software on internet, let just write simple 10 lines of Swift that is native on MacOS without install anything (I don't know but if it does, please file an issue).

Why tom

What move a mouse? A cat

Who is the most famous cat on the world? Tom (& Jerry)

Install

Download tom file and chmod to allow it to run.

curl -LO https://raw.githubusercontent.com/hvnsweeting/tom/main/tom.swift
curl -LO https://raw.githubusercontent.com/hvnsweeting/tom/main/tom && chmod a+x tom

Dependency

Swift compiler

Usage

Open terminal, then type

./tom

To stop, press Ctrl c.

Test

Tested on Swift 5 on MacOS Monterey 12.4

Author

  • Viet Hung Nguyen

About

A simple - no dependency Swift script that chases your mouse on MacOS (works for Monterey)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published