LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Execute Command (https://www.linuxquestions.org/questions/linux-newbie-8/execute-command-107537/)

lawrencegoodman 10-23-2003 07:49 AM

Execute Command
 
I want to be able to customize my run commands, i.e. I want to be able to his ALT+F2, get the prompt screen and enter a phrase of my own choosing to run a certain program. I have researcher aliases and the ls command, but these don't seem to do it. Anyone know how I can do this?

Thanks as always,
Lawrence

slightcrazed 10-23-2003 08:31 AM

The keyboard shortcut is going to depend on what Window Manager you are using (WindowMaker/Fluxbox/GNOME/KDE/IceWM). Most of them do allow you to bind keys to a specific command. So I would start with reading the documentation for the window manager you are using. Bind keys should be right in there.

From there, just setup an alias for the program that you want to run.

slight

robartes 10-23-2003 08:36 AM

Just put a script somewhere in your $PATH, that launches whatever you want to launch. E.g.

Code:

#!/bin/bash

/usr/local/xmms/bin/xmms -option -another_option -play_myfiles

Then name that script xmms_launch and put it in a directory that is somewhere in your $PATH. Adjust to taste for various other programs.


All times are GMT -5. The time now is 08:11 PM.