yay
2025-01-23 21:49:40 +13:00
2025-01-23 14:33:19 +13:00
yay
2025-01-23 21:49:40 +13:00

keydisplay

note: you will need to add yourself to the input group or run as root if you intend to use wayland

you can do it like this

doas usermod -aG input $USER

config.rs

  • use serde with a config struct

  • impl with defaults and read function

read:

  • get the current users config folder

  • make a folder if the "keydisplay" folder doesnt exist

  • make a keydisplay/config.toml if it doesnt exist

  • give it 600 permissions

config:

  • theme = {catppuccin_mocha, grey, night, day}
  • [listen]
    • keys = "z, x"
    • mouse = "m1, m2"
  • [display]
    • mouse = "key"

listen.rs

main.rs

  • read config

  • start listener on keys from config

  • load gui using theme

Description
i couldnt find a program like this on linux+wayland
Readme GPL-2.0 260 KiB
Languages
Rust 47.6%
Svelte 30.2%
CSS 13.8%
JavaScript 5.6%
HTML 1.7%
Other 1.1%