Re: Assign program call to a key

2013-08-04 Thread Polytropon
On Sat, 3 Aug 2013 14:43:14 + (UTC), jb wrote:
 Polytropon freebsd at edvax.de writes:
 
  
  Is there a way to assign a predefined program call to a key
  in X, _independently_ from the window manager or desktop
  environment in use?
  ...
 
 https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg
 It may give you some hints.

The last entries on the page look interesting, but keytouch
and actkbd are not available, only xbindkeys is in the
ports collection.

From the description

Allows you to launch shell commands
under X with your keyboard

it seems to be exactly what I'm looking for.

Thanks for the *pointer! ;-)







-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Assign program call to a key

2013-08-03 Thread jb
Polytropon freebsd at edvax.de writes:

 
 Is there a way to assign a predefined program call to a key
 in X, _independently_ from the window manager or desktop
 environment in use?
 ...

https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg
It may give you some hints.
jb
 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Assign program call to a key

2013-08-02 Thread Polytropon
Is there a way to assign a predefined program call to a key
in X, _independently_ from the window manager or desktop
environment in use?

Currently I'm using the following approach:

In ~/.xmodmap, I define a symbol according to the keycode
I found out by using the xev program:

keycode 140 = F27

This file is activated by the xmodmap ~/.xmodmaprc
command in ~/xinitrc (called via ~/xsession, cascaded).

In WindowMaker's menu, I define a submenu Functions where
I put the program calls I want to assign to keys, then use
the Capture function and press the desired key. Now the
association is made.

Of course, this approach is _specific_ to WindowMaker!

I'm searching for a way to do this among different environments
in X without having to configure each one of them (or even being
disappointed because this feature is not implemented). My goal
is to make the volume keys of various laptops change the volume
via the mixer command. Those keys are nothing special, they
just send key codes. Similarly I want to use this with my Sun
Type 7 USB keyboard. But I'd also like to make use of additional
and multimedia keys on laptops that simply send key codes that
can be assigned key names.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org