Skip to content

Instantly share code, notes, and snippets.

@Quentin-M
Quentin-M / gist:272d64faf0bc8533e131
Last active November 19, 2015 07:01
Unlock 1Password with Yukikey in Challenge-Response mode
-# Have 1Password Mini enabled
-# Configure Ubikey with the Challenge-Response mode (Slot 2 per defaut, change -2 by -1 to use Slot 1)
-# Get the response of /usr/bin/sudo /usr/local/bin/ykchalresp -2 *PIN_CODE* and set it as your 1Password master password
-# Modify the pin in the code below
-# Create a service in Automator, paste the script, set the script input as none, save it
-# Open MacOS Shortcut preferences, create a service with the exact same name, define a shortcut
-# The app that has the focus when you press the shortcut has to have assistive access
on toggle_mini()
tell application "System Events" to tell process "1Password mini"