Closed SukkaW closed 1 month ago
From the log, it appears that the toshy can map
Cmd+C
toRCtrl+C
, which then maps toCtrl+Shift+C
, the same goes for theCmd+V
. However, for some reason, Gnome Terminal only receivesCtrl+C
instead ofCtrl+Shift+C
.
Can you try increasing the throttle delays set in your config file? Are you in a virtual machine? I can’t think of any other reason why a remap would behave unreliably like that. It is as if the app didn’t see the Shift key pressed at the right time. That’s what the throttle delays are meant to deal with.
Can you try increasing the throttle delays set in your config file? Are you in a virtual machine? I can’t think of any other reason why a remap would behave unreliably like that. It is as if the app didn’t see the Shift key pressed at the right time. That’s what the throttle delays are meant to deal with.
No, I am not in a virtual machine. Try increasing the throttle delay to post 50 past 100
, here is the new log:
$ toshy-config-verbose-start
Stopping Toshy systemd services...
Toshy systemd services stopped.
xwaykeyz v1.0.1
(DD) CONFIG: /home/sukka/.config/toshy/toshy_config.py
(DD) THROTTLES: Pre-key: 50ms, Post-key: 100ms
(DD) No Synergy log folder found. No log observer will be engaged.
(CG) Current settings:
-------------------------------------------
calling_module = 'toshy_config.py'
prefs_db_file_path = '/home/sukka/.config/toshy/toshy_user_preferences.sqlite'
-------------------------------------------
autostart_tray_icon = True
gui_dark_theme = True
-------------------------------------------
override_kbtype = 'Auto-Adapt'
-------------------------------------------
optspec_layout = 'Disabled'
-------------------------------------------
forced_numpad = True
media_arrows_fix = False
multi_lang = False
Caps2Cmd = False
Caps2Esc_Cmd = False
Enter2Ent_Cmd = False
ST3_in_VSCode = False
-------------------------------------------
(CG) Toshy config sees this environment:
DISTRO_ID = 'fedora'
DISTRO_VER = '40'
SESSION_TYPE = 'wayland'
DESKTOP_ENV = 'gnome'
DE_MAJ_VER = '46'
(DD) ENVIRON: Session type: 'wayland', Desktop env: 'gnome'
(DD) Zenity command path: '/usr/bin/zenity'
(--) WATCH: Watching for new devices to hot-plug.
(--) Autodetecting all keyboards (--device not specified)
(+K) Grabbing 'Magic Keyboard' (/dev/input/event20)
(+K) Successfully grabbed 'Magic Keyboard' (/dev/input/event20)
(+K) Grabbing 'Telink Wireless Gaming Mouse Keyboard' (/dev/input/event10)
(+K) Successfully grabbed 'Telink Wireless Gaming Mouse Keyboard' (/dev/input/event10)
(+K) Grabbing 'ITE Tech. Inc. ITE Device(8910) Keyboard' (/dev/input/event6)
(+K) Successfully grabbed 'ITE Tech. Inc. ITE Device(8910) Keyboard' (/dev/input/event6)
(+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event3)
(+K) Successfully grabbed 'AT Translated Set 2 keyboard' (/dev/input/event3)
(--) Ready to process input.
(II) in LEFT_META (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) KBTYPE: 'Apple' | Rgx matched on dev: 'Magic Keyboard'
(DD) MODMAP: LEFT_META => RIGHT_CTRL [Cond modmap - Terms - Mac kbd]
(DD) on_key RIGHT_CTRL press
(DD) suspending keys: [RCtrl<Key.RIGHT_CTRL>]
(II) in LEFT_META (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key RIGHT_CTRL release
(DD) resume because of mod release
(DD) resuming keys: [<Key.RIGHT_CTRL: 97>]
(OO) press RIGHT_CTRL 1717384905.386519
(OO) release RIGHT_CTRL 1717384905.3865836
(II) in LEFT_META (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) KBTYPE: 'Apple' | (CACHED) Rgx matched on dev: 'Magic Keyboard'
(DD) MODMAP: LEFT_META => RIGHT_CTRL [Cond modmap - Terms - Mac kbd]
(DD) on_key RIGHT_CTRL press
(DD) suspending keys: [RCtrl<Key.RIGHT_CTRL>]
(II) in C (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C press
(DD) KBTYPE: 'Apple' | (CACHED) Rgx matched on dev: 'Magic Keyboard'
(DD) WM_CLASS: 'gnome-terminal-server' | WM_NAME: 'sukka@sukka-fedorabook:~'
(DD) DEVICE: 'Magic Keyboard' | CAPS_LOCK: 'False' | NUM_LOCK: 'True'
(DD) ACTIVE KEYMAPS:
'User hardware keys', 'Wordwise - not vscode', 'GenTerms overrides: Fedora
… GNOME', 'GenTerms overrides: Ubuntu/Fedora', 'GenTerms overrides: GNOME',
'General Terminals', 'GenGUI overrides: not Chromebook', 'GenGUI overrides:
… Fedora GNOME', 'GenGUI overrides: GNOME', 'General GUI', 'Diagnostics'
(DD) COMBO: RCtrl-C => Ctrl-Shift-C in KMAP: 'General Terminals'
(DD) spent modifiers [<Key.RIGHT_CTRL: 97>]
(DD) resuspending keys
(DD) suspending keys: [RCtrl<Key.RIGHT_CTRL>]
(OO) press LEFT_CTRL 1717384907.120307
(OO) press LEFT_SHIFT 1717384907.120336
(OO) press C 1717384907.1708508
(OO) release C 1717384907.1709058
(OO) release LEFT_SHIFT 1717384907.2712517
(OO) release LEFT_CTRL 1717384907.2713172
(II) in C (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C release
(II) in LEFT_META (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key RIGHT_CTRL release
(DD) silent lift of spent mod RIGHT_CTRL
(II) in LEFT_META (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) KBTYPE: 'Apple' | (CACHED) Rgx matched on dev: 'Magic Keyboard'
(DD) MODMAP: LEFT_META => RIGHT_CTRL [Cond modmap - Terms - Mac kbd]
(DD) on_key RIGHT_CTRL press
(DD) suspending keys: [RCtrl<Key.RIGHT_CTRL>]
(II) in C (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C press
(DD) KBTYPE: 'Apple' | (CACHED) Rgx matched on dev: 'Magic Keyboard'
(DD) WM_CLASS: 'gnome-terminal-server' | WM_NAME: 'toshy-config-verbose-start'
(DD) DEVICE: 'Magic Keyboard' | CAPS_LOCK: 'False' | NUM_LOCK: 'True'
(DD) ACTIVE KEYMAPS:
'User hardware keys', 'Wordwise - not vscode', 'GenTerms overrides: Fedora
… GNOME', 'GenTerms overrides: Ubuntu/Fedora', 'GenTerms overrides: GNOME',
'General Terminals', 'GenGUI overrides: not Chromebook', 'GenGUI overrides:
… Fedora GNOME', 'GenGUI overrides: GNOME', 'General GUI', 'Diagnostics'
(DD) COMBO: RCtrl-C => Ctrl-Shift-C in KMAP: 'General Terminals'
(DD) spent modifiers [<Key.RIGHT_CTRL: 97>]
(DD) resuspending keys
(DD) suspending keys: [RCtrl<Key.RIGHT_CTRL>]
(OO) press LEFT_CTRL 1717384912.0619922
(OO) press LEFT_SHIFT 1717384912.0620303
(OO) press C 1717384912.1124203
(OO) release C 1717384912.1125162
^C(OO) release LEFT_SHIFT 1717384912.2126796
(OO) release LEFT_CTRL 1717384912.212806
(II) in C (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C release
(II) in LEFT_META (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key RIGHT_CTRL release
(DD) silent lift of spent mod RIGHT_CTRL
signal INT received
(-K) Ungrabbing: 'Magic Keyboard' (removed)
(-K) Ungrabbing: 'ITE Tech. Inc. ITE Device(8910) Keyboard' (removed)
OK, I know why. I have enabled Ctrl+Shift
to Switch to another layout
in gnome-tweaks
:
GNOME will hijack all Ctrl+Shift
combo.
Then open a new tab in gnome terminal, and tap
Cmd+C
a few time:And
Ctrl+C
, then restart withtoshy-config-verbose-start
, this time tapCmd+V
a few time in the gnome terminal:From the log, it appears that the toshy can map
Cmd+C
toRCtrl+C
, which then maps toCtrl+Shift+C
, the same goes for theCmd+V
. However, for some reason, Gnome Terminal only receivesCtrl+C
instead ofCtrl+Shift+C
.