
Energize Your Console with Macro Music Magic #11
Chapter 2, Console
|
37
HACK
Because you want Ctrl-Alt-Insert to begin playing an audio CD in your CD
drive, look for the definition for the Insert key in /etc/mykeys. That keycode
is 110. Add a line below the keycode definition that makes the combination
control+alt+keycode 110 execute the string represented by F100, which is
cdplay\n.
Assume you want Ctrl-Right Arrow to play the next track on a CD. Find the
definition in /etc/mykeys for the Right Arrow key, which is keycode 106. It
already has one definition (increase to the next console). Add another defini-
tion below that so that Ctrl-Alt-Right plays the next track on a CD (string
F102).
When you are finished assigning all the F100-F104 actions to the keys, the
relevant section of your /etc/mykeys file should look like this:
keycode 103 = Up
alt keycode 103 = KeyboardSignal
control alt keycode 103 = F104
keycode 104 = Prior
shift keycode 104 = Scroll_Backward
keycode 105 = Left
alt keycode 105 = Decr_Console
control alt keycode 105 = F103
keycode 106 = Right
alt keycode 106 = Incr_Console
control alt keycode 106 = F102
keycode 107 = Select
keycode 108 = Down
control alt keycode 108 = F101
keycode 109 = Next
shift keycode 109 = Scroll_Forward
keycode 110 = Insert
control alt keycode 110 = F100
Special Keyboards
I have a Logitech Elite keyboard. It has multimedia keys for starting and
stopping a CD player, ...