Cool, thanks...! //TB On Saturday 24 May 2003 08:56, Torsten Foertsch wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The command line command "chvt N" where N is the number of a virtual console switches to that console, i.e. the command entered in a XTerm or Konsole window "chvt 2" does the same as pressing Ctrl+Alt+F2.
";" is the Bash (and csh and sh) command delimiter.
"sleep 1" makes the current shell sleeping for one second.
So, "chvt 2; sleep 1; chvt 7" switches to console number 2 then sleeps 1 second and returns to console number 7 where your X11 is running.
As mentioned by "Kelly L. Fulks" <kfulks@knology.net> that works fine only as root. If you need to do it as a normal user place the following lines in a file:
- --- cut here -------------------------- #!/bin/bash chvt 2; sleep 1; chvt 7 - --- cut here --------------------------
make the script executable "chmod 755 filename", and make it executable via "sudo" (see "man sudo", "man sudoers"). Then even a normal user can call the script via "sudo filename".
Now, when your mouse is not working you can call the KDE Command prompt with Alt+F2 and call the script "sudo filename".
As I am not using KDE as my favourite window manager (I am using "windowmaker" instead) I do not know how to bind a command to an F-key. Maybe someone else can explain that.
Torsten
On Saturday 24 May 2003 07:28, Todd Bissell wrote:
Umm, I don't get it. Please elaborate, tks!
Cheers, Todd
On Thursday 22 May 2003 23:53, Torsten Foertsch wrote:
chvt 2; sleep 1; chvt 7
Torsten
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+z5YlwicyCTir8T4RAm2KAJ0bVtNGGf7FnDFaphWawVS6fQJ0dACePwfg ZQSdeG4eDRlVSaHIxTJ0wEs= =HCLw -----END PGP SIGNATURE-----