You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to migrate from a functioning barrier setup to a waynergy/barrier hybrid. Initially I ran into some offset issues, and was able to set my client configuration to:
xkb_key_offset = 7
[log]level = 4
mode = a
This corrected everything but the control keys (LWIN, ALT; but SHIFT was fine). I saw the documentation about the xkb_keymap for mac, and attempted to install that at .config/xkb/keycodes/mac and .xkb/keycodes/mac since I saw both mentioned in other issues (#3, #4, and some others); I also placed the recommended xkb_keymap file next to the config.ini file. I know that that file is being seen by waynergy because if I place a syntax error in it, it causes a startup failure. The file is:
xkb_keymap {
xkb_keycodes { include "mac+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)+capslock(super)+compose(ralt)" };
xkb_geometry { include "pc(pc105)" };
};
And as mentioned the mac keymap is copied verbatim in both places.
When starting waynergy, the below log plays, and this section (less some extraneous journal stuff):
[INFO] Using wlroots virtual input protocols
[INFO] Using wlroots protocols for virtual input
[DEBUG] Will default to map xkb_keymap {
xkb_keycodes "(unnamed)" {
# snip the full printout of what I believe to be the default 'builtin' xkb map that is _not_ the `mac` keymap
}
[DEBUG] Property xkb_keymap not found in INI
[DEBUG] Setting virtual keymap
[DEBUG] max key: 135
This appears to indicate it is not reading the mac keycode file; though it must be doing something with it because, again, a syntax error results in waynergy not starting.
Reading the output from the log as it runs, I can see waynergy receiving the correct keycode and offsetting it correctly:
Reading the mac keycode list, this should map to LWIN, but in the default it's using, LWIN is mapped to (taken from the snipped section where it prints out the default keymap):
<LWIN> = 133;
I had thought this might be a 'weird things happen when reading from a symlink', which NixOS uses thoroughly in this case, but I replaced the files with 'real' files in the same location (not symlinks) with the same content to no avail.
I've also tried doing some raw keymap to map 63 -> 133, (I tried both directions, mostly out of desperation), but no dice.
I also briefly tried switching to uinput, but getting that to work on NixOS seems to take a little more magic than I had left after staring at keycode logs for longer than was medically advisable.
I looked a bit over the code around config reading to see if there were clues, but my C is quite weak; so I didn't see anything that stuck out, and tbh it's far more likely that this is an error on my end, but I'd appreciate any pointers you could give in the direction of a solution -- every other key seems to work alright (ironically, the only key that isn't working is the most important key in hyprland. 😦)
Log attached below, lmk if you need more data, appreciate any help.
Debug log on client:
Sep 07 20:41:03 archimedes systemd[1828]: Stopped Waynergy Client Service.
Sep 07 20:41:03 archimedes systemd[1828]: Started Waynergy Client Service.
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: uinput fd open failed (this is normal if not using uinput backend): Permission denied
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.000000946: [DEBUG] Got value from INI: log/mode: a
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.000017655: [DEBUG] Using INI value for log/mode: a
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.000029863: [INFO] Log initialized at level 4
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.000041345: [INFO] /nix/store/d9xx8qdnwk1kxjpl0xn87g29brb4bi87-waynergy-0.0.17/bin/waynergy version 0.0.17
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.000066762: [DEBUG] Property syn_raw_key_codes not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.000085963: [DEBUG] requiring wait() on SIGCHLD
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.001562103: [DEBUG] Child died: PID 80009, Status 0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.001604802: [DEBUG] Found wl-paste
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.007750756: [DEBUG] Child died: PID 80010, Status 0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.007812045: [DEBUG] Found wl-copy
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.007834176: [DEBUG] not requiring wait() on SIGCHLD
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.043210356: [WARN] Child died: PID 80014, Status 1
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.043269088: [WARN] Could not kill lingering wlpaste instances: -1
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.044166153: [DEBUG] Section wayland not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.044634818: [DEBUG] Got idle notifier
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045033699: [DEBUG] Seat name is Hyprland
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045061186: [DEBUG] Seat has pointer
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045078276: [DEBUG] Seat has keyboard
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045115287: [DEBUG] Mutating output...
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045131713: [DEBUG] Got output at position 0,0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045151937: [DEBUG] Got scale factor for output: 2
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045182539: [DEBUG] Mutating output...
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045198420: [DEBUG] Got current mode: 1920x1080@60007*
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045226992: [DEBUG] Mutating output...
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045258694: [INFO] Output updated: 1920x1080 at 0, 0 (scale: 2)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045278119: [DEBUG] Got xdg output name: eDP-1
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045294385: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045310766: [DEBUG] Got xdg output desc: Chimei Innolux Corporation 0x15F6 (eDP-1)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045327081: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045359784: [DEBUG] Got xdg output position: 0, 0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045375649: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045392052: [DEBUG] Got xdg output size: 1280x720
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045418885: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045437299: [INFO] Output name: eDP-1
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045455107: [INFO] Output description: Chimei Innolux Corporation 0x15F6 (eDP-1)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045473657: [INFO] Output updated: 1280x720 at 0, 0 (scale: 2)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045492058: [DEBUG] Mutating output...
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045507719: [DEBUG] Got output at position 0,0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045539318: [DEBUG] Got scale factor for output: 1
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045575540: [DEBUG] Mutating output...
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045592071: [DEBUG] Got current mode: 2560x1440@59951*
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045622138: [DEBUG] Mutating output...
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045657848: [INFO] Output updated: 2560x1440 at 0, 0 (scale: 1)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045676816: [DEBUG] All outputs updated, triggering event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045705306: [INFO] Geometry updated: 2560x1440
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045720884: [DEBUG] Current output backend does not update input geometry
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045757696: [DEBUG] Got xdg output name: HDMI-A-3
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045788699: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045804803: [DEBUG] Got xdg output desc: Acer Technologies EB321HQU T5NAA0023E00 (HDMI-A-3)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045819322: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045834826: [DEBUG] Got xdg output position: 1280, 0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045873801: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045892058: [DEBUG] Got xdg output size: 2560x1440
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045907834: [DEBUG] Mutating output from xdg_output event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045924334: [INFO] Output name: HDMI-A-3
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045949215: [INFO] Output description: Acer Technologies EB321HQU T5NAA0023E00 (HDMI-A-3)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045964828: [INFO] Output updated: 2560x1440 at 1280, 0 (scale: 1)
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045981046: [DEBUG] All outputs updated, triggering event
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.045996577: [INFO] Geometry updated: 3840x1440
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046013679: [DEBUG] Current output backend does not update input geometry
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046137904: [DEBUG] Property wl_keyboard_map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046292645: [DEBUG] Current keymap updated
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046404440: [INFO] Compositor seems to be .Hyprland-wrapp
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046432950: [DEBUG] Section wlr not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046460219: [DEBUG] Using wheel_mult value of 1
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046516361: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046547086: [DEBUG] Set button mapping: 0 -> 0
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046564986: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046590268: [DEBUG] Set button mapping: 1 -> 272
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046609124: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046631579: [DEBUG] Set button mapping: 2 -> 274
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046650397: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046674545: [DEBUG] Set button mapping: 3 -> 273
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046691569: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046715143: [DEBUG] Set button mapping: 4 -> 275
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046733674: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046756637: [DEBUG] Set button mapping: 5 -> 276
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046773165: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046797198: [DEBUG] Set button mapping: 6 -> 275
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046814313: [DEBUG] Section button-map not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046836935: [DEBUG] Set button mapping: 7 -> 276
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046853435: [INFO] Using wlroots virtual input protocols
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046870541: [INFO] Using wlroots protocols for virtual input
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.046888876: [DEBUG] Will default to map xkb_keymap {
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: xkb_keycodes "(unnamed)" {
# snip the full printout of what I believe to be the default 'builtin' xkb map
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.076048597: [DEBUG] Property xkb_keymap not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083333930: [DEBUG] Setting virtual keymap
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083391837: [DEBUG] max key: 135
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083457772: [DEBUG] Property offset not found in INI
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083492691: [DEBUG] Got value from INI: xkb_key_offset: 7
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083504959: [DEBUG] Using INI value for xkb_key_offset: 7
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083516627: [DEBUG] Initial raw key offset: 7
Sep 07 20:41:03 archimedes s7vqnvbb3vl8hslylwsmdgbd7adqky71-waynergy-client-login.sh[80004]: 0.083528953: [DEBUG] Property offset_on_explicit not found in INI
Coredump when committing a syntax error to the keycode file, indicating it is definitely read.
Sep 07 21:03:32 archimedes systemd-coredump[114322]: Process 114313 (waynergy) of user 1000 dumped core.
Module libffi.so.8 without build-id.
Module libcrypto.so.53 without build-id.
Module libssl.so.56 without build-id.
Module libxkbcommon.so.0 without build-id.
Module libtls.so.29 without build-id.
Module waynergy without build-id.
Stack trace of thread 114313:
#0 0x00007fd242d244c0 xkb_keymap_max_keycode (libxkbcommon.so.0 + 0x204c0)
#1 0x0000000000405404 wlKeySetConfigLayout (waynergy + 0x5404)
#2 0x000000000040dd64 wlSetup (waynergy + 0xdd64)
#3 0x00000000004044a5 main (waynergy + 0x44a5)
#4 0x00007fd242b3714e __libc_start_call_main (libc.so.6 + 0x2a14e)
#5 0x00007fd242b37209 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a209)
#6 0x0000000000404655 _start (waynergy + 0x4655)
ELF object binary architecture: AMD x86-64
This also proves it only cares about the .config/xkb/keycodes/mac, as I fixed only this one and not the other and startup worked fine again.
The text was updated successfully, but these errors were encountered:
Host (hedges) running OSX Sonoma 14.4.1, ZSA Moonlander, Barrier 2.4.0
Client (archimedes) running NixOS + hyprland (v0.42.0 @ 9a09eac) + waynergy 0.0.17
Logs below:
Problem Statement:
I'm trying to migrate from a functioning barrier setup to a waynergy/barrier hybrid. Initially I ran into some offset issues, and was able to set my client configuration to:
This corrected everything but the control keys (LWIN, ALT; but SHIFT was fine). I saw the documentation about the xkb_keymap for mac, and attempted to install that at
.config/xkb/keycodes/mac
and.xkb/keycodes/mac
since I saw both mentioned in other issues (#3, #4, and some others); I also placed the recommendedxkb_keymap
file next to theconfig.ini
file. I know that that file is being seen by waynergy because if I place a syntax error in it, it causes a startup failure. The file is:And as mentioned the
mac
keymap is copied verbatim in both places.When starting waynergy, the below log plays, and this section (less some extraneous journal stuff):
This appears to indicate it is not reading the
mac
keycode file; though it must be doing something with it because, again, a syntax error results in waynergy not starting.Reading the output from the log as it runs, I can see
waynergy
receiving the correct keycode and offsetting it correctly:Reading the
mac
keycode list, this should map to LWIN, but in the default it's using, LWIN is mapped to (taken from the snipped section where it prints out the default keymap):I had thought this might be a 'weird things happen when reading from a symlink', which NixOS uses thoroughly in this case, but I replaced the files with 'real' files in the same location (not symlinks) with the same content to no avail.
I've also tried doing some raw keymap to map 63 -> 133, (I tried both directions, mostly out of desperation), but no dice.
I also briefly tried switching to uinput, but getting that to work on NixOS seems to take a little more magic than I had left after staring at keycode logs for longer than was medically advisable.
I looked a bit over the code around config reading to see if there were clues, but my C is quite weak; so I didn't see anything that stuck out, and tbh it's far more likely that this is an error on my end, but I'd appreciate any pointers you could give in the direction of a solution -- every other key seems to work alright (ironically, the only key that isn't working is the most important key in hyprland. 😦)
Log attached below, lmk if you need more data, appreciate any help.
Debug log on client:
Coredump when committing a syntax error to the keycode file, indicating it is definitely read.
This also proves it only cares about the
.config/xkb/keycodes/mac
, as I fixed only this one and not the other and startup worked fine again.The text was updated successfully, but these errors were encountered: