All Projects → DaniruKun → siri-shortcuts.el

DaniruKun / siri-shortcuts.el

Licence: GPL-3.0 license
A set of Emacs commands and functions for interacting with Siri Shortcuts.

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to siri-shortcuts.el

static-hands
⌨️🤯 Stop moving hands, and start code fast ⚡⚡
Stars: ✭ 36 (+28.57%)
Mutual labels:  shortcuts
papis.el
Emacs package for papis
Stars: ✭ 22 (-21.43%)
Mutual labels:  emacs-package
ranger-archives
Ranger Plugin for Creating and Extracting Archives
Stars: ✭ 68 (+142.86%)
Mutual labels:  shortcuts
iphone-shortcut-library
Apple iphone IOS 捷径 app 库(Apple Iphone IOS shortcut Library)
Stars: ✭ 42 (+50%)
Mutual labels:  shortcuts
cheatsheet-generator
Generates cheatsheets for your (favourite) apps
Stars: ✭ 49 (+75%)
Mutual labels:  shortcuts
mac-terminal-shortcuts
Useful and common terminal shortcuts for macOS
Stars: ✭ 39 (+39.29%)
Mutual labels:  shortcuts
code2img
🖨️ A carbon-now API wrapper and iOS Shortcut
Stars: ✭ 74 (+164.29%)
Mutual labels:  shortcuts
bnf-mode
A GNU Emacs major mode for editing BNF grammars
Stars: ✭ 34 (+21.43%)
Mutual labels:  emacs-package
react-shortcut
Convenient React component that detects if the given key combination is pressed, and triggers a callback
Stars: ✭ 16 (-42.86%)
Mutual labels:  shortcuts
Start-Menu-Manager
App to add websites/software/files/folders/scripts to the Windows 10 Start Menu and Taskbar, and priority shortcuts to Windows 10 Search.
Stars: ✭ 126 (+350%)
Mutual labels:  shortcuts
DesktopComposer
Manage Start Menu and Desktop Shortcuts for Windows 10/Windows 2019 in Active Directory Environment
Stars: ✭ 41 (+46.43%)
Mutual labels:  shortcuts
quickey
⚡️ Quickey creates keyboard shortcuts for your web apps
Stars: ✭ 37 (+32.14%)
Mutual labels:  shortcuts
shell
Shell functions and aliases
Stars: ✭ 43 (+53.57%)
Mutual labels:  shortcuts
keybind
ClojureScript key bindings (shortcut) library
Stars: ✭ 85 (+203.57%)
Mutual labels:  shortcuts
hotkey
⌨️ cross-platform hotkey package
Stars: ✭ 82 (+192.86%)
Mutual labels:  shortcuts
qxtglobalshortcut
Cross-platform library for handling system-wide shortcuts in Qt applications
Stars: ✭ 61 (+117.86%)
Mutual labels:  shortcuts
use-keyboard-shortcut
A custom hook that allows adding keyboard shortcuts to React applications
Stars: ✭ 41 (+46.43%)
Mutual labels:  shortcuts
firefly-ios-shortcuts
iOS Shortcut to create transactions in Firefly III
Stars: ✭ 39 (+39.29%)
Mutual labels:  shortcuts
vg
Vector-geometry toolbelt for 3D points and vectors
Stars: ✭ 106 (+278.57%)
Mutual labels:  shortcuts
nroam
Org-roam backlinks within org-mode buffers
Stars: ✭ 106 (+278.57%)
Mutual labels:  emacs-package

siri-shortcuts.el

https://melpa.org/packages/siri-shortcuts-badge.svg https://github.com/DaniruKun/siri-shortcuts.el/actions/workflows/ci.yml/badge.svg https://github.com/DaniruKun/siri-shortcuts.el/actions/workflows/melpazoid.yml/badge.svg

This package allows you to interact with Siri Shortcuts on macOS Monterey and newer. It provides both interactive user commands, as well as public extension APIs.

This opens up a lot of possibilities for Apple ecosystem automation, including but not limited to:

  • Automating HomeKit smart devices
  • Using existing iOS utility Shortcuts
  • Media playback automation
  • Executing other scripts
  • Interacting with the macOS window manager

While a lot of these things could be accomlished with Automator and AppleScript, they are quite old and awkward to use, while Shortcuts offer a simple Scratch-like UI with lots of available automations, as well as a gallery to re-use existing Shortcuts.

Contents

Installation

MELPA

If you installed from MELPA, you’re done. Just run one of the commands below.

M-x package-install RET siri-shortcuts RET

Manual

Then put this file in your load-path, and put this in your init file:

(require 'siri-shortcuts)

Demo

This is a small demo of running a Siri Shortcut than turns on a Yeelight Light Strip and sets it to pink:

shortcuts-demo.gif

Usage

Run one of these commands:

  • siri-shortcuts-run: Run a Siri Shortcut from a list of available Shortcuts.
  • siri-shortcuts-run-async: Same as siri-shortcuts-run, but asynchronous.
  • siri-shortcuts-gallery-open: Open the Shortcuts Gallery.
  • siri-shortcuts-gallery-search: Search the Shortcuts Gallery.
  • siri-shortcuts-open-app: Open the Shortcuts app.
  • siri-shortcuts-edit: Edit an existing Shortcut.
  • siri-shortcuts-create: Create a new Shortcut.

Tips

  • You can use the full Shortcuts scheme URL API by using the function siri-shortcuts-browse-url.

    For example:

    (siri-shortcuts-browse-url "open-shortcut" "MyShortcut")
        

    Or use the high-level functions directly in your code:

    (siri-shortcuts-run "SampleShortcut")
        

Development

Bug reports, feature requests, suggestions — oh my!

License

GPLv3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].