r-c-f / waynergy

A synergy client for Wayland compositors
MIT License
394 stars 17 forks source link

Waynergy not looking in ~/.xkb/keycodes #88

Closed simonm closed 10 months ago

simonm commented 10 months ago

Hi - Looking at similar issues to both #4, #3 and ultimately, #8 I am trying to use the keycodes as mentioned in https://github.com/r-c-f/waynergy/blob/13ea71c77a8961ed192e34affb53deb1960ca103/doc/xkb/keycodes/mac

As instructed, I have this:

xkb_keymap {
    xkb_keycodes  { include "mac+aliases(qwerty)"   };
    xkb_types     { include "complete"  };
    xkb_compat    { include "complete"  };
    xkb_symbols   { include "pc+us+inet(evdev)" };
    xkb_geometry  { include "pc(pc105)" };
};

However, when I add the linked file above to $HOME/.xkb/keycodes/mac waynergy does not start with the following errors.

> waynergy -c <server_ip> 
Dropping gid from 1028 to 1026
0.000005460: [INFO] Log initialized at level 3
0.000026621: [INFO] waynergy version 0.0.16
0.033364282: [WARN] Child died: PID 230700, Status 1
0.033401192: [WARN] Could not kill lingering wlpaste instances: -1

0.034297513: [INFO] Not using preferred mode on output -- check config
0.034312852: [INFO] Output updated: 3840x2160 at 0, 0 (scale: 1)
0.034322841: [INFO] Geometry updated: 3840x2160
0.034333250: [INFO] Output name: DP-2
0.034342528: [INFO] Output description: BNQ BenQ EW3280U S2M03886019 (DP-2)
0.034351575: [INFO] Output updated: 3840x2160 at 3840, 0 (scale: 1)
0.034360813: [INFO] Geometry updated: 7680x2160
0.034467445: [INFO] Compositor seems to be Hyprland
0.034499786: [INFO] Using wlroots virtual input protocols
xkbcommon: ERROR: Couldn't find file "keycodes/mac" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:   /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:   /etc/xkb
xkbcommon: ERROR: Abandoning keycodes file "(unnamed)"
xkbcommon: ERROR: Failed to compile xkb_keycodes
xkbcommon: ERROR: Failed to compile keymap
zsh segmentation fault (core dumped) waynergy -c <server_ip>

When I put the linked file in /usr/share/X11/xkb/keycodes/, waynergy starts as expected. Why is waynergy not looking in $HOME/.xkb?

This may not be related to waynergy, but I'm not able to find why this is happening so any pointers are much appreciated.

I still have a few keys to fix but I'm getting closer! Thanks for this great project.

(If you're interested: Linux workstation running hyprland on 2x 32" 4K monitors with a macbook perched nicely on the left.)

simonm commented 10 months ago

I will close this. It was a local issue resolved by reinstalling libxbcommon and waynergy.