FVWM: Simple Hack: A Run Dialog

From: Felix E. Klee <felix.klee.fvwm_at_gmx.net>
Date: Mon, 5 May 2003 23:09:41 +0200

Hi,

here is something I want to share. I found a very simple way to realize a
run dialog (similar to grun, tkrun, etc.) using an rxvt. The trick is to
bind the string " &\nexit\n" (I'm using bash) to the return key.

To start the dialog I created the following script:

.fvwm/run-dialog:
    #!/bin/sh
    rxvt +sb -name fvwm-run-dialog -title "run" -geometry 80x1+224+360 \
    --keysym.0xFF0D: " &\nexit\n" -e bash --init-file \
    $HOME/.fvwm/run-dialog.bash-init

As an initialization script for bash it uses:

.fvwm/run-dialog.bash-init:
    export PS1=""

And in my .fvwm2rc I put:

    Style fvwm-run-dialog GrabFocus
    Key R A 4 Exec exec $[HOME]/.fvwm/run-dialog

Now, I can start the dialog using "Win-R".

Felix

-- 
To contact me in private don't reply but send email to 
  felix DOT klee AT inka DOT de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon May 05 2003 - 16:10:55 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST