kbdlayout

package
v0.0.0-...-21b5dc8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const CAPS_LOCK = 2
View Source
const NUM_LOCK = 16

Variables

View Source
var Callback func(string, uint8)
View Source
var Group byte
View Source
var Layout string
View Source
var Layouts []string
View Source
var Mods uint8

Functions

func Get

func Get() bar.Module

func GetLayout

func GetLayout() (string, uint8, error)

func MainLoop

func MainLoop(xu *xgbutil.XUtil, updateMaps func())

func Subscribe

func Subscribe(callback func(string, uint8))

func Switch

func Switch(groupNum byte)

func SwitchToNext

func SwitchToNext()

Types

type Info

type Info struct {
	// Layout code
	Layout string
	// Mods - modifier map
	Mods uint8
}

func (Info) GetMods

func (i Info) GetMods() []string

type KbdOut

type KbdOut struct {
	Seg []*bar.Segment
}

func (KbdOut) Segments

func (k KbdOut) Segments() []*bar.Segment

type Module

type Module struct {
	bar.Module
	bar.Sink
	// contains filtered or unexported fields
}

func New

func New() *Module

New constructs an instance of the clock module with a default configuration.

func (*Module) Click

func (m *Module) Click(e bar.Event)

func (*Module) Output

func (m *Module) Output(outputFunc func(*Module, Info) bar.Output) *Module

func (*Module) Stream

func (m *Module) Stream(s bar.Sink)

Directories

Path Synopsis
Based on https://github.com/BurntSushi/xgb/blob/master/xtest/xtest.go
Based on https://github.com/BurntSushi/xgb/blob/master/xtest/xtest.go

Jump to

Keyboard shortcuts

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