2

I have a new Logitech LIFT mouse and want to remap the thumb buttons. Now the buttons are assigned to go back one page in the web browser and forward, essentially as Alt+ and Alt+, repsectively.

I want to remap them to Ctrl+Tab and Ctrl+Shift+Tab instead, so I can cycle through my tabs in the browser and other applications.

I have tried to map them with Solaar following THIS POST but it does not seem to recognize the thumb buttons there. It might also be that I do not understand how "Key Button Diversion" works.

I am unsure how to approach this further, and where to look.

I am running Ubuntu 24.10 and GNOME 47 (Wayland), but am still very new to this.

Diorcula
  • 69
  • 1
  • 7

1 Answers1

1

The buttons you want to remap are the Forward Button and the Back Button. Before remapping them, the buttons need to be diverted. "Diversion" here means that the buttons are passed through Solaar, so that when you press them, Solaar processes the input and provides the relevant action.

To divert the Forward Button and the Back Button:

  1. Open Solaar.

  2. Select your mouse on the left pane.

  3. Click the lock that corresponds to the Key/Button Diversion item on the main interface until it is shown as unlocked.

  4. Click the left drop down of the Key/Button Diversion item and select Forward Button, then click the right drop down of the Key/Button Diversion item and select Diverted (see screenshot):

    Diversion for Forward button

  5. Repeat the previous step for the Back Button.

Now that the buttons are diverted, you can add your custom rules. To do that:

  1. Click Rule Editor on the bottom right of the program's main window.

  2. Using the right-click options, add the User-defined rules shown in the following screenshot:

    User-defined rules in Solaar

    Alternatively, you can copy the rules below and paste them in the ~/.config/solaar/rules.yaml file (create the file if it doesn't exist already):

    %YAML 1.3
    ---
    - Key: [Forward Button, pressed]
    - KeyPress:
      - [Control_L, Tab]
      - click
    ...
    ---
    - Key: [Back Button, pressed]
    - KeyPress:
      - [Control_L, Shift_L, Tab]
      - click
    ...
    

    Note: Make sure to keep a backup of the file you already have. You don't want to lose your current configuration. If the above work as intended, then you can append them to your current configuration.

That should be it! You should now be able to use the Forward Button of your mouse as Ctrl+Tab and the Back Button of your mouse as Ctrl+Shift+Tab.


PS: Since you are using Wayland, you also need to have the Solaar extension installed. Make sure to install it, if you haven't already.

If for any reason the above don't work, make sure to also test them in an X11 session.