Publi

Activando teclas para obtener nuevas funcionalidades.

tecladoEn ocasiones, adquirimos un teclado nuevo, con muchas teclas especiales, o si compramos un nuevo portátil, seguramente éste tenga varias teclas especiales que el sistema por defecto no identifica.
El problema la mayoría de las veces, es que tenemos una tecla, cuyo código no es reconocido. Para ello tenemos la utilidad xmodmap, podemos hacer que una tecla determinada se comporte como otra. Tenemos un listado completo de los códigos de las teclas aquí [Link original] y aquí [Original].

Aunque el gran problema es, ¿cómo averiguo el código de una determinada tecla? Para ello tenemos una utilidad (xev), la ejecutamos desde un terminal:

$ xev

xev
Luego pulsamos la tecla que queremos verificar una vez, en el ejemplo he pulsado Escape y una tecla especial de mi teclado (reconocida como XF86Launch6), pero a la izquierda, tenemos los keycodes (códigos de tecla), que es lo que debemos utiliza para modificar el comportamiento de la tecla.
Muchas veces, no debemos fiarnos de las teclas que vienen marcadas en nuestro teclado como especiales o multimedia, porque si probamos, veremos que generalmente hay más (incluso combinaciones de teclas con Fn+Algo)

Cuando tengamos el keycode que debemos cambiar el comportamiento debemos crear (o modificar) el fichero .Xmodmap (que generalmente lo tenemos en nuestro $HOME y añadir el siguiente patrón:

keycode [código de tecla] = [Keysym]

tantas veces como teclas querramos «reprogramar»

Teclas desconocidas por el sistema

Mi teclado tiene teclas para subir y bajar volumen que no funcionan directamente, lo más seguro que sea porque los códigos de esas teclas no son estándar, por ejemplo códigos 360 y 361 (subir y bajar volumen respectivamente), debemos escribir en ~/.Xmodmap las siguientes líneas:

keycode 360 = XF86AudioRaiseVolume
keycode 361 = XF86AudioLowerVolume

Teclado numérico

Puede que en ocasiones nos resulte más fácil utilizar las teclas de Inicio/Fin/Av pag/Re pag/Supr/Insert desde el teclado numérico, sobre todo los usuarios de portátil con teclado extendido, ya que las teclas nativas (por decirlo de alguna forma, las que sólo cumplen esa función), son de difícil acceso cuando estás tecleando rápido.
El problema es que las teclas del teclado numérico tienen valores diferentes, por ejemplo Av Pag es la tecla 117 (Next) y cuando la pulsamos en el teclado numérico es la 89 (KP_Next), ¡ tienen códigos distintos ! y puede que algunos programas no las reconozcan correctamente.
Por tanto, lo que hacemos ahora es hacer que KP_Next se comporte como Next.

Las modificaciones en ~/.Xmodmap son:

keysym KP_Next = Next
keysym KP_Home = Home
keysym KP_End = End
keysym KP_Insert = Insert
keysym KP_Delete = Delete

Utilizo keysym en lugar de keycode para no tener que buscar los códigos de las teclas con xev, porque sé qué teclas quiero cambiar específicamente.

Probar los cambios sin reiniciar

Nada más reiniciar el entorno gráfico, los cambios estarán hechos, pero si no queremos esperar a reiniciar podemos ejecutar:

$ xmodmap ~/.Xmodmap

y los cambios se harán de inmediato.

Foto: cheetah100 (Flickr) CC-by a 30/08/2012

También podría interesarte....

There are 17 comments left Ir a comentario

  1. Pingback: BlogESfera.com /

  2. Pingback: Bitacoras.com /

  3. Jackdavid /
    Usando Google Chrome Google Chrome 116.0.0.0 en Windows Windows NT

    Hello, I enjoyed reading the article. Finding significance and a clear plan of action might be challenging for many people because they are so bogged down in the mundane. You provided some incredibly insightful advice on how to achieve this.https://acmaintenanceservice.com/split-air-condition-supplier-dubai/

  4. Johnathondave /
    Usando Google Chrome Google Chrome 116.0.0.0 en Windows Windows NT

    I found this article really informative and helpful. The information provided here is perfect with what I’ve been researching lately. Thanks for sharing!

  5. itqan /
    Usando Google Chrome Google Chrome 117.0.0.0 en Windows Windows NT

    Your post is absolutely breathtaking. I’m in awe.

    شركة مكافحة حشرات دبي

  6. OKBet /
    Usando Google Chrome Google Chrome 116.0.0.0 en Windows Windows NT

    A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post.
    OKBet

  7. waffle game /
    Usando Google Chrome Google Chrome 118.0.0.0 en Windows Windows NT

    I appreciate you providing this insightful information; I believe it will be beneficial to everyone.

  8. AhsanShafiq /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    Hello, I enjoyed reading the article. Finding significance and a clear plan of action might be challenging for many people because they are so bogged down in the mundane. You provided some incredibly insightful advice on how to achieve this.

  9. soniya singhania /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    We promise our clients to deliver genuine escorts at low rates. All independent escorts on Bhopal Escort Service platform are stunning and experienced in their fields. We assure you of 100% satisfaction after Joining our services. Your details are kept confidential, ensuring your safety and privacy.

  10. nancy lucy /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    This forum is amazing and there is a lot of useful content here mapquest driving directions. Companies can use this content to further improve the quality of disposable nitrile gloves although they have not received any complaints about them yet. However, there is still room for improvement.

  11. Destinasi Wisata /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    All the time i used to read smaller posts which also clear their motive, and that is also happening with this article which I am reading at this time.

  12. Keuangan /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    That is really interesting, You are an excessively skilled blogger.
    I have joined your feed and look ahead to in the hunt for more of your excellent post. Additionally,
    I’ve shared your website in my social networks.

  13. scratchrock /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    he network to the system stores can be go by geometry dash meltdown too

  14. chrisdan /
    Usando Google Chrome Google Chrome 84.0.4147.89 en Windows Windows NT

    Efficient Faddico logistics are crucial for seamless production and shipping operations, ensuring smooth global trade flows.

  15. minaalahmed /
    Usando Google Chrome Google Chrome 84.0.4147.89 en Windows Windows NT

    With a diverse range of tests available, from routine blood work to complex genetic screenings, medical laboratory diagnosis is the cornerstone of modern medicine, enabling early detection, disease monitoring, and prevention strategies.

  16. aroojjavaid /
    Usando Google Chrome Google Chrome 109.0.0.0 en Windows Windows NT

    Elevate your learning experience with our extensive range of medical books tailored to meet your educational and professional needs. Buy from us today and embark on a journey of continuous growth and expertise!

  17. soniya singhania /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    The city of Goa is very beautiful and is frequently addressed as a garden town. It also has its own elegance and natural climate, with great climatic conditions. Another item found equally stunning, charming and alluring is the exclusive services that the Competent Escorts In Goa offers. The services of Goa escort prove to be very successful in providing a one-stop solution to many personal dilemmas of a man’s life that give rise to depression , anger and life failures. They provide escort service in call and out depending on a specific preference and mood of the client

Leave a Reply to Anónimo Cancle Reply