Re: There has gotta be an easy answer - binding commands to keys ??



Around about 26/01/07 21:39, William Case typed ...
1) Through MetaCity or any other GTK mechanism, create a command that is
equivalent to <Ctrl><Shift>U2714 and then bind that command to Super_L +
y.

You may want to investigate xmodmap; I'm not sure there's a way to
specify any old unicode char (I think I've seen one) but if you create a
~/.xmodmaprc with something like (this is from mine, defining <AltGr+'> to
give the nicer ’ char):

keycode 0x30 = apostrophe at rightsinglequotemark dead_circumflex
rightsinglequotemark dead_circumflex


All the keys by default have an AltGr ('ISO Shift Level 3') mapping, Y's
is '←' (¥ with <Shift> as well). Pick one you don't fancy using any more,
and change its mapping. The full list of codes currently on a key can be
shown with xkeycaps (which is really showing its age now; any alternatives
anyone?) but I wouldn't recommend making it save a full xmodmaprc (unless
you then edit out all but the one you want).

--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list


Relevant Pages

  • Re: There has gotta be an easy answer - binding commands to keys ??
    ... specify any old unicode char but if you create a ~/.xmodmaprc with something like ... All the keys by default have an AltGr ('ISO Shift Level 3') mapping, Y's is '←'. ... Pick one you don't fancy using any more, and change its mapping. ...
    (Fedora)
  • Apple Keyboard and xmodmap -- print screen?
    ... I need help using xmodmap to enable some keys. ... FocusOut event, serial 31, synthetic NO, window 0x2000001, ... mode NotifyGrab, detail NotifyAncestor ...
    (Ubuntu)
  • Re: Typing an @ symbol on an Apple keyboard
    ... the labels on the keys). ... I would not make Alt and AltGr (that is how the right one is ... above output of xmodmap tells you that the key with code 42 will produce ... On my keyboard Alt has keycode 64 ...
    (Debian-User)
  • Re: [Follow-up] Xmodmap and GNOME FC3
    ... You have to inform the X server about your keyboard layout before ... you can assign shortcuts to the keys. ... >>order to wean myself off Xmodmap and get control of my keyboard back ... I press all of the keys which need to be configured. ...
    (Fedora)
  • Re: Activating Keyboard keys in linux
    ... Doug wrote: ... So you need to remap those key codes to the appropriate keysym. ... 'xmodmap -pk' returns the current mapping scheme. ...
    (comp.os.linux.misc)