Skip to content

Unable to change mouse mod on Linux #1572

@jetsaredim

Description

@jetsaredim

Attempting to change the click modifier for links from the default alt + click to ctrl + click does not appear to get applied.

First, there's an example of how to use shift modifier in the docs but the example is wrong and throws warnings. A direct copy/pasta into config.toml instantly throws a warning about the toml syntax.

Second, I attempted to break out the example into a toml-compliant set of stanzas (see below) that eliminates the warning but that doesn't appear to be getting taken up by rio. In the end no config changes are made and the default alt + click behavior is still in place.

[hints]
alphabet = "jfkdls;ahgurieowpq"

[[hints.rules]]
regex = "(https://|http://)[^\\u{0000}-\\u{001F}\\u{007F}-\\u{009F}<>\"\\\\s{-}\\\\^⟨⟩`\\\\]+"
hyperlinks = true
post-processing = true
persist = false

[hints.rules.action]
command = "open"

[hints.rules.mouse]
enabled = true
mods = ["Ctrl"]

[hints.rules.binding]
key = "U"
mods = ["Control", "Shift"]

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