events

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDown    = 3
	MouseDown  = 8
	MouseDrag  = 10
	MouseWheel = 11
)

Variables

This section is empty.

Functions

func KeyboardPresses

func KeyboardPresses(ev hook.Event, db *database.Queries)

func StartHookListener

func StartHookListener(db *database.Queries)

takes down all keymaps for keyboards and mouse

Types

type Event

type Event struct {
	Kind    string
	Rawcode int
	Keychar int
}

type Window added in v0.0.2

type Window struct {
	WmName   string `json:"wm_name"`
	WmClass  string `json:"wm_class"`
	IsActive bool   `json:"is_active"`
}

func GetAllWindows added in v0.0.2

func GetAllWindows() []Window

func GetCurrentWindow added in v0.0.2

func GetCurrentWindow() Window

get current Active Window

func MergeWindows added in v0.0.2

func MergeWindows(allWindows []Window, currentWindow Window) []Window

MergeWindows combines the current window with the list of all windows, avoiding duplicates

Jump to

Keyboard shortcuts

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