You are not logged in.

#1 2008-03-04 01:50:31

04gto
Member
Registered: 2008-03-04
Posts: 8

Keybindings??

Im new to Arch, and to be honest Linux as well.

Im wondering if there is any way to bind a command to a key.

I have a Logitec g15 with a butt-load of extra keys and i would like to bind them.



keep in mind, I am a noob. So if its something like, add such a line to such a file,
tell me the path to the file, as well as the name. And so on like that.

Thanks for the help.

Offline

#2 2008-03-04 01:54:00

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Keybindings??

Here is a wiki article that might be helpful to you: http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys

Last edited by fwojciec (2008-03-04 01:54:26)

Offline

#3 2008-03-04 01:56:56

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Keybindings??

Run in the terminal:

xev

This should make a box pop up. Move your mouse into the box and press a key. An output should appear in the terminal with one part that looks something like this:

keycode 160 (keysym 0x0, NoSymbol)

Take note of the keycode number and the keysym number.

You can now follow these instructions and insert these values into /home/username/.xbindkeysrc.


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#4 2008-03-04 02:15:00

04gto
Member
Registered: 2008-03-04
Posts: 8

Re: Keybindings??

fwojciec wrote:

Here is a wiki article that might be helpful to you: http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys

I checked the wiki, and im a little confused.

Heres an example of what i want to do:
The key i want to bind is called g1(i know this isnt the keycode)

when i press g1 i want it to input say, navigate the shell to my home directory.

Im not using any desktops, and i would rather not untill i learn more about linux commands.

Thanks for the speedy responce

Offline

#5 2008-03-04 03:00:10

04gto
Member
Registered: 2008-03-04
Posts: 8

Re: Keybindings??

Well, this isnt really a solution, but given my setup, i found an easier way to bind keys.

Here it is if you are in the same position:

Im using VirtualBox on a windows pc, i have a logi-g15 keyboard(the old one)

After installing the logi software(in windows), i can make a new configuration and bind the keys as macros.

This works great.

I love linux already!!

Last edited by 04gto (2008-03-04 03:00:32)

Offline

#6 2008-03-04 05:54:06

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Keybindings??

If you're not running a desktop, you'll want to pay attention to this section of the wiki article mentioned above:

http://wiki.archlinux.org/index.php/Hot … he_console

This will allow you to bind a multimedia key to a command that can run in the console.  The command itself would look something like this:

string F70 = "cd ~\n"

Another utility for binding keys at the console level is actkd:

http://users.softlab.ece.ntua.gr/~thkal … ts/actkbd/

I haven't had a chance to check it out myself yet, but I plan to... it's a daemon (background service) that lets you "bind actions to keyboard events."


thayer williams ~ cinderwick.ca

Offline

Board footer

Powered by FluxBB