TyperTool
A basic implementation using Typer — give it text and a delay, then lean back and watch.
Install
Requirements
TyperTool does not come pre-compiled, so you’ll need Swift 4.0 or later in order to build it. (This version of Swift comes with Xcode 9 or later).
To download Xcode, get it from the Mac App Store or download it from the Apple Developer portal (requires sign-in).
Alternatively, download Swift from Swift.org, using Homebrew, swiftenv, or via some other method.
Homebrew
Installation:
$ brew install Samasaur1/core/typer
Updating:
$ brew upgrade typer
Mint
Installation:
$ mint install Samasaur1/TyperTool
Updating:
$ mint install TyperTool
Install Script
This method is not recommended, but will work for installing v1.0.0.
$ curl -fsSL https://raw.githubusercontent.com/Samasaur1/TyperTool/master/install.sh | bash
Manual Install
Installation & updating:
$ git clone https://github.com/Samasaur1/TyperTool.git
$ cd TyperTool
$ swift build -c release
$ sudo mv .build/release/typer /usr/local/bin/typer
If you were using a Swift version before 5.0, replace line 3 with the following:
$ swift build -c release -Xswiftc -static-stdlib
Build and run directly:
$ git clone https://github.com/Samasaur1/TyperTool.git
$ cd TyperTool
$ swift run TyperTool
Usage
$ typer <text> [delay]
(This gif may be slow, and I don’t know why) Here’s a video version:
Notes:
- TyperTool doesn’t let you change the typing rate (issue link).
- You can’t set defaults (for the delay, or eventually for the rate) (issue link).
- It’s difficult to paste text in, especially if the text has single or double quotes in it.
- To mitigate this, TyperTool is planning to accept text form standard input (via pipes, e.g.
echo "hello" | typer
orpbpaste | typer
) (issue link). - Visit the issues page to see the status of these issues.
Uninstall
TyperTool doesn’t leave anything behind, so you can use the normal uninstall method:
$ brew uninstall typer
$ mint uninstall TyperTool
$ sudo rm /usr/local/bin/typer