xkeysnail icon indicating copy to clipboard operation
xkeysnail copied to clipboard

Is it possible to bind copy / paste with this tool?

Open kaihendry opened this issue 2 years ago • 5 comments

Goal: https://github.com/debauchee/barrier/discussions/1429

I want ⌘+c, ⌘+v to work on my Archlinux machine as it does when I use my Mac. Is this the right tool for the job?

kaihendry avatar Nov 20 '21 02:11 kaihendry

Probably, though, this app requires root access to work. kmonad, xmodmap et al. should be able to do what you describe without root access. xkeysnail is more suited for remapping keybindings on a per-application basis; xmodmap and other key rebinding programs can't do that.

butter-radish avatar Dec 28 '21 13:12 butter-radish

Unless you are simply trying to skip my project @kaihendry then I have already done the work for you.. using xkeysnail (slightly modified/forked) and mine has a GUI too and daemonizes xkeysnail for you as a systemd service. Unlike a 2 years ago though there are a couple of other solutions that can do dynamic key remaps, although I believe this to be the 1st one on Linux.

https://github.com/rbreaves/kinto

xremap and keyd are being rapidly developed and are beginning to support Wayland, something I have been pushing the dev and community here to pursue or take more seriously. I have an issue ticket with some early work on it but was not happy with the performance. Also some changes have happened in Wayland to require extensions or outside utilities that is not part of gnome-shell to work.. and still things are very much tied to the DE when using Wayland, unlike X11.

rbreaves avatar Jan 17 '22 01:01 rbreaves

@rbreaves What did you change in your fork? At a quick glance it looks like you're fork is pointing to version 0.3 (vs 0.4 released here)... is that correct?

joshgoebel avatar May 25 '22 17:05 joshgoebel

Yea, I forked it before the 0.4 release & one of my changes keeps modifiers keys held till the user releases it versus emitting or triggering a hotkeys combo quickly while releasing your modifier keys even if they’re physically still held.

Not everyone here liked that so that change was removed in their latest release. It broke other behavior that just isn’t compatible w/ what I need.

rbreaves avatar May 25 '22 21:05 rbreaves

I think you're referring to all the chatter here: https://github.com/mooz/xkeysnail/pull/87

joshgoebel avatar May 25 '22 22:05 joshgoebel