Repository navigation
Manual Mode Default Profile Layer Toggling via Button or Keyboard Shortcut #2691
diogosodre
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Pre-flight checklist
Problem / motivation
Summary
Currently, OpenLogi supports automatic profile switching via
per_app_bindingstied to the active application (eitherpointerorfocusedtarget), as well as G-Shift/onboard profiles on specific G-series hardware.However, there is currently no way to manually toggle or cycle between different user-defined global/default "modes" (or binding layers) on demand using a physical mouse button, a keyboard hotkey (
[keyboard.bindings]), or a CLI command.Adding support for manual modes/layers would allow users to define multiple binding sets for a device and switch between them at will, regardless of which application is focused.
Problem & Use Cases
Idea
I used Gemini Notebook to go over the documentation and help me write this feature request based on it so forgive if if some of the things here don't make sense or are not feasible. I'm not a developer, otherwise I would try to tackle this myself, so I'm deeply thankful for all the supporters creating and maintaning this project and I tried to work around this to no avail.
Proposed Solution & Design
1. Configuration Syntax (
config.toml)Extend the device schema to support named modes (or layers) beneath the device definition, while keeping the primary
bindingsas the fallback/default:2. New Actions
Introduce dedicated action primitives in the action catalog:
CycleModes = ["mode1", "mode2", ...](or cycle all configured modes).SetMode = "mode_name"(switches directly to a target mode).ToggleMode = { from = "modeA", to = "modeB" }(switches between two modes).These actions should be assignable to:
[keyboard.bindings](e.g.,"cmd+shift+m" = { SetMode = "media" }).3. Local JSON Automation API & CLI
Expose mode switching to
openlogi apiandopenlogiCLI so external scripts, window managers, and status bars can query and switch modes:4. On-Screen Feedback (OSD)
Optionally display an on-screen indicator (reusing the existing transient overlay mechanism for lock keys and battery notices) announcing the active mode (e.g.,
Mode: Mediafor 1.5 seconds) so the user gets immediate visual feedback upon switching.Device(s)
MX Master 3 and Keys S
Alternatives and workarounds
Alternatives Considered
per_app_bindingsexclusively: Does not work for web applications sharing the same browser process or general OS-wide mode changes.config.tomlfiles and restarting/reloadingopenlogi-agentvia script, which causes unnecessary file I/O, device re-initialization latency, and risk of state desynchronization.All reactions