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

Overview

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
You might also like...
Provenance is a native macOS application that interacts with the Up Banking Developer API to display information about your bank accounts, transactions, categories, tags and more.

Provenance Provenance is a native macOS application that interacts with the Up Banking Developer API to display information about your bank accounts,

A simple, but powerful UI patcher for macOS Big Sur designed for everyone.
A simple, but powerful UI patcher for macOS Big Sur designed for everyone.

What is Patched Sur? Patched Sur is a UI patcher for macOS Big Sur, designed to make it easy to run macOS 11 on unsupported Macs. This patcher hopes t

Simple macOS app for xcodereleases.com
Simple macOS app for xcodereleases.com

XcodeReleases Simple macOS app for xcodereleases.com ✅ new Async Await API with URLSession to fetch the data ✅ Codables instead of SwiftyJson to decod

Lace - A simple NTS.live macOS application
Lace - A simple NTS.live macOS application

Marconio A simple macOS (and maybe iOS) application to listen to NTS through. NT

A simple star rating library for SwiftUI apps on macOS and iOS

DLDRating A simple star rating library for SwiftUI apps on macOS and iOS. Features Installation Usage Styling Credits DLDRating was made by Dionne Lie

iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.
iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.

iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.While the cost of storage seems expensive in comparison to other online storage services, its advantage is that it works natively across all your devices.

iOS Trakt Client - Keep track of your favorite TV shows and movies on your iPhone. (Under development)

CouchTracker Keep track of your favorite movies and tv shows on your iPhone Setup for development You will need Xcode 11.2.1 Swift 5.1.2 Run the follo

Show off your GitHub contributions from your lock screen 📱
Show off your GitHub contributions from your lock screen 📱

GitHubContributionsiOS V2 NOTICE: V2 is published. It is a complete rewrite using SwiftUI and Catalyst. Source code are now hosted on the version/2.x

Simple SwiftUI ViewModifier to easily align your views!

Align Align gives you an easy way to align views in SwiftUI. Simply import Align in whichever SwiftUI view you like and you're good to go. Align suppl

Owner
Viet Hung Nguyen
Founder at @pymivn , Python evangelist
Viet Hung Nguyen
CVE-2022-22639: Get a Root Shell on macOS Monterey

Details See Blog: https://www.trendmicro.com/en_us/research/22/d/macos-suhelper-root-privilege-escalation-vulnerability-a-deep-di.html Exploitation of

Mickey 114 Nov 30, 2022
The easiest way to install and switch between multiple versions of Xcode - with a mouse click.

Xcodes.app The easiest way to install and switch between multiple versions of Xcode. If you're looking for a command-line version of Xcodes.app, try x

Robots and Pencils 4.5k Dec 26, 2022
Simple app that tracks your works hours from the status bar.

Track Your Work Hours Simple app that tracks your works hours from status bar. Features: Simple and private. Data is stored in CSV in the Documents fo

Niteo 44 Dec 2, 2022
This To-Do app was developed using Swift and SwiftUI and works on iOS, MacOS (Apple Silicon) and WatchOS. The tasks are kept on storage even when the app is restarted.

ToDo-SwiftUI This app has a lot of sentimental value for me, given that it helped me a lot to understand the process of doing an iOS app and became th

Augusto Galindo Ali 6 Jul 12, 2022
SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Articles related to this project Clean Architecture for SwiftUI Programmatic navigation in SwiftUI project Separation of Concerns in Software Design C

Alexey Naumov 4k Jan 8, 2023
Pegase is a beautifully easy tool to keep track of your financial life on all your macOS

Pegase ?? Features ?? Documentation Personal account software Pegase is a beautifully easy tool to keep track of your financial life on all your macOS

null 2 Oct 12, 2021
Visualize your dividend growth. DivRise tracks dividend prices of your stocks, gives you in-depth information about dividend paying stocks like the next dividend date and allows you to log your monthly dividend income.

DivRise DivRise is an iOS app written in Pure SwiftUI that tracks dividend prices of your stocks, gives you in-depth information about dividend paying

Kevin Li 78 Oct 17, 2022
macOS application written in SwiftUI that downloads installer pkgs for the Install macOS Big Sur application.

Download Full Installer This is a Swift UI implementation of my fetch-installer-pkg script. It will list the full macOS Big Sur (and later) installer

Armin Briegel 654 Dec 31, 2022
"Podman for macOS" is a macOS frontend for Podman.

Podman for macOS "Podman for macOS" is a macOS frontend for Podman. It can be used to start and stop both the Podman Machine and its running container

Victor Gama 573 Jan 5, 2023
A SwiftUI dynamic property wrapper for fetching media from your photo library. (iOS, tvOS, macOS)

Media Also available as a part of my SwiftUI+ Collection – just add it to Xcode 13+ A package for simplifying the user of the camera and the user's ph

SwiftUI+ 20 Nov 16, 2022