設定在桌面或視窗,滑鼠中鍵滾動,切換工作空間

範例

原本預設的設定檔,就有設定這個功能,所以不需要特別去修改,以下只是列出關鍵的設定片段。

openbox / adjustment / mousebind

Mouse middle scroll on desktop or frame to switch workspace

context Desktop / 一開始的設定片段

  <mouse>
    <context name="Desktop">

       <mousebind button="Up" action="Click">
        <action name="GoToDesktop"><to>previous</to></action>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="GoToDesktop"><to>next</to></action>
      </mousebind>

      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop"><to>previous</to></action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop"><to>next</to></action>
      </mousebind>

    </context>
  </mouse>

context Frame / 一開始的設定片段

  <mouse>
    <context name="Frame">

      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop"><to>previous</to></action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop"><to>next</to></action>
      </mousebind>

    </context>
  </mouse>

相關討論