Skip to content

Not an Issue #1

@Abraxas-Knister

Description

@Abraxas-Knister

Saw your reddit post because I got a HUGE recently, found the mapping irritating and researched the issue.

Here's my take:

    #!/bin/bash

    mouse="$(xinput --list --id-only 'pointer:ELECOM TrackBall Mouse HUGE TrackBall')"
    # button functions: 
    # 4 to 7 is scroll
    # 10 to 12 is f1-3; OS mapped (nop)
    left=1; middle=2; right=3; back=8; forward=9

    # button locations default:
    #  thumb: left, scrollwheel (with middle), forward, backwards
    #  index: f1 f2
    #  pinky: right, f3
    # button locations mapping:
    #  thumb: left, scrollwheel (with f1), right, f2
    #  index: forward, backwards
    #  pinky: middle, f3
    xinput set-button-map $mouse \
    $left 10 $middle 4 5 6 7 11 $right $forward $back 12
    # 1   2  3       4 5 6 7 8  9      10       11    12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions