Professional Web Applications Themes

Keyboard fun - Debian

Two things: 1. My pound sign is a hash in X. Works fine in the console. From XF86Config-4: Section "InputDevice" Identifier "Generic Keyboard" Driver "keyboard" Option "CoreKeyboard" Option "XkbRules" "xfree86" Option "XkbModel" "logicordless" Option "XkbLayout" "gb" EndSection 2. I have a Logitech cordless keyboard. I'd like to assign some of the "special" keys in Sawfish. When I use xev, I get events generated e.g. KeyPress event, serial 27, synthetic NO, window 0x2400001, root 0x40, subw 0x2400002, time 673540, (18,21), root:(63,139), state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: "" KeyRelease event, serial 27, synthetic NO, ...

  1. #1

    Default Keyboard fun

    Two things:

    1. My pound sign is a hash in X. Works fine in the console.

    From XF86Config-4:
    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xfree86"
    Option "XkbModel" "logicordless"
    Option "XkbLayout" "gb"
    EndSection

    2. I have a Logitech cordless keyboard. I'd like to assign some of the
    "special" keys in Sawfish. When I use xev, I get events generated e.g.

    KeyPress event, serial 27, synthetic NO, window 0x2400001,
    root 0x40, subw 0x2400002, time 673540, (18,21), root:(63,139),
    state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: ""

    KeyRelease event, serial 27, synthetic NO, window 0x2400001,
    root 0x40, subw 0x2400002, time 673733, (18,21), root:(63,139),
    state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: ""

    KeyPress event, serial 27, synthetic NO, window 0x2400001,
    root 0x40, subw 0x2400002, time 674085, (18,21), root:(63,139),
    state 0x0, keycode 164 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: ""

    KeyRelease event, serial 27, synthetic NO, window 0x2400001,
    root 0x40, subw 0x2400002, time 674259, (18,21), root:(63,139),
    state 0x0, keycode 164 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: ""

    But when I go into gnomecc to configure the shortcuts, and click "grab",
    it doesn't respond when I press the key.

    If anyone can shed any light I'd be very grateful.

    Antony


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Antony Gelberg Guest

  2. #2

    Default Re: Keyboard fun

    Antony Gelberg wrote:
    >Two things:
    >
    >1. My pound sign is a hash in X. Works fine in the console.
    >
    >>From XF86Config-4:
    >Section "InputDevice"
    > Identifier "Generic Keyboard"
    > Driver "keyboard"
    > Option "CoreKeyboard"
    > Option "XkbRules" "xfree86"
    > Option "XkbModel" "logicordless"
    > Option "XkbLayout" "gb"
    >EndSection
    >
    >2. I have a Logitech cordless keyboard. I'd like to assign some of the
    >"special" keys in Sawfish. When I use xev, I get events generated e.g.
    >
    >KeyPress event, serial 27, synthetic NO, window 0x2400001,
    > root 0x40, subw 0x2400002, time 673540, (18,21), root:(63,139),
    > state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES,
    > XLookupString gives 0 bytes: ""
    >
    >KeyRelease event, serial 27, synthetic NO, window 0x2400001,
    > root 0x40, subw 0x2400002, time 673733, (18,21), root:(63,139),
    > state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES,
    > XLookupString gives 0 bytes: ""
    >
    >KeyPress event, serial 27, synthetic NO, window 0x2400001,
    > root 0x40, subw 0x2400002, time 674085, (18,21), root:(63,139),
    > state 0x0, keycode 164 (keysym 0x0, NoSymbol), same_screen YES,
    > XLookupString gives 0 bytes: ""
    >
    >KeyRelease event, serial 27, synthetic NO, window 0x2400001,
    > root 0x40, subw 0x2400002, time 674259, (18,21), root:(63,139),
    > state 0x0, keycode 164 (keysym 0x0, NoSymbol), same_screen YES,
    > XLookupString gives 0 bytes: ""
    >
    >But when I go into gnomecc to configure the shortcuts, and click "grab",
    >it doesn't respond when I press the key.
    >
    >If anyone can shed any light I'd be very grateful.
    >
    >Antony
    >
    >
    In your home directory create a file called .Xmodmap. My looks like:
    keycode 115 = F15
    keycode 178 = F16
    keycode 236 = F17

    map your keycodes (162, 164 etc) to spare function keys, then run
    xmodmap ~/.Xmodmap.
    Sawfish will now grab them as F15 etc

    To make sure this file is read everytime you log into Gnome, in the file
    /etc/X11/Xsession.options, put the line:
    allow-user-modmap

    This works for me.

    HTH

    Bec





    >
    >

    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Bec Dridan Guest

Similar Threads

  1. Using Keyboard keys
    By naddasmiles in forum Macromedia Director 3D
    Replies: 1
    Last Post: November 10th, 09:10 AM
  2. USB Keyboard
    By Monah Baki in forum FreeBSD
    Replies: 0
    Last Post: February 18th, 10:58 AM
  3. Another keyboard question
    By Diederik in forum Macromedia Flash
    Replies: 1
    Last Post: February 8th, 01:28 PM
  4. Keyboard Lingo
    By James in forum Macromedia Director Basics
    Replies: 6
    Last Post: October 27th, 08:00 PM
  5. keyboard
    By black francis in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: July 29th, 01:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139