workspaces: Allow switching/sending to the last used workspace

Actions GoToDesktop and SendToDesktop now support the new direction
called "last" that corresponds to the last used workspace (see Openbox
help[1] for reference).

[1]: http://openbox.org/wiki/Help:Actions#GoToDesktop
This commit is contained in:
Consus 2022-06-18 03:09:18 +03:00 committed by Consolatis
parent 56a6d08fc0
commit ca56357b5f
3 changed files with 9 additions and 2 deletions

View file

@ -67,8 +67,9 @@ Actions are used in menus and keyboard/mouse bindings.
Toggle always-on-top of focused window.
*<action name="GoToDesktop"><to>*
Switch to workspace. Supported values are "left", "right" or the full
name of a workspace or its index (starting at 1) as configured in rc.xml.
Switch to workspace. Supported values are "last", "left", "right" or the
full name of a workspace or its index (starting at 1) as configured in
rc.xml.
*<action name="SendToDesktop"><to>*
Send active window to workspace.