Author Topic: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX  (Read 5910 times)

0 Members and 1 Guest are viewing this topic.

Offline intelli78

  • Thread Starter
  • Posts: 1503
  • Location: Seattle
This is a pretty specific hack, but hopefully someone else will benefit.

I have gotten more and more used to the arrow/page up-down/home-end shortcuts on my HHKB, using the Fn key. I recently got a Poker 2 as well. With the Poker 2, it is possible to simulate these shortcuts using the Pn layer, but the Pn key is in a very awkward position, especially for HHKB users. The right Control key is much more natural, and feels much closer to the location of the Fn key on a HHKB.

This hack requires software because unlike the GH60, the Poker 2's Pn key cannot itself be remapped.

So basically, this mod makes it easier to switch back and forth between a HHKB and Poker 2. Also, note that you CAN use this with keyboards other than the Poker 2, should you want to.

You must have a Mac. I am sure this is possible with Windows and AutoHotKey, but that's not my main OS, sorry.

HOW TO DO IT

1. Download and install KeyRemap4MacBook if you don't already have it.  Awesome program. https://pqrs.org/macosx/keyremap4macbook/

2. Go to the program's preferences --> Menu Bar tab --> create a new profile called Poker II. Make sure it's selected in the system tray drop-down menu

3. Go to the Misc & Uninstall tab --> Open private.xml. When a new finder window opens, right click private.xml and open it with Text Edit

4. Replace the contents of private.xml with this:

More
<?xml version="1.0"?>
<root>


  <item>
    <name>R Control + forward slash = down arrow on Poker II</name>
    <identifier>private.new_downarrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::SLASH, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_DOWN</autogen>
  </item>


  <item>
    <name>R Control + left bracket = up arrow on Poker II</name>
    <identifier>private.new_uparrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_UP</autogen>
  </item>


  <item>
    <name>R Control + semicolon = left arrow on Poker II</name>
    <identifier>private.new_leftarrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::SEMICOLON, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_LEFT</autogen>
  </item>


  <item>
    <name>R Control + apostrophe = right arrow on Poker II</name>
    <identifier>private.new_rightarrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::QUOTE, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_RIGHT</autogen>
  </item>


  <item>
    <name>R Control + period = page down on Poker II</name>
    <identifier>private.new_pgdn1</identifier>
    <autogen>__KeyToKey__  KeyCode::DOT, ModifierFlag::OPTION_R,
  KeyCode::PAGEDOWN</autogen>
  </item>


  <item>
    <name>R Control + comma = end on Poker II</name>
    <identifier>private.new_end1</identifier>
    <autogen>__KeyToKey__  KeyCode::COMMA, ModifierFlag::OPTION_R,
  KeyCode::END</autogen>
  </item>


  <item>
    <name>R Control + L = page up on Poker II</name>
    <identifier>private.new_pgup1</identifier>
    <autogen>__KeyToKey__  KeyCode::L, ModifierFlag::OPTION_R,
  KeyCode::PAGEUP</autogen>
  </item>


  <item>
    <name>R Control + K = home on Poker II</name>
    <identifier>private.new_home1</identifier>
    <autogen>__KeyToKey__  KeyCode::K, ModifierFlag::OPTION_R,
  KeyCode::HOME</autogen>
  </item>


</root>

5. Save and close TextEdit

6. Go back to "Change Key" tab and click ReloadXML

7. Eight new settings will appear in the list below. Enable them all. Congratulations, your Poker 2 is now a little more like a HHKB.


COMMON TROUBLESHOOTING TIPS

- If you have swapped Control and Option in OSX system preferences, just replace the 8 instances of "CONTROL_R" above with "OPTION_R"

- If not working, check DIP switches to make sure you haven't remapped right control to tilde



If anyone has requests for other KeyRemap mods, let me know and I'll try to help.
« Last Edit: Wed, 12 February 2014, 12:46:06 by intelli78 »
Please consider carefully before you decide to comment, for Jesus.

Offline Grr8

  • Posts: 36
  • Location: ZZ9 Plural Z Alpha
  • Quack!
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #1 on: Wed, 12 February 2014, 15:49:05 »
Thanks for that.

Out of interest, what do you do for the `~ key?

Because it is used for switching windows in OSX, on the Poker II, Ctrl-` becomes Ctrl-Shift-Esc, which is a bit awkward.
Daily Driver: Poker II Backlit (Ducky Mini-fied) + Amazon o-rings. Future daily driver IBM AT Model F (restoring now). For fun: IBM SSK 1397681 (NIB), IBM SSK 1391472, IBM Industrial 101 Square label 1388032, IBM Industrial 101 Black label 1394946, IBM 1391401 (bolt-modding now), IBM 1370477, IBM 42H1292 (USA), IBM 52G9700 IBM, and more....
More
Ducky Shine w/Blues + WASD o-rings, Ducky Shine 3 TKL w/Browns + ebay o-rings, Rosewill RK-9100 w/Blues, Apple Wireless (slim), Apple Wireless White A1016, Apple Extended II ADB. Next? HHKB2Pro?

Offline intelli78

  • Thread Starter
  • Posts: 1503
  • Location: Seattle
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #2 on: Wed, 12 February 2014, 16:01:30 »
Thanks for that.

Out of interest, what do you do for the `~ key?

Because it is used for switching windows in OSX, on the Poker II, Ctrl-` becomes Ctrl-Shift-Esc, which is a bit awkward.

Right now, I have ~ programmed as Pn+Esc and ` programmed as Pn+1.
Please consider carefully before you decide to comment, for Jesus.

Offline Hypersphere

  • Posts: 1886
  • Location: USA
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #3 on: Mon, 15 September 2014, 11:28:15 »
This is a pretty specific hack, but hopefully someone else will benefit.

I have gotten more and more used to the arrow/page up-down/home-end shortcuts on my HHKB, using the Fn key. I recently got a Poker 2 as well. With the Poker 2, it is possible to simulate these shortcuts using the Pn layer, but the Pn key is in a very awkward position, especially for HHKB users. The right Control key is much more natural, and feels much closer to the location of the Fn key on a HHKB.

This hack requires software because unlike the GH60, the Poker 2's Pn key cannot itself be remapped.

So basically, this mod makes it easier to switch back and forth between a HHKB and Poker 2. Also, note that you CAN use this with keyboards other than the Poker 2, should you want to.

You must have a Mac. I am sure this is possible with Windows and AutoHotKey, but that's not my main OS, sorry.

HOW TO DO IT

1. Download and install KeyRemap4MacBook if you don't already have it.  Awesome program. https://pqrs.org/macosx/keyremap4macbook/

2. Go to the program's preferences --> Menu Bar tab --> create a new profile called Poker II. Make sure it's selected in the system tray drop-down menu

3. Go to the Misc & Uninstall tab --> Open private.xml. When a new finder window opens, right click private.xml and open it with Text Edit

4. Replace the contents of private.xml with this:

More
<?xml version="1.0"?>
<root>


  <item>
    <name>R Control + forward slash = down arrow on Poker II</name>
    <identifier>private.new_downarrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::SLASH, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_DOWN</autogen>
  </item>


  <item>
    <name>R Control + left bracket = up arrow on Poker II</name>
    <identifier>private.new_uparrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_UP</autogen>
  </item>


  <item>
    <name>R Control + semicolon = left arrow on Poker II</name>
    <identifier>private.new_leftarrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::SEMICOLON, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_LEFT</autogen>
  </item>


  <item>
    <name>R Control + apostrophe = right arrow on Poker II</name>
    <identifier>private.new_rightarrow1</identifier>
    <autogen>__KeyToKey__  KeyCode::QUOTE, ModifierFlag::OPTION_R,
  KeyCode::CURSOR_RIGHT</autogen>
  </item>


  <item>
    <name>R Control + period = page down on Poker II</name>
    <identifier>private.new_pgdn1</identifier>
    <autogen>__KeyToKey__  KeyCode::DOT, ModifierFlag::OPTION_R,
  KeyCode::PAGEDOWN</autogen>
  </item>


  <item>
    <name>R Control + comma = end on Poker II</name>
    <identifier>private.new_end1</identifier>
    <autogen>__KeyToKey__  KeyCode::COMMA, ModifierFlag::OPTION_R,
  KeyCode::END</autogen>
  </item>


  <item>
    <name>R Control + L = page up on Poker II</name>
    <identifier>private.new_pgup1</identifier>
    <autogen>__KeyToKey__  KeyCode::L, ModifierFlag::OPTION_R,
  KeyCode::PAGEUP</autogen>
  </item>


  <item>
    <name>R Control + K = home on Poker II</name>
    <identifier>private.new_home1</identifier>
    <autogen>__KeyToKey__  KeyCode::K, ModifierFlag::OPTION_R,
  KeyCode::HOME</autogen>
  </item>


</root>

5. Save and close TextEdit

6. Go back to "Change Key" tab and click ReloadXML

7. Eight new settings will appear in the list below. Enable them all. Congratulations, your Poker 2 is now a little more like a HHKB.


COMMON TROUBLESHOOTING TIPS

- If you have swapped Control and Option in OSX system preferences, just replace the 8 instances of "CONTROL_R" above with "OPTION_R"

- If not working, check DIP switches to make sure you haven't remapped right control to tilde



If anyone has requests for other KeyRemap mods, let me know and I'll try to help.
Nice to see someone else who uses a HHKB with a Mac, and who has dealt with configuring a Poker II with a HHKB-like layout.

Could you accomplish the same thing by enabling Control_R as Fn and then under "Device-Specific Setting" checking "Enable HHK compatible Arrow Key Mode"?

However, I think this still leaves the problem that both the hardwired Fn and Pn keys will essentially be dead keys on the Poker II (from the standpoint of a HHKB user).

Offline ShivaYash

  • Posts: 161
  • Location: Berlin, DE
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #4 on: Tue, 07 October 2014, 05:52:11 »
Brillant, but I also like to have backslash as the delete key. What other mods can make my little POKER II more like my beloved HHKB?
IBM Model M SSK, HHKB Pro 2 BT and Realforce 104U HiPro

Offline ShivaYash

  • Posts: 161
  • Location: Berlin, DE
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #5 on: Tue, 07 October 2014, 05:55:45 »
and it would be sweet to have keycaps that reflect a HHKB style layout.
IBM Model M SSK, HHKB Pro 2 BT and Realforce 104U HiPro

Offline Hypersphere

  • Posts: 1886
  • Location: USA
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #6 on: Tue, 07 October 2014, 07:03:45 »
Brillant, but I also like to have backslash as the delete key. What other mods can make my little POKER II more like my beloved HHKB?
You can do this using Karabiner software for the Mac. There are also remapping programs for linux and Windows, but I do the remapping in my Mac and connect to other OSs using Synergy.

Offline ShivaYash

  • Posts: 161
  • Location: Berlin, DE
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #7 on: Tue, 07 October 2014, 07:31:50 »
Yes sorry I should have been clearer... I already re-map the keys I want, but wanted to know if anything ELSE may be done by the clever people of GH to further improve the sweet little POKER II on the Mac... especially the other followers of this thread, like us, use the HHKB and Poker II on a Mac.

My set up is this: iMac 27 with the HHKB - my home board and daily driver. I do miss primary cursor keys and am writing a PhD, so use them a lot, but have gotten use to the Fn layer on the HHKB.

At school or when working away from home, MacBook Air 13 with POKER II (Cherry Browns), I'd have liked BLUES but I mainly work in public places, like my school library, so wanted something less noisy...
Likewise I miss the cursors but today's find of the XML hack makes the Poker II even more usable.

Having swapped the backslash and delete in Karabiner, I am almost happy but there might be other tweaks out there from our fellow niche KB application users.

Much love.

Brillant, but I also like to have backslash as the delete key. What other mods can make my little POKER II more like my beloved HHKB?
You can do this using Karabiner software for the Mac. There are also remapping programs for linux and Windows, but I do the remapping in my Mac and connect to other OSs using Synergy.
IBM Model M SSK, HHKB Pro 2 BT and Realforce 104U HiPro

Offline intelli78

  • Thread Starter
  • Posts: 1503
  • Location: Seattle
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #8 on: Tue, 07 October 2014, 07:49:43 »
I like using F1..F12 to Functional Keys (Brightness Adjust, Music Control, etc) in Karabiner.

There are a few entries that look very similar to this, which don't work (not sure what they are for) so make sure you find the one with exactly the above text.
Please consider carefully before you decide to comment, for Jesus.

Offline ShivaYash

  • Posts: 161
  • Location: Berlin, DE
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #9 on: Tue, 07 October 2014, 11:59:09 »
Yep the Fn layer is good. Any idea why when I hit on my KB 'Fn' + [ or ], I get the built in screen brightness UP or DOWN icon in the middle of my monitor?

I can't see the setting ON in Karabiner.

Many thanks...

I like using F1..F12 to Functional Keys (Brightness Adjust, Music Control, etc) in Karabiner.

There are a few entries that look very similar to this, which don't work (not sure what they are for) so make sure you find the one with exactly the above text.
IBM Model M SSK, HHKB Pro 2 BT and Realforce 104U HiPro

Offline intelli78

  • Thread Starter
  • Posts: 1503
  • Location: Seattle
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #10 on: Tue, 07 October 2014, 12:54:43 »
It may be built into the keyboard's firmware. Check the instruction manual.
Please consider carefully before you decide to comment, for Jesus.

Offline ShivaYash

  • Posts: 161
  • Location: Berlin, DE
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #11 on: Wed, 15 October 2014, 03:48:10 »
Rather annoyingly this wonderful mod does not want to work on my iMac 27 running the Yosemite public beta 6. A shame as I have new keycaps for the little POKER II and wanted to test them out at home. The MacBook 13 running 10.9.5 worked immediately. Any ideas or best to simply wait a few weeks, for the non-beta (not sure what this stable release should be called) to be issued.

Thanks,

PS. Running with some vintage WYSE keys on the POKER II - very retro and they feel great, I really do like the older terminal key profile... a little shallower than stock 'cherry' keys. I say 'cherry' as the POKER II is not original, but a copy of the cherry.
IBM Model M SSK, HHKB Pro 2 BT and Realforce 104U HiPro

Offline ShivaYash

  • Posts: 161
  • Location: Berlin, DE
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #12 on: Wed, 29 October 2014, 06:55:19 »
It may be built into the keyboard's firmware. Check the instruction manual.

Still can't work it out, what DIP switch set up have you got?

Also, any idea on how to get BACKWARD DELETE on the Poker II? I have set up slash just under the delete key for delete, but would like Fn + slash to be BACKWARD DELETE.

Thanks!
SY
IBM Model M SSK, HHKB Pro 2 BT and Realforce 104U HiPro

Offline beestingza

  • Posts: 9
Re: HOW TO: Simulate HHKB Fn shortcuts with a Poker 2's Right Control, on OSX
« Reply #13 on: Fri, 13 February 2015, 19:19:23 »
Thanks for posting this.   I made use of it before I got my HHKB.  I hope you don't mind my sharing a few tips for adapting the HHKB here. If this is the wrong spot for this, let me know and I'll move it.

I made a few discoveries with Karabiner and Seil that make using the hhkb even more sublime than it already was to begin with.  There is an option that enables ESDF as the arrow keys, which just seems superior to the wasd placement.  Also specifically for the HHKB, I used Seil to remap Command_R to Control_R so I could use the ESDF keys by hitting the right command key with my thumb (this will make sense if you look at the Karabiner options).  Having arrow keys in the home position is amazing.  This of course doesn't preclude setting up right-hand arrow keys also.

Last trick I learned was to use Synergy to enable sharing my magic trackpad and HHKB with my PC. I have never had such a sweet setup for multiple computers, so thank you Intelli78 for getting me started in the right direction (with the Poker X also).