diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..bde4be2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[Makefile] +indent_style = tab +indent_size = 8 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8e59bea --- /dev/null +++ b/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 diff --git a/README.md b/README.md index 5bd3ad8..9666d46 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/privacy-settings.png b/privacy-settings.png new file mode 100644 index 0000000..1443286 Binary files /dev/null and b/privacy-settings.png differ