• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: binding keys to shell commands in X11/quartz-wm?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding keys to shell commands in X11/quartz-wm?


  • Subject: Re: binding keys to shell commands in X11/quartz-wm?
  • From: Evan de Riel <email@hidden>
  • Date: Fri, 28 Feb 2003 08:57:10 -0500

On Friday, Feb 28, 2003, at 01:03 America/Indianapolis, Peskin Brandon (email@hidden) wrote:

I know there's apple employees lurking out there so feel free to chime
in if this is a ``planned'' feature with something of a medium-to-high
priority.

Is there (or will there be?) a way to bind keys to the commands you
place under the ``Applications'' menu on the quartz window manager?

I'd like to be able to, for example, press F1 and have it run an xterm
-bg black -fg white -sb [...], or press F12
and have it run xload, or emacs, or whatever I choose.

Forgive my ignorance, but is there a way to do this within X11 itself
without relying on the window manager to support this function?

I don't know about using function keys, but X11.app reads the NSUserKeyEquivalents default, and this will work with the Applications menu.


For example, if I have an item in my Applications menu called "Xterm" (regardless of what the menu item actually does), I can call it with command-x if I can go to the command line and type:

defaults write com.apple.x11 NSUserKeyEquivalents '{"Xterm" = "@x";}'

@ there stands for the command key. ~ is the option key, $ the shift key, and ^ the control key. You can probably find a more complete guide to using the NSUserKeyEquivalents preference by browsing online.

Evan R de Riel.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: terminal/xterm
  • Next by Date: logitech mouse problem
  • Previous by thread: Re: binding keys to shell commands in X11/quartz-wm?
  • Next by thread: Re: x11-users digest, Vol 1 #177 - 9 msgs
  • Index(es):
    • Date
    • Thread