Matching Up Hotkeys for OS X and Linux GUIs?
I use a MacBook Pro for my main machine, but also have a Ubuntu desktop. I get irritated about switching between command-oriented hotkeys and ctrl-oriented hotkeys (cmd-a on OSX = ctrl-a on Linux/windows). I've looked over a lot of forums and have found that Gnome doesn't seem capable of changing hotkeys, while xfce and fluxbox can. The ideal solution would be a way to change system keys in X, or at the system level — that way I can keep compiz. Does anyone have any ideas or know a trick to change system hot keys?
Superglue a tack onto the control button of your mac. The negative reinforcement will help you learn.
I've looked over a lot of forums and have found that Gnome doesn't seem capable of changing hotkeys
You mean System>>Preferences>>Keyboard Shortcuts doesn't really exist? Or am I misunderstanding?
Go wild.
you can remap your keys to anything you want
works great for the lame "media keys" on all those $80 keyboards out there
i havent done it in forever but you might want to read the man pages for 'xev' and 'xmodmap'
man xmodmap
For every problem, there is at least one solution that is simple, neat, and wrong.
Well I have no experience with OSX, but as for Gnome, assuming you're using Metacity as your compositing window manager (and most distros do), you can set a ton of key bindings through gconf-editor. To access it, make sure gconf-editor is installed, then as the user running the WM (hopefully a non-privileged user), run gconf-editor. From there navigate to /->apps->metacity and bind away. You can also assign commands to key combos as well. If you're using Compiz, then install ccsm and keybindings are set under General Options. If on the odd chance you're using fluxbox, the keys are set in ~/.fluxbox/keys (hint: Mod1 == Alt).
You may want to look into xbindkeys, an old app that is windows manager agnostic.The downside is whatever WM you use will also have its keybindings (not sure who wins out if the same key is bound twice). It's keys are specified in ~/.xbindkeysrc and it runs as a daemon.
Sadly, PS/2 was yet another victim of USB, which doesn't care what you plug into it, the electrical slut.
Take a look at the examples at the bottom of the man page.
Both OS do this, and it's very easy to figure out.
If you can't find the flexibility you require built into the OS, at least on OSX I know their is another solution:
http://doublecommand.sourceforge.net/
If you want to use a mac keyboard on your desktop you should buy one.
I'm sorry, but "delete" != "backspace", cmd a dos shell, and "option" belongs on a toolbar.
that being said, I believe KDE has the ability to change global hotkeys. Maybe you should try a distro that uses it, or install it on your ubuntu. To my knowledge, compiz-fusion also supports hotkey remapping.
Though, you could quite simply, just buy a mac keyboard for your desktop. That would probably make the most sense of all! Though not the cheapest sense.
They're using their grammar skills there.
I hate to say it, but RTFM. Same to slashdot editors who posted this.
sounds like you need to change the mac to bring it in line with everybody else, I drive a vintage car, the gear pattern and pedal arrangement is different to modern cars, ie; reverse is where 1st is normally found, but I have no problem driving it or switching it and a modern manual car.
Most of the existing shortcuts in KDE are re-assignable, and you can make the desktop more Mac-like than Gnome in some respects:
For instance, You can create a Mac-like menu-bar at the top where your app menus display instead of separately in each app window.
Or you can edit your .gtkrc file.
Unfortunately, there are only 2 canned keybinding-sets shipped with GTK: "Default" (which is Windowsy, these days) and "Emacs" (which makes things behave like the GNU tools (Emacs, Bash, etc.) traditionally behave.
These canned sets are defined in /usr/share/themes/*/gtk-2.0-key/gtkrc; I think that, if you make a new directory (where the "*" is), and create your own `gtkrc' file under it, the that name becomes valid in GConf. You may be able to find a Mac-alike gtkrc file that someone else has already produced, now that you know what to look for.
Though, actually: are the keybindings similar enough that you could just remap the "command" key so that it acts like "control"? Or does Mac OS use the "control" strokes for something else?
-rozzin.
"option" belongs on a toolbar.
The Option key on Macs is closer to a compose key than anything else. It's how one enters the characters that are common in the numerous languages of Europe: press Option+e before a vowel to place the acute accent (e -> é) above it.
There are keybinding tools for OS X like doublecommand (http://doublecommand.sourceforge.net/).
However OS X uses control for control. That is, like Gnome, ctrl-c in a terminal is ctrl-c, and unlike gnome, cmd-c in a terminal is copy, whereas gnome has to use shift-ctrl-c (IIRC) or something other than ctrl-c like copy is in other apps.
It's a shame that GNOME had hidden this EXTREMELY useful functionality. GNOME was supposed to be easy and intuitive right? Yeah right :) ;)
I've used this a lot to fix the keybindings in GNOME which is very much broken. For example, I want CTRL-G for "Go to line" in gedit and I want to be able to open new tabs with CTRL-T like I do in the browser (which is now setting the standard because I spend so much time in the browser so that's what my brain in wired up for).
No one suggested just recompiling the Linux apps and running them under OS X? :)
Village idiot in some extremely smart villages.
... does anyone know how to have KDE v3.5.9's pager to work correctly with Compiz? I can see my programs in taskbar's pager's virtual desktop 1, but not in other three (have four virtual desktops). :(
Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
There's an add-on for firefox that adds emacs keybindings to firefox. It added too many of the emacs keybindings for my taste, but it was easy to deactivate the ones I didn't like.
Find free books.
What I did was remap the Command key to generate a Control key event under X. That way, the shortcuts that work using Command under OS X and using Control under X can be accessed with the same key.
I believe the following lines in my .xmodmaprc accomplish the remapping, but I haven't double checked:
Please correct me if I got my facts wrong.
I use a mac at home and a windows machine at work. My experience: After just a little time, you don't confuse shortcuts etc. any more. Your brain adjusts very fast to diffrent environments and their specifics. Take your time.
seriously, use kde. KDE default (not kubuntu defaults) has control q to quit stuff... but seriously, you can tell it in the keyboard settings to switch control and command keys for shortcuts.
Most DEs will give you a way to change this. Otherwise you can use xmodmap.
That said, I prefer the Mac way of doing things (map the command key to Super) because it means (a) you get a greater reach over the keyboard when entering shortcuts one-handed, and (b) reserves Control as a modifier or for entering escape sequences in the console. Just my tuppence's worth...
Those using pirated Tinysoft signatures(TM) are a real threat to society and should all be thrown in jail.
I am relatively new to the OS-X world myself (been using it for about 7 months now; I was a Linux user for 10 years, and a SunOS Unix user for about 10 years before that). At first I was annoyed about not being able to do some of the key remapping under OS-X that I used to do under Linux (e.g. I didn't see any easy way to turn the backquote/tilde key into an escape/tilde key, and the escape key into a backquote/tilde key).
I then came across the following little program:
http://www.pqrs.org/tekezo/macosx/keyremap4macbook/
Despite the name, it's not only for MacBooks; I use it on my iMacs as well. The author is very receptive to suggestions, plus you can download the source and add stuff yourself if you like. I'm not saying this will necessarily solve the original poster's problems, but I've found this thing handy enough that I thought it was worth mentioning here.
You know what sucks? Spending time in pico that includes frequently searching for a string of text, and then trying to search for a string of text in Firefox.
I'm really glad they added the Recently Closed Tabs feature.
$x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
$x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
"xkeycaps" is a GUI tool that allows you to remap your keyboard quite easily. Since it works at the level of the keymap, all upper layers (such as Gnome) will use that keymap without effort.
Your Control and Command and Option keys are (to the X keymap) simply "modifier" keys. Make the propeller key emit the modifier for your system's "control" key, and you're done.
Note that this tool really wraps the oft-mentioned xmodmap. But I use it even for simple Caps/Control swapping. And the docs will explain how to use a different mapping for different machines. (If you have a network of boxes, this allows you to have "your" keymap no matter what box you log in to.)
Anyway, Google for xkeycaps and take back your keyboard.
(And for the record, the A2 open-apple and closed-apple keys were simply wire-or'ed to the game paddle buttons...)
When did slashdot become a forum to ask these kinda questions? Apple->System Preferences->Keyboard&Mouse->Keyboard Shortcuts I assume your going to use a lot more windows/linux PC's than Mac if your a new mac user and if your too lazy to learn to use different key strokes in windows/linux to your new mac it's probably better to change the mac and leave everyone else's key bindings alone. Also why suddenly do something the new way when you can keep doing stuff the old? -- Why reinvent the wheel? That's what we have china for.
The reason this preference is hidden and not enabled by default is usability. If you accidentally press a key with your mouse over a menu item, it will rebind the key. And believe me, "randomly" rebound keys confuse a lot of users.
Ever tried WindowMaker ... you will be amazed how close it is to the Mac ... perhaps due to the OpenStep.
Personally, I find the Mac modifiers to be more comfortable. Less hand movement is required to swing down and hit, say, command-x than is for control-x. That's why I used xmodmap to make my Linux and Windows modifiers easier to use.
I guess what I'm trying to say is "fuck you" to everyone who thinks the Mac modifiers are antiquated or foolish. Fuck all of you!
- it's such a great OS so surely that's possible... no, wait.
Comment removed based on user account deletion
You can also use "xev" to double check your mappings, since it will tell you the actual X event that is being generated when the key is pressed.
All I want to know is where's the INSert key on mac keyboards?
Us coders sometimes *gasp* toggle between insert & over-write for code and/or cmd line editing....
Here, in my blog:
http://pierreth.blogspot.com/
I recently got a Mini and managed to hook it up via a USB-to-PS/2 converter to my KVM, to which is attached a real IBM keyboard, which I really don't want to replace. So I had to figure out how to make Ctrl act like Command on the Mac. IMO this is very natural - Ctrl is in a better location, and now Mac-style commands that I'm already used to, like Ctrl-W to close a window, work the same on all 3 platforms with the same keyboard. What annoys me though is when using the Mac terminal, I have to use a different key to generate Ctrl-C Ctrl-D etc. I mapped the right Alt to that.
What I have not found is a way on the Mac to make Caps Lock act as a control key. That would be ideal. Then the existing Ctrl is in the best position to be the Command key, Caps Lock is in the best position to be Control (like on a real Unix machine) and I already know how to make it act the same on Windows and Linux.
everything.
Y'all wanna EN-dash ( or other typographic symbol )? you got it...
Y'all wanna Russian/French/Japanese char of some kind? you got it...
$ find /usr -name "keysymdef.h"
( man xmodmap to discover what it's called, if it's different on your distro )
once you find the thing, READ it, and drool upon the potential!
I just stuck a bunch of xmodmap lines in my ~/.bashrc and it was fixed good.
Shift doesn't work on all of the number-pad, though ( you want LOTS of things on your keyboard? hehehe :)
I used to use the KDE keyboard setup thingy, having one ALT as the next modifier, iirc, so I had regular/shift/alt for most keys: make a map for 'em, and you can do typography much quicker than through the dang menu-thingies )
The simple answer is Peter N. Lewis's excellent "Keyboard Maestro" http://www.keyboardmaestro.com/main/ . I started confusing Emacs keyboard combinations with OS X's native (like always pressing C-x, C-s to save a document even when written in TextEdit). It is remarkably configurable and before long your Linux keyboard shortcuts will work on your Mac. Note of caution though, OS X's native Keyboard Shortcuts (System Prefs, Keyboard & Mouse) are really unstable and keep on getting forgotten - Keyboard Maestro's might occasionally get confused but are never lost!