# actkbd configuration file
113:key:exec:amixer -q set Master toggle
114:key:exec:amixer -q set Master 2- unmute
115:key:exec:amixer -q set Master 2+ unmute
However, not matter what I try, I can't get it to do what I want without either 1. passing the keypress on (e.g. setting a command to alt+a will also type 'a' when I press alt+a) or 2. grabbing the keyboard for an undetermined amount of time.
I'm not very good at this.
]]>actkbd looks interesting, but it won't react at all to my input.
$ sudo actkbd --showexec --showkey -l -c /etc/actkbd.conf -v9 -D Event interface present (handler 2) Detected a usable keyboard device (event3) Using configuration file /etc/actkbd.conf Config: 232 -:- key -:- -:- mpc play
then whatever I press, nothing happens.
It probably did not detect your keyboard properly then. Look at your `dmesg' output and figure out the input device assigned to your keyboard. Then go to the appropriate sysfs path to see which event interface it has. If it is for example event4, you can try
actkbd -d /dev/input/event4
$ sudo actkbd --showexec --showkey -l -c /etc/actkbd.conf -v9 -D
Event interface present (handler 2)
Detected a usable keyboard device (event3)
Using configuration file /etc/actkbd.conf
Config: 232 -:- key -:- -:- mpc play
then whatever I press, nothing happens.
]]>"SV" = "sudo vim "
so that whenever I type SV, "sudo vim" comes up. Now I don't know how flexible this is, but it might be a starting point...
]]>I've found tons of tutorials on how to bind keys to keysyms/commands in all the different window managers (and using it as well in XFCE), but I want to bind certain keys to certain commands in the console. And I can't seem to find any info on how to do that... I want to setup some shortcut keys for when I'm working in a real console (Ctrl-ALt-F1...). Xmodmaps do not work anymore once you enter such a console.
Does anyone have some info on how I can accomplish this?
]]>