#259 Jump to last instance of program, if none, start program.

open
nobody
None
5
2008-04-17
2008-04-17
Paul Hahle
No

Ratpoison has an add on script that i would also like in icewm.

QUOTE of script located here:
http://ratpoison.antidesktop.net/cgi-bin/wiki/ExtendedFrameJumping
-----------------------------------------------
Since the command for switching to the last used window is probably the one I use the most in ratpoison, I made this script to be able to use similar commands to switch to the last used instance of a given program. If there are no instances of the particular program running, it starts one.

#!/bin/sh

# select.sh - a script for convenient window switching in ratpoison.
# Copyright 2003 Björn Lindström <bkhl@elektrubadur.se>
#
# Usage: select.sh REGEXP NAME COMMAND
#
# Example:
#
# bind e exec select.sh '^(Emacs:|emacs@)' Emacs emacs &
----------------------------------------------------

Discussion

  • Thomas Holder
    Thomas Holder
    2008-06-28

    Logged In: YES
    user_id=1306887
    Originator: NO

    icewm does have this with the "runonce" command. In ~/.icewm/keys:

    runonce "Ctrl+Alt+e" emacs emacs