Configuring the alt-tab dialog in Openbox 3.5

November 1, 2011

By default, Openbox 3.5 has a vertical alt-tab dialog. If you prefer the old alt-tab icon dialog, you can revert to it by adding the <dialog>icons</dialog> to the PreviousWindow and NextWindow actions in your Alt-Tab (and, for me, Win-Tab) keybindings in your rc.xml, as follows:

<!-- Keybindings for window switching -->
<keybind key="A-Tab">
      <action name="NextWindow">
      <dialog>icons</dialog>
      </action>
    </keybind>
    <keybind key="A-S-Tab">
      <action name="PreviousWindow">
      <dialog>icons</dialog>
      </action>
    </keybind>
<keybind key="W-Tab">
      <action name="NextWindow">
        <allDesktops>yes</allDesktops>
      <dialog>icons</dialog>
      </action>
    </keybind>
    <keybind key="W-S-Tab">
      <action name="PreviousWindow">
        <allDesktops>yes</allDesktops>
      <dialog>icons</dialog>
      </action>
    </keybind>

Change <dialog>icons</dialog> to <dialog>list</dialog> to get the vertical dialog. Change it to <dialog>none</dialog> to have no dialog.

In the rc.xml there is now also a new setting to configure the font for inactive text in on-screen-displays, like the alt-tab dialog. If you’ve migrated your old configuration to Openbox 3.5, make sure you delete the OnScreenDisplay font settings in the theme section of your rc.xml and replace it with two settings: one ActiveOnScreenDisplay and one InactiveOnScreenDisplay. This section in my configuration file looks as follows:

<font place="ActiveOnScreenDisplay">
    <name>Corbel</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
  </font>
  <font place="InactiveOnScreenDisplay">
    <name>Corbel</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
  </font>

5 Responses to “Configuring the alt-tab dialog in Openbox 3.5”

  1. Niavlys said

    It doesn’t work, and I figured why, the correct syntax is:

    icons

    is contained into the tag.
    Thanks for the idea though🙂

  2. Niavlys said

    (Tag fail… 2nd try)

    It doesn’t work, and I figured why, the correct syntax is:

    <action name=”NextWindow”>
    <dialog>icons</dialog>
    </action>

    <dialog> is contained into the <action> tag.
    Thanks for the idea though🙂

    • urukrama said

      Of course, you’re right. I never actually use the alt-tab keybinding I posted, only the W-tab one, which had the correct syntax. I’ve updated the post.

  3. whoiswho said

    Is it possible to change the icon size? Most of them are kinda blurry since they are scaled from 32 pixels to 34.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s