keymapfd

package
v0.3.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 3 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package keymapfd reads the xkb keymap a wl_keyboard.keymap event carries. It maps the fd, never reads it: a compositor may hand every client a dup of one shared memfd, whose file offset a read() moves for all of them - the next client then reads nothing and has no keymap at all, every key NoSymbol. Hyprland shares its keymap fd that way; the protocol says to mmap it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(fd uintptr)

Close closes a keymap fd once it is read; the event handed it over.

func Read

func Read(fd uintptr, size uint32) ([]byte, error)

Read maps fd for size bytes and returns the keymap text with its trailing NULs cut.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL