Results 1 to 3 of 3

Thread: How To: Use Windows key to open Konsole <ironic ? :)

Hybrid View

  1. #1
    Senior Member cgelici's Avatar
    Join Date
    Feb 2010
    Location
    /root
    Posts
    121

    Default How To: Use Windows key to open Konsole <ironic ? :)

    First of all. This is my first How to/Tutorial. I would like to thank Archangel-Amael for his "How to make an effective Tutorial or How-To guide".

    Perhaps this has more to do with linux in general than with BackTrack alone, but I hope it's okay. And if anyone has suggestions and/or improvements, comments are welcome !

    So, I was looking for a way to use the WIN key on my keyboard to open up Konsole. The WIN key is usually situated between CTRL and ALT (left) (for the people who don't know what I mean).

    I found out that the WIN key is a modifier and requires another key to function as a shortcut. I found a way to work around this using xmodmap.

    1. I created .xmodmap in my home folder.
    Code:
    touch .xmodmap
    2. Open xev and hit your WIN key and look at what the keycode is. In my case it was "133". Yours may be different.

    3. Edit .xmodmap and insert the following line: keycode 133 = F13. Where 133 is your own keycode.
    Code:
    nano .xmodmap
    Now the system thinks the WIN key is F13 (which usually does not exist. If you prefer another key you can use that)

    And when you do:
    Code:
    xmodmap ~/.xmodmap
    It will set the key. You can now use it in keyboard shortcuts>command shortcuts>Konsole.....

    I tried to make the script autostart but it didn't work. Perhaps someone on this forum may comment on that. What I tried is the following.

    4. Create a script with the following lines:
    Code:
    #!/bin/bash
    xmodmap ~/.xmodmap
    5. I saved this file as "xmodmap" but you can use another name if you like. When done copy/move the file to /etc/init.d/

    6. Update the startupscript.
    Code:
    update-rc.d xmodmap defaults
    and reboot ? It didn't work for me. I thinks it's because xorg was not started yet (startx). It said " Display not found" I think.

  2. #2
    Just burned his ISO
    Join Date
    Jul 2010
    Posts
    1

    Default Re: How To: Use Windows key to open Konsole <ironic ? :)

    Does it work if you put a .desktop file in KDE's autostart directory (~/.kde/Autostart I think...)?

    Example .desktop file:

    Code:
    [Desktop Entry]
    Type=Application
    Encoding=UTF-8
    Name=Set Xmodmap
    Exec=xmodmap ~/.xmodmap
    NoDisplay=true

  3. #3
    Senior Member cgelici's Avatar
    Join Date
    Feb 2010
    Location
    /root
    Posts
    121

    Default Re: How To: Use Windows key to open Konsole <ironic ? :)

    I just tested it and it works ! Thanks a lot.

Similar Threads

  1. How do I open multiple windows with a persistent CD?
    By sherigami in forum Beginners Forum
    Replies: 2
    Last Post: 03-07-2011, 01:44 PM
  2. startx then open 4 windows
    By cyb33rc0de in forum Beginners Forum
    Replies: 2
    Last Post: 11-15-2010, 07:41 PM
  3. open a new konsole in bash and execute command
    By tommy22 in forum OLD Programming
    Replies: 2
    Last Post: 02-01-2009, 12:28 PM

Posting Permissions

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