Skip to content

Hammerspoon to Automatically eject TimeMachine disk daily

License

Notifications You must be signed in to change notification settings

jussivesa/AutoEject.spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoEject.spoon

This Hammerspoon allows you to set automatic daily time that ejects (TimeMachine external) disk. Useful if using external disk to make backups and you are using dock.

Note

Due to OS limitations, I could not figure out a way to mount the disk automatically. This is limitation most likely caused by the encryption of the disk.

Installation

This tool requires Hammerspoon to be installed and running.

Option 1: Use Git

In the Terminal:

mkdir -p ~/.hammerspoon/Spoons
git clone https://github.com/jussivesa/AutoEject.spoon.git ~/.hammerspoon/Spoons/AutoEject.spoon

And then continue with the Usage section.

Usage

After you installed AutoEject, add this to your ~/.hammerspoon/init.lua file:

local AutoEject = hs.loadSpoon("AutoEject"):start()

Then reload your Hammerspoon configuration. This will start AutoEject with the default settings. To adjust the configuration, see the Configuration section below.

You can temporarily stop the spoon by calling AutoEject:stop() and then restart it by calling AutoEject:start() again.

Configuration

local AutoEject = hs.loadSpoon("AutoEject"):configure{
  ejectDailyAt = "14:30"
}:start()

About

Hammerspoon to Automatically eject TimeMachine disk daily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published