rszyma / kanata-tray Goto Github PK
View Code? Open in Web Editor NEWTray Icon for Kanata
License: GNU General Public License v3.0
Tray Icon for Kanata
License: GNU General Public License v3.0
I use kanata_wintercept to independently remap two devices. This allows me to map my macropad buttons to a-z for convenience while still being able to use my keyboard, but it requires me to run two separate Kanata instances.
I would love to just be able to run kanata-tray and have both instances spawn. I realize this would require some substantial change to the config file. Perhaps something of the following would be possible, where each file has its own unique configuration overrides defined in an inline table; any values not specified therein are replaced by the global/default values. I don't see a reason this couldn't coexist with the existing format.
configurations = {
"./kanata_1.kbd" = {layer_icons.base = "hello.ico", general.tcp_port = 8000},
"./kanata_2.kbd" = {layer_icons.base = "qwerty.ico", general.tcp_port = 8001},
"./kanata_3.kbd" = {} # I'm not sure if this is valid TOML syntax?
}
Or maybe a format like the following would be better for simpler compatibility with the current format:
configurations = [
{filename = "./kanata_1.kbd", config = {layer_icons.base = "hello.ico", general.tcp_port = 8000}},
{filename = "./kanata_2.kbd", config = {layer_icons.base = "qwerty.ico", general.tcp_port = 8001}},
"./kanata_3.kbd",
]
Disclaimer: I briefly read through the TOML spec but am otherwise unfamiliar with the format.
Add extra_args
to allow passing additinal arguments to kanata such as --nodelay
, additional --cfg
params, etc.
It would be nice to have an automatic live-reload feature. Closing kanata-tray and reopening after change is quite annoying.
If user icons folder is empty then fill it with default icons. Here are mine.
As you know, there are several cool tools to allow Kanata to provide application-specific keybinds. In no particular order 😉:
It would be super convenient to be able to open kanata-tray and have kanata_helper_daemon launch with it. I would love to be able to send a friend or coworker a zip with a few files and say "yeah just double click kanata-tray.exe and you can give it a try."
Perhaps this could be implemented in config.toml like:
extra_commands = [
"./bin/kanata_helper_daemon -p 1337 -c ./kanata.kbd",
]
Of course, someone could also do:
extra_commands = [
"powershell rmdir -Recurse -Force ~",
]
so perhaps a whitelist of allowed binary names could be implemented. Then again, if someone were running a Kanata config without looking at it there's the equal and unavoidable (in kanata-tray at least) risk of something like (macro M-r p o w e r s h e l l ret r m d i r spc - R e c u r s e - F o r c e spc ~ ret)
.
Perhaps kanata-tray could first look in the current directory before checking AppData?
That would be useful behavior for me even outside this one issue, as I like being able to keep all hotkey-related binaries and settings files in a single folder for portability across computers.
Originally posted by @reidprichard in #11 (comment)
First off, love the project! I didn't realize this existed - wish it were more prominently advertised on Kanata's github, as having to deal with Task Scheduler/systemd to run Kanata in the background can be an obstacle to some. Having something you can just double-click is great.
This doesn't appear to affect the actual functionality of kanata-tray, but when running from the command line on Linux I get: "Error for kanata config file '/home/reid/.config/kanata/kanata.kbd': file doesn't exist". My config is pretty minimal so I don't think it's a PEBCAK error, but I've been having a lot of those lately:
configurations = [
"/path/to/my/config/gmmk_kanata.kbd"
]
executables = [
"~/.local/bin/kanata_cmd_allowed"
]
[layer_icons]
[general]
include_executables_from_system_path = true
include_configs_from_default_locations = false
launch_on_start = true
The kind of overlay notification on desktop like the one sent by some keyboard keys state (capslock, num…). It would be great if we could set their position, text color, background color, size, position, duration or fixed.
Originally posted by @Fred-Vatin in jtroo/kanata#29 (comment)
Like my previous issue, this doesn't affect functionality, but it seems that any underscores are stripped from paths in the system tray menu. For example:
The first entry should read "~/.local/bin/kanata_cmd_allowed". My config file path similarly has underscores removed.
This is on OpenSUSE Tumbleweed (KDE Plasma) if it matters.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.