mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-23 17:04:19 +01:00
komorebi users keep their bindings to komorebic in the file of a hotkey daemon: an skhdrc on macOS, a whkdrc on Windows, an sxhkdrc on X11. On KDE Plasma the program that runs a command on a key is KDE's global shortcut daemon, so the bindings have to be read and turned into shortcuts. This adds `komorebi-hotkeys`, a crate of its own that does not depend on the daemon, with the model all three formats are read into: a `Keymap` of modes of bindings, each a chord, an edge and a body (a command, a mode switch, or one action per application), and `Diagnostic`s with spans. A key is a Qt key code with the modifier flags or'ed in, which is what kglobalacceld stores, so the same key is the same value whatever file named it. `qt::key_to_qt` knows the three vocabularies: skhd's literals and macOS keycodes, whkd's virtual key names and sxhkd's X keysyms, including the XF86 media keys. `Combo` applies the shifted symbol rule measured on KWin 6.8.1 (Alt+Shift+1 arrives as Alt+!), and its fields are private so that no combo skips it; a `compile_fail` example proves it. Positions are read as on a US layout. The fixture corpus writes each case in every format that can express it; the parsers are written against it. The flake's source filter keeps the fixtures, so that the nix checks can read them.
99 lines
2.8 KiB
TOML
99 lines
2.8 KiB
TOML
[graph]
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-apple-darwin",
|
|
]
|
|
all-features = false
|
|
no-default-features = false
|
|
|
|
[output]
|
|
feature-depth = 1
|
|
|
|
[advisories]
|
|
ignore = [
|
|
{ id = "RUSTSEC-2024-0449", reason = "unsafe-libyaml comes with serde_yaml, which komorebi-layouts reads Windows-only custom layouts with; nothing here calls it" },
|
|
{ id = "RUSTSEC-2026-0370", reason = "zvariant is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" },
|
|
{ id = "RUSTSEC-2026-0371", reason = "zbus_names is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" },
|
|
{ id = "RUSTSEC-2026-0372", reason = "zvariant_derive is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" },
|
|
{ id = "RUSTSEC-2024-0320", reason = "yaml-rust comes with serde_yaml 0.8 under flavours, which komorebi-themes makes palettes with; not using any yaml features from this library" },
|
|
{ id = "RUSTSEC-2025-0056", reason = "adler comes with the image decoder under flavours, which komorebi-themes makes palettes with; only used for color palette generation" },
|
|
{ id = "RUSTSEC-2026-0192", reason = "ttf-parser comes with the fonts of egui, which komorebi-themes pulls in for its theme types; komorebi draws no text" },
|
|
]
|
|
|
|
[licenses]
|
|
allow = [
|
|
"Apache-2.0",
|
|
"BSD-2-Clause",
|
|
"BSD-3-Clause",
|
|
"CC0-1.0",
|
|
"ISC",
|
|
"MIT",
|
|
"MPL-2.0",
|
|
"OFL-1.1",
|
|
"Ubuntu-font-1.0",
|
|
"Unicode-3.0",
|
|
"Zlib",
|
|
"LicenseRef-Komorebi-2.0",
|
|
]
|
|
confidence-threshold = 0.8
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-client"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-hotkeys"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-layouts"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebic"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "komorebi-themes"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "version"
|
|
expression = "LicenseRef-Komorebi-2.0"
|
|
license-files = []
|
|
|
|
[[licenses.clarify]]
|
|
crate = "base16-egui-themes"
|
|
expression = "MIT"
|
|
license-files = []
|
|
|
|
[bans]
|
|
multiple-versions = "allow"
|
|
wildcards = "allow"
|
|
highlight = "all"
|
|
workspace-default-features = "allow"
|
|
external-default-features = "allow"
|
|
|
|
[sources]
|
|
unknown-registry = "deny"
|
|
unknown-git = "deny"
|
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
|
allow-git = [
|
|
"https://github.com/LGUG2Z/base16-egui-themes",
|
|
"https://github.com/LGUG2Z/base16_color_scheme",
|
|
"https://github.com/LGUG2Z/catppuccin-egui",
|
|
"https://github.com/LGUG2Z/flavours",
|
|
"https://github.com/LGUG2Z/komorebi",
|
|
]
|