+ Reply to Thread
Results 1 to 4 of 4

Thread: Binding keyboard keys in Linux

  1. #1
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Binding keyboard keys in Linux

    This is a simple and pretty straight forward tutorial, how to bind keys in KDE so you can access any file by just pressing a sequence of buttons from your keyboard.

    You can execute files, programs, scripts and even commands (that you usually run in a Terminal)

    So, open KDE Menu Editor



    Go to File, select ‘New Submenu’



    And Give it a Name, this will appear in your ‘KDE Menu’, if you want you can skip this step and instead select a sub menu that you want, for example ‘Utilities’ from the left list as shown below:



    If you created a new submenu you can easily change the icon to your liking by pressing the icon button found on the right.



    After that, select the submenu you just created, or any submenu that you like, head over to File and select ‘New Item’, this new item will be shown under the selected submenu.



    Write something you like, a relevant name that reminds you of the file, script or whatever it will execute. Then you will be shown something like this:



    You can select an icon, write a description etc..

    Now near the ‘Command:’ you have a textbox and an icon, press the icon and browse to the file, script or whatever you want to execute, or in there you can just write a command that you normally you execute in a Terminal, if you want to you can select to run the application in a Terminal by enabling ‘Run in terminal’.

    Now it’s time to bind the keys, near the ‘Current shortcut key’ there is a button, currently it states ‘None’, click it. Then you will see this:



    Select ‘Primary shortcut’ and then press the buttons on your keyboard that you want to assign.. if you want to assign for example CTRL + something else you have to first enable ‘Multi-key mode’ and then press the buttons.

    Press OK and you are ready.

    The new submenu (if any) and items will be visible and accessible from the ‘KDE Menu’, and you can press the shortcut on your keyboard you just assigned and the program, file, script or command will execute right away.

    The only drawback of this, is that it does not detect the power button, other Function buttons (usually found in laptops) or lid close and open. If it did, that would be cool.

    But at least.. you can easily access your most frequent programs with a tap on your keyboard instead of hunting for them in the menu your self.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    XaNaX is offline Learning Programmer
    Join Date
    Jul 2008
    Posts
    51
    Rep Power
    0
    Thats pretty neat!

  4. #3
    senecaz is offline Newbie
    Join Date
    Feb 2009
    Posts
    16
    Rep Power
    0
    these might come in handy when i'm doing tasks. although binding keys are a pain and i usually forget them when increasing binds.

  5. #4
    whwmia's Avatar
    whwmia is offline Newbie
    Join Date
    Aug 2009
    Posts
    24
    Rep Power
    0

    Re: Binding keyboard keys in Linux

    Thank you so much !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. binding two exe ?
    By magicpro in forum C and C++
    Replies: 6
    Last Post: 06-09-2011, 04:03 AM
  2. Replies: 2
    Last Post: 01-29-2011, 01:15 PM
  3. WaveLib + Binding
    By 2befine in forum C# Programming
    Replies: 0
    Last Post: 11-29-2009, 02:55 AM
  4. Keyboard keys in VB.NET
    By Vswe in forum Visual Basic Tutorials
    Replies: 2
    Last Post: 11-13-2009, 08:18 AM
  5. Late Binding
    By Paradine in forum C# Programming
    Replies: 1
    Last Post: 01-25-2007, 06:50 AM

Tags for this Thread

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