Going back to the previous workspace

Momentile 10th December 2009Eugeni Dodonov has asked for a keybinding to return to the previous workspace. For example, if you were on workspace 1 and switched to workspace 2, then pressing this key would jump back to workspace 1. Pressing it again would jump to workspace 2. Apparently this is a standard keybinding in xfwm4.

This is GNOME bug 618018, and there is a patch.

However, we believe this can be done adequately with an external EWMH-based script, although it’s a little more difficult than most EWMH scripts because it requires internal state.

Incidentally, this may be an interesting moment to discuss the question of whether Metacity should be able to make DBus calls on given keypresses as well as launching external scripts. Supplementing the EWMH controls with DBus is often suggested (see, for example , GNOME bug 531512 and ewmhbus) but perhaps we should instead be considering sending signals when windows are opened, hot keys are pressed, and workspaces are switched.

Photo © coffee bee, cc-by-nc.

3 Comments

  1. Posted May 8, 2010 at 10:09 pm | Permalink

    After your comment, I actually agree that, as this is a seldom-used functionality, having an external script for it would be better. I just could not think on a way to implement it without going directly into metacity/mutter code, but it could be a solution.

    In any case, thanks for the feedback!

  2. louis vuitton
    Posted May 12, 2010 at 8:41 am | Permalink

    As this is a seldom-used functionality, having an external script for it would be better

  3. gucci
    Posted May 12, 2010 at 8:42 am | Permalink

    You are believe this can be done adequately with an external EWMH-based script?