It is currently Fri Oct 24, 2014 10:14 am

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Command and backquote (tilde) swap for Mac OS X Leopard
PostPosted: Sat Dec 01, 2007 6:31 pm 
Offline
 Profile

Joined: Tue Apr 04, 2006 7:57 pm
Posts: 13
I was able to get command/backquote (aka tilde) swap for 82 Key Deck working by making a slight mod to Takayama Fumihiko's KeyRemap4Macbook. I'm assuming that this software will work on any mac, but I only have a macbook on which to test.

Moving to KeyRemap4Macbook was necessary since the modified version of DoubleCommand found elsewhere on this forum, which previously worked under Tiger, is now broken under Leopard. Keyremap4macbook looked much easier to modify than DoubleCommand though unlike DoubleCommand it currently has no GUI PrefPane.

The modified KeyRemap4Mackbook package is here:

TAKEN DOWN. SEE BELOW FOR OFFICIAL PKG.

Useage

In a terminal window type the following to activate backquote and command swap:
Code:
sudo sysctl -w keyremap4macbook.remap.backquote2command=1


To deactivate backquote and command swap:
Code:
sudo sysctl -w keyremap4macbook.remap.backquote2command=0


To permanently save your new setting as default:
Code:
sudo /Applications/KeyRemap4MacBook/scripts/autosave.sh


Since I'm on a laptop which only needs the keys swapped when docked and the deck keyboard is present, I like to use the settings above in combination with the excellent SleepWatcher deamon. With sleepwatcher installed and running, create a file in your home directory named .wakeup, with the following contents:

Code:
#!/bin/bash

if  `/usr/sbin/ioreg |grep -q "Deck.*registered, matched, active"`
   then
   /usr/bin/sudo /usr/sbin/sysctl -w keyremap4macbook.remap.backquote2command=1

   else
   /usr/bin/sudo /usr/sbin/sysctl -w keyremap4macbook.remap.backquote2command=0
fi


Change the mode on .wakeup to make it executable:
Code:
chmod 755 .wakeup


Your system will now check for the presence of a Deck keyboard on wakeup and do the backquote2command swap only if the Deck keyboard is present.

Cheers-

_________________
- Captain Fibtastic


Last edited by fibtastic on Wed Dec 05, 2007 10:55 pm, edited 3 times in total.

Top
 

 Post subject:
PostPosted: Sun Dec 02, 2007 2:43 pm 
Offline
Site Admin
User avatar
 WWW  Profile

Joined: Tue Aug 09, 2005 1:48 pm
Posts: 463
Location: Kenosha, WI
Wow...thanks for the fantastic work fibtastic! I am sure many users will love to read this one.

_________________
Deck Guy Adam
http://www.deckkeyboards.com - The best backlit keyboards on Earth
http://www.tg3electronics.com - Parent company of Deck, leaders in custom industrial keyboards


Top
 

 Post subject: KeyRemap4macbook now supports backquote2command swap
PostPosted: Wed Dec 05, 2007 10:48 pm 
Offline
 Profile

Joined: Tue Apr 04, 2006 7:57 pm
Posts: 13
KeyRemap4Macbook now supports backquote2command swap natively.

Latest version here:

KeyRemap4Macbook-4.0.0.pkg.tar.gz

_________________
- Captain Fibtastic


Top
 

 Post subject: Re: Command and backquote (tilde) swap for Mac OS X Leopard
PostPosted: Sat Jan 28, 2012 8:26 pm 
Offline
 Profile

Joined: Sat Jan 28, 2012 8:09 pm
Posts: 2
I just bought a used Deck 82 and I'm truly amazed by it, however I ran into the same problems as I am on a Mac too.
I tried the suggested application, however the newest version is 7.5.0 and I cannot find the swap option suggested.
The only thing I found is the "Backquote2Command" setting and I'm using it, however by doing this I loose my Tilde key completely.
Thing is that the Backquote (`) is remapped to CMD, but the CMD not to Backquote.
There is a setting called "Swap Command+Backquote(`) and Option+Backquote(`)", but that doesn't work here (OS X 10.6.8 ),
Seeing that noone has posted in a couple of years, I guess people who are using Deck keyboards have become quite sparse among Mac users.
It's sad, cause it is the perfect KB for me, but it now feels a bit crippled, because I don't have a Backquote/Tilde anymore the way I have it now.
Hopefully there is something simply I can try, before I have to decide to Ebay it on.
Thanks in advance!!


Top
 

 Post subject: Re: Command and backquote (tilde) swap for Mac OS X Leopard
PostPosted: Sun Jan 29, 2012 9:23 am 
Offline
 Profile

Joined: Sat Jan 28, 2012 8:09 pm
Posts: 2
Nevermind I've gotten it to work!!! The only thing missing was to enable the L-Command to Backquote option.
Escapes me why I haven't thought of that yesterday!

Also exchanged caps so now the Backquote/Tilde key is to the upper right and I totally dig having the skull as command key! :D

Your keyboards rock Deck!

Anyway, here is the link to the new version of that brilliant program: http://pqrs.org/macosx/keyremap4macbook/


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits