
Scheduling and Buffering
199
Chapter 9, Create Time-Shifted FM Radio
logged in as the user account that automatically logs in (not su’d to root or
another user), execute the following command:
xbindkeys --defaults > ~/.xbindkeysrc
Because the .xbindkeysrc file starts with a dot, it’ll be hidden in a standard direc-
tory listing. To view this and other hidden files, use ls –a.
Later, you’ll edit the .xbindkeysrc file so that special keys will launch Frank’s
custom script that controls playback and recording of your radio. We won’t
edit that file until the last phase of this project, though, because the script
hasn’t been created yet.
In the meantime, configure
xbindkeys to automatically run when the user
logs in. To do this, launch the Sessions tool by opening the Red Hat menu,
clicking Preferences, clicking More Preferences, and then clicking Sessions.
After the Session tool starts, follow this procedure to cause xbindkeys to
automatically start:
1. Click the Startup Programs tab.
2. Click the Add button.
3. Enter
xbindkeys and click OK.
4. Close the Sessions tool.
Scheduling and Buffering
All this project is missing now is something to tie all the different compo-
nents together. You need a script that
xbindkeys can trigger and that will
pass commands such as rewind, fast-forward, and pause on to XMMS.
This script must be able to tune in radio stations, record ...