Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xkeyboard-config
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xkbdesc
  • xkeyboard-config
  • Merge requests
  • !189

rules: add a "custom" layout to the XML file

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Peter Hutterer requested to merge whot/xkeyboard-config:wip/user-defined-rules into master Feb 17, 2021
  • Overview 1
  • Commits 1
  • Pipelines 3
  • Changes 2

This layout does not exist and we will never provide it.

However, having it in the XML file means it will show up in GUI configuration mechansism that parse the XML file directly (instead of using libxbkcommon's libxkbregistry).

Our rulesets fall back to the file "symbols/layout", section "variant" for any layout(variant) that's not explicitly covered. This enables users to create a symbols/custom file with their layout and have it available.

As there are no variants, the GUI tools will only be able to use the default section. Commandline tools can use variants as well.

This is papering over the whole issue only, but it does provide for some convenience. It will still require adding a file in /usr/share in most cases, but since we do not provide this file, it will be safe from being overwritten.

Fixes #257 (closed)

Note: one major drawback here: selecting this when there is no symbols/custom file may leave the user with a nonworking keyboard. Depends on the situation whether that is a problem, any runtime configuration (e.g. GNOME) shouldn't be an issue because you'll just end up with the server default (US). Putting this in an xorg.conf snippet however... probably not good.

cc @svu, @ngraham

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: wip/user-defined-rules