Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S Solaar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pwr-Solaar
  • Solaar
  • Wiki
  • Example: Diverted "Host Switch Channel" keys for common devices

Example: Diverted "Host Switch Channel" keys for common devices · Changes

Page history
Clarified a missing statement authored Sep 09, 2022 by John Erling Blad's avatar John Erling Blad
Show whitespace changes
Inline Side-by-side
Example:-Diverted-"Host-Switch-Channel"-keys-for-common-devices.md
View page @ f3fbf1c8
...@@ -22,7 +22,6 @@ If your keyboard support divertable “Host Switch Channel” keys, running `sol ...@@ -22,7 +22,6 @@ If your keyboard support divertable “Host Switch Channel” keys, running `sol
… …
``` ```
Both machines must run `solaar` for the rules to work properly, and the version must be 1.1.4 or higher. Both machines must run `solaar` for the rules to work properly, and the version must be 1.1.4 or higher.
## Configuration ## Configuration
...@@ -32,10 +31,10 @@ The id for the mouse and keyboard can be found in the info-pane as the “serial ...@@ -32,10 +31,10 @@ The id for the mouse and keyboard can be found in the info-pane as the “serial
```bash ```bash
solaar show | grep -iE '(serial|codename)' solaar show | grep -iE '(serial|codename)'
``` ```
In my case this gives This may give something like
```text ```text
Serial : 1E6B9EDF Serial : 789ABDEF
Codename : MX Anywhere 3 Codename : MX Anywhere 3
Serial number: 123456AB Serial number: 123456AB
Codename : MX Keys Codename : MX Keys
...@@ -60,9 +59,11 @@ On the first machine (“alpha”) a file is created as `~/.config/solaar/rules. ...@@ -60,9 +59,11 @@ On the first machine (“alpha”) a file is created as `~/.config/solaar/rules.
... ...
``` ```
In the _rule_ it is checked whether the mouse is active, and if it is then it is changed to the new host. Then the keyboard is then In the _rule_ it is checked whether the mouse is active, and if it is then it is changed to the new host. Then the keyboard is changed to the new host. Finalizing the two changes a notification is posted, and that terminates the processing.
If the mouse is not active, solaar will proceed with changing the host for the keyboard, and then finalizing the change with a notification before it terminates the processing.
and on the second machine a file is created as The file on the second machine (“beta”) is created as
```yaml ```yaml
%YAML 1.3 %YAML 1.3
......
Clone repository
  • Example: Diverted "Host Switch Channel" keys for common devices
  • Example: Diverted "Smart Shift" button for common devices
  • Home