This is a discussion on key bindings within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> hi! could anyone give me a step-by-step manual to bind a certain command to a key for example I ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| hi! could anyone give me a step-by-step manual to bind a certain command to a key for example I want to bind the command ps -ef to the key F1 SOLARIS 8 with sun keyboard the setting should take affect for all users which are log in to the workstation I have read some manuals but it's to heavy for me thx heinz |
| ||||
| Harald Kaspari wrote: > hi! > > could anyone give me a step-by-step manual to bind a certain command to a > key > > for example I want to bind the command ps -ef to the key F1 > > SOLARIS 8 with sun keyboard > > the setting should take affect for all users which are log in to the > workstation > > I have read some manuals but it's to heavy for me > > thx > > heinz > > This will presume you are using CDE as a desktop environment. The procudure for gnome/kde will be somewhat different. In the file $HOME/.dt/$LC_CTYPE/dtwmrc you can edit the actions associated with the keys. The volume control keys work by executing a program as set in this file and you can execute any application using a key combination. make a script such as the following: #!/bin/sh ps -ef |less read chmod +x psscript.sh And add/edit the entry to dtwmrc: <Key>F1 root|icon|window|ifkey f.exec dtterm -e /path/tp/script/psscript.sh I used the script to pause after executing "ps -ef" (or dtterm just exits). There is very likely a more direct way to do so but this should get things working. You may have to log off/on before the new F1 bind will work but it's possible just restarting the workspace manager will be sufficient. Alex. |