Skip to content

Commit

Permalink
Added make install & make clean; updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Oct 9, 2016
1 parent 589b547 commit be5d62f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
@@ -0,0 +1,3 @@
[Makefile]
indent_style = tab
indent_size = 8
7 changes: 7 additions & 0 deletions Makefile
@@ -0,0 +1,7 @@
install: clean
cp -r fn.app /Applications/
cp -r fn.workflow ~/Library/Services/

clean:
rm -rf /Applications/fn.app
rm -rf ~/Library/Services/fn.workflow
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -20,16 +20,18 @@ quit application "System Preferences"

## Installation

Copy the `fn.app` folder into `/Applications`.
Run `make install` to copy `fn.app` to `/Applications` and `fn.workflow` to `~/Library/Services`.

(Run `make clean` to remove those files)

In OS X 10.9 (Mavericks) and later, you also need to:

1. try to open the `fn` app once either from spotlight or from `Applications` folder (otherwise it will not appear in accesibility menu in step 3)
1. try to open the `fn` app once either from spotlight or from `Applications` folder (otherwise it will not appear in accessibility menu in step 3)
2. go to `System Preferences > Security & Privacy > Accessibility > Privacy`
3. tick `fn.app` under `Allow the apps below to control your computer`.


![preferences](https://f.cloud.github.com/assets/326885/1463976/de2c61f0-453c-11e3-9129-f0d992aeb2a8.png)
![preferences](https://github.com/jkbrzt/macos-fn-toggle/blob/master/privacy-settings.png)


## Usage
Expand All @@ -42,10 +44,8 @@ Run the app. The fastest way to do it is from Spotlight:

## Enable Keyboard shortcut

Create a service that runs fn.app then assign a key to it
1. Goto `System Preferences` > `Keyboard` > `Shortcuts` > `Services` > `General` (at the end of the list) and assign a new shortcut to `fn` service

1. copy `fn.workflow` folder into `~/Library/Services`
2. Goto `System Preferences` > `Keyboard` > `Shortcuts` > `Services` > `General` (at the end of the list) and assign a new shortcut to `fn` service

![keybard-shortcut](https://github.com/jkbrzt/macos-fn-toggle/blob/master/keyboard-shortcut.png)

![keybard-shortcut](https://github.com/alexproca/macos-fn-toggle/blob/master/keyboard-shortcut.png)
Binary file added privacy-settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be5d62f

Please sign in to comment.