From 05ec21d029dd78d4ef529cb071cc5981cce1e08f Mon Sep 17 00:00:00 2001 From: testvariation Date: Tue, 29 Jan 2013 06:19:52 -0800 Subject: [PATCH] convert to MD, corrections, code highlighting --- Hotkey.md | 41 +++++++++++++++++++++++++++++++++++++++++ Hotkey.textile | 31 ------------------------------- 2 files changed, 41 insertions(+), 31 deletions(-) create mode 100644 Hotkey.md delete mode 100644 Hotkey.textile diff --git a/Hotkey.md b/Hotkey.md new file mode 100644 index 0000000..3523851 --- /dev/null +++ b/Hotkey.md @@ -0,0 +1,41 @@ +If you would like to change the hot key from `Ctrl+Alt+Cmd+M` to something else there is a possibility, but you have to do it via the terminal, there is not yet a GUI for that (but it is on my TODO list). You have to change it in the defaults. To do so open the `Terminal.app` you can find in the Applications' Utilities folder (shortcut `Cmd+Shift+U` in Finder). Depending on which keys you want to change there is one or two steps to do. + +## Change the key + +First take a look at this keyboard and find the number to the key you want to set: +![kb](http://github.com/downloads/jeena/Twittia/Apple-Keyboard.png) + +Then write this line into the `Terminal.app` and change the default number **46** to your number, then press enter and it is done. + +``` sh +defaults write nu.jabs.apps.tentia newTweetKey -int 46 +``` + +If you for example would like to use the key `T` instead, you would write: + +``` sh +defaults write nu.jabs.apps.tentia newTweetKey -int 17 +``` + +## Change the modifier keys + +To change the modifier keys is a little more work, you have to use you math skills here. Take a look at this numbers: + +``` +cmdKey: 256 +shitfKey: 512 +altKey: 2048 +controlKey: 4096 +``` + +You have to add the numbers of the keys you want to use together and then write this line, replacing the default number **6400** with the sum and press enter: + +``` sh +defaults write nu.jabs.apps.tentia newTweetModifierKey -int 6400 +``` + +For example, if you want to use the key combination `Ctrl+Alt+T` you have to first set `T` (that means **17**) as `newTweetKey` as seen above. Then add **4096** (`Ctrl`) to **2048** (`Alt`) which makes **6144** (you can use the console calculator `bc` to make sure it's correct), so you would write: + +``` sh +defaults write nu.jabs.apps.tentia newTweetModifierKey -int 6144 +``` \ No newline at end of file diff --git a/Hotkey.textile b/Hotkey.textile deleted file mode 100644 index 56ea377..0000000 --- a/Hotkey.textile +++ /dev/null @@ -1,31 +0,0 @@ -If you would like to change the hot key from `Ctrl Cmd Alt T` to something else there is a possibility, but you have to do it via the terminal, there is not yet a GUI for that (but it is on my TODO list). You have to change it in the defaults. To do so open the Terminal.app you can find in the Applications folder. Depending on which keys you want to change there is one or two steps to do. - -h2. Change the key - -First take a look at this keyboard and find the number to the key you want to set: -!http://github.com/downloads/jeena/Twittia/Apple-Keyboard.png! - -Then write this line into the Terminal.app and change the default number "46" to your number, then press enter and it is done. - -@defaults write nu.jabs.apps.tentia newTweetKey -int 46@ - -If you for example would like to use the key "T" instead you would write: - -@defaults write nu.jabs.apps.tentia newTweetKey -int 17@ - -h2. Change the modifier keys - -To change the modifier keys is a little more work, you have to use you math skills here. Take a look at this numbers: - -
cmdKey: 256
-shitfKey: 512
-optionKey: 2048
-controlKey: 4096
- -You have to add the numbers of the keys you want to use together and then write this line, replacing the default number "6400" with the sum and press enter: - -@defaults write nu.jabs.apps.tentia newTweetModifierKey -int 6400@ - -For example, if you want to use the key combination @Ctrl Opt T@ you have to first set T (that means 17) as newTweetKey as seen above. Then add Ctrl 4096 + Opt 2048 which makes 6144, so you would write: - -@defaults write nu.jabs.apps.tentia newTweetModifierKey -int 6144@ \ No newline at end of file