Go to index / Go to protocols

cosmic_keyboard_layout_unstable_v1 ↗

Protocol to control keyboard layout group

This protocol notifies clients of the active keyboard layout group, and allows setting a new value.

Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.

cosmic_keyboard_layout_unstable_v1
zcosmic_keyboard_layout_manager_v1

Version 1

keyboard layout manager

Manager for creating zcosmic_keyboard_layout_v1 instances.

zcosmic_keyboard_layout_manager_v1
request get_keyboard_layout(
    keyboard_layout: new_id<zcosmic_keyboard_layout_v1>,
    keyboard: object<wl_keyboard>,
)

    Get keyboard layout object

    Create a zcosmic_keyboard_layout_v1 to get and set group for given keyboard.

    zcosmic_keyboard_layout_manager_v1
    request destroy()
    Destructor

      delete this object

      cosmic_keyboard_layout_unstable_v1
      zcosmic_keyboard_layout_v1

      Version 1

      Object to get and set group for a particular wl_keyboard.

      zcosmic_keyboard_layout_v1
      event group(
          group: uint,
      )

        layout group changed

        Unlike wl_keyboard::modifiers, this event is received even when the client has no focused window.

        zcosmic_keyboard_layout_v1
        request set_group(
            group: uint,
        )

          set layout group

          On success, the group event will be generated for all clients, and the focused client will receive wl_keyboard::modifiers with the new group.

          The request will be ignored if group is out of bounds.

          zcosmic_keyboard_layout_v1
          request destroy()
          Destructor

            delete this object