wkeys-0.1.0 is not a library.
Wkeys
An on-screen keyboard for wayland desktop written by rust using GTK-rs.
Notice: Wkeys requires your wayland wm support Virtual keyboard and wlr layer shell
Installation
Cargo
cargo add wkeys
Build from Source
Install dependencies, taking Arch Linux as an example.
paru gtk4 gtk4-layer-shell
Build project.
git clone https://github.com/ptazithos/wkeys.git
cargo Build
Configuration
The config files are at ~/.config/wkeys/
. The layout file is named layout.toml
. The style file is named style.css
.
The default layout file is:
= [
[
{ = '~', = '`', = 41 },
{ = '!', = '1', = 2 },
{ = '@', = '2', = 3 },
{ = '#', = '3', = 4 },
{ = '$', = '4', = 5 },
{ = '%', = '5', = 6 },
{ = '^', = '6', = 7 },
{ = '&', = '7', = 8 },
{ = '*', = '8', = 9 },
{ = '(', = '9', = 10 },
{ = ')', = '0', = 11 },
{ = '_', = '-', = 12 },
{ = '+', = '=', = 13 },
{ = 'Backspace', = 14, = 2 },
],
[
{ = 'Tab', = 15, = 1.5 },
{ = 'Q', = 16 },
{ = 'W', = 17 },
{ = 'E', = 18 },
{ = 'R', = 19 },
{ = 'T', = 20 },
{ = 'Y', = 21 },
{ = 'U', = 22 },
{ = 'I', = 23 },
{ = 'O', = 24 },
{ = 'P', = 25 },
{ = '{', = '[', = 26 },
{ = '}', = ']', = 27 },
{ = '|', = '\', = 43, = 1.5 },
],
[
{ = 'Caps Lock', = 58, = 1.75 },
{ = 'A', = 30 },
{ = 'S', = 31 },
{ = 'D', = 32 },
{ = 'F', = 33 },
{ = 'G', = 34 },
{ = 'H', = 35 },
{ = 'J', = 36 },
{ = 'K', = 37 },
{ = 'L', = 38 },
{ = ':', = ';', = 39 },
{ = '"', = "'", = 40 },
{ = 'Enter', = 28, = 2.25 },
],
[
{ = 'Shift', = 42, = 2.25 },
{ = 'Z', = 44 },
{ = 'X', = 45 },
{ = 'C', = 46 },
{ = 'V', = 47 },
{ = 'B', = 48 },
{ = 'N', = 49 },
{ = 'M', = 50 },
{ = '<', = ',', = 51 },
{ = '>', = '.', = 52 },
{ = '?', = '/', = 53 },
{ = 'Shift', = 54, = 2.75 },
],
[
{ = 'Ctrl', = 29, = 1.25 },
{ = 'Win', = 91, = 1.25 },
{ = 'Alt', = 56, = 1.25 },
{ = 'Space', = 57, = 6.25 },
{ = 'Alt', = 56, = 1.25 },
{ = 'Win', = 92, = 1.25 },
{ = 'Menu', = 93, = 1.25 },
{ = 'Ctrl', = 29, = 1.25 },
],
]
The default style file is:
}
}
}
}
}
}
IPC
Close Wkeys by IPC message
wkeys --message close
License
This repository is licensed under the MIT License.