GithubHelp home page GithubHelp logo

Comments (8)

jtroo avatar jtroo commented on August 18, 2024

Thanks for the compliment!

I'll look into this feature.

My understanding is that wmctrl is an executable that's installed by virtual box tools. When it's executed with your example command, it deactivates virtualbox capturing your inputs and you can control the host again. Is my understanding correct?

I personally use VMware for my VMs and it uses a key combination to return to the host, so I haven't had a need to use kanata for this workflow. Does virtualbox have any way to check for a key combo to leave the VM as a temporary workaround?

Looking this up now while not on my phone; seems my understanding of wmctrl was incorrect.

from kanata.

jtroo avatar jtroo commented on August 18, 2024

I've implemented something that might work for your needs. You can check out the pre-release to try it out:
https://github.com/jtroo/kanata/releases/tag/v1.0.4

Note that I've added conditional compilation for this feature since I consider it to be a bit dangerous. E.g. changing your configuration file is an attack vector for arbitrary code execution.

from kanata.

13minutes-yt avatar 13minutes-yt commented on August 18, 2024

The command works. Yet In some cases as I run it in terminal after the info message the cursor goes down rapidly without any trigger from my part.
Peek 2022-07-10 04-06.
One time it opened my image viewer 50 times and I had to shut the terminal.

I tested the executable kanata without cmd and also the cursor is moving fast in the terminal.

from kanata.

jtroo avatar jtroo commented on August 18, 2024

The downward cursor movement isn't new; I've noticed it in the past and have been trying to mitigate it for some time. The "catching only releases" message on init is one such mitigation attempt. It seems to have to do with keys being pressed (particularly enter) when the program starts up.

I haven't encountered the behaviour of it opening up any applications though. Maybe you clicked on something or changed the focus and the enter key inputs made the image viewer load up a bunch?

from kanata.

jtroo avatar jtroo commented on August 18, 2024

I've added another mitigation for the key repeat issue and updated the pre-release binaries to include the mitigation.

Feel free to try them out.

from kanata.

13minutes-yt avatar 13minutes-yt commented on August 18, 2024

I have been experimenting with this issue. Interestingly as I wrap it in a bash script there was no problem. That is how I used it before and that is why I could not see the problem before. I will experiment with the mitigation on different distros and will report back.
Really liking the ram usage (3 MB!!!)
2022-07-10_11-41

from kanata.

13minutes-yt avatar 13minutes-yt commented on August 18, 2024

The command works as expected but the tilda ~ does not work
ex:
(cmd rm -r ~/tmp/mytempfiles)will not work. I had to do
(cmd -r /home/13minutes/tmp/tempfiles) for it to work also $HOME doesn't work either

from kanata.

jtroo avatar jtroo commented on August 18, 2024

The command works as expected but the tilda ~ does not work ex: (cmd rm -r ~/tmp/mytempfiles)will not work. I had to do (cmd -r /home/13minutes/tmp/tempfiles) for it to work also $HOME doesn't work either

Yea this is expected behaviour based on the implementation. The program is executed directly (e.g. via the execv syscall) rather than through a shell. You may be able to use ~ or $HOME using cmd bash -c "your stuff here". I'll update this in the config file comments.

from kanata.

Related Issues (20)

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.