GithubHelp home page GithubHelp logo

kanata-tray's Introduction

rszyma's GitHub stats

kanata-tray's People

Contributors

reidprichard avatar rszyma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kanata-tray's Issues

Feature: Multiple Kanata instances with unique configurations

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.

Feature: extra_args

Add extra_args to allow passing additinal arguments to kanata such as --nodelay, additional --cfg params, etc.

Feature: Integration with other synergistic tools

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).

Error for kanata config file `.../kanata.kbd`: file doesn't exist

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

Underscores stripped from paths in tray menu?

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:
image
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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.