RedBearAK / toshy

Keymapper config to make Linux work like a 'Tosh!
https://toshy.app
GNU General Public License v3.0
226 stars 15 forks source link

(Question) `Cmd+C` in Fedora Gnome Terminal becomes `Ctrl+C` and I don't know how to debug it #282

Closed SukkaW closed 1 month ago

SukkaW commented 1 month ago
$ toshy-env

(EV) Toshy env module sees this environment:
         DISTRO_ID       = 'fedora'
         DISTRO_VER      = '40'
         VARIANT_ID      = 'workstation'
         SESSION_TYPE    = 'wayland'
         DESKTOP_ENV     = 'gnome'
         DE_MAJ_VER      = '46'
$ toshy-config-verbose-start

Then open a new tab in gnome terminal, and tap Cmd+C a few time:

$ 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: 12ms, Post-key: 18ms
(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/event7)
(+K) Successfully grabbed 'ITE Tech. Inc. ITE Device(8910) Keyboard' (/dev/input/event7)
(+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 1717320193.289184
(OO) release RIGHT_CTRL 1717320193.2892525

(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 1717320195.5274072
(OO) press LEFT_SHIFT 1717320195.527473
(OO) press C 1717320195.5397089
(OO) release C 1717320195.5398505
(OO) release LEFT_SHIFT 1717320195.558075
(OO) release LEFT_CTRL 1717320195.5582147

(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: '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 1717320200.759091
(OO) press LEFT_SHIFT 1717320200.7591567
(OO) press C 1717320200.7713907
(OO) release C 1717320200.7715921
(OO) release LEFT_SHIFT 1717320200.789747
(OO) release LEFT_CTRL 1717320200.7898357

(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: '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 1717320211.57386
(OO) press LEFT_SHIFT 1717320211.573888
(OO) press C 1717320211.5861156
(OO) release C 1717320211.586327
(OO) release LEFT_SHIFT 1717320211.6045496
(OO) release LEFT_CTRL 1717320211.6047025

(II) in C (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C release
(DD) resuming keys: [<Key.RIGHT_CTRL: 97>]
(OO) press RIGHT_CTRL 1717320211.7744076

(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 []
(OO) press LEFT_SHIFT 1717320211.7978458
(OO) press C 1717320211.8100476
(OO) release C 1717320211.8101618
(OO) release LEFT_SHIFT 1717320211.828437

(II) in C (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C release

(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 []
(OO) press LEFT_SHIFT 1717320211.993261
(OO) press C 1717320212.0054784
(OO) release C 1717320212.0056677
(OO) release LEFT_SHIFT 1717320212.0239482

(II) in C (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C release

(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 []
(OO) press LEFT_SHIFT 1717320212.1900213
(OO) press C 1717320212.2023048
(OO) release C 1717320212.2025578
(OO) release LEFT_SHIFT 1717320212.220787

(II) in C (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key C release

(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 []
(OO) press LEFT_SHIFT 1717320212.4001935
(OO) press C 1717320212.4125454
(OO) release C 1717320212.4125903
(OO) release LEFT_SHIFT 1717320212.4308052

(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) resume because of mod release
(OO) release RIGHT_CTRL 1717320212.527851

And Ctrl+C, then restart with toshy-config-verbose-start, this time tap Cmd+V a few time in the gnome terminal:

$ 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: 12ms, Post-key: 18ms
(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/event7)
(+K) Successfully grabbed 'ITE Tech. Inc. ITE Device(8910) Keyboard' (/dev/input/event7)
(+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>]
(DD) resuming keys: [<Key.RIGHT_CTRL: 97>]
(OO) press RIGHT_CTRL 1717320285.0174227

(II) in V (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V 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-V => Ctrl-Shift-V in KMAP: 'General Terminals'
(DD) spent modifiers []
(OO) press LEFT_SHIFT 1717320285.0909038
(OO) press V 1717320285.1032066
(OO) release V 1717320285.1032703
(OO) release LEFT_SHIFT 1717320285.121554

(II) in V (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V release

(II) in V (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V 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-V => Ctrl-Shift-V in KMAP: 'General Terminals'
(DD) spent modifiers []
(OO) press LEFT_SHIFT 1717320285.3141003
(OO) press V 1717320285.3263063
(OO) release V 1717320285.3264208
(OO) release LEFT_SHIFT 1717320285.344604

(II) in V (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V release

(II) in V (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V 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-V => Ctrl-Shift-V in KMAP: 'General Terminals'
(DD) spent modifiers []
(OO) press LEFT_SHIFT 1717320285.5088408
(OO) press V 1717320285.5210388
(OO) release V 1717320285.521122
(OO) release LEFT_SHIFT 1717320285.5393221

(II) in V (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V release

(II) in V (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V 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-V => Ctrl-Shift-V in KMAP: 'General Terminals'
(DD) spent modifiers []
(OO) press LEFT_SHIFT 1717320285.7184181
(OO) press V 1717320285.7306569
(OO) release V 1717320285.7307668
(OO) release LEFT_SHIFT 1717320285.748922

(II) in V (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V release

(II) in V (press)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V 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-V => Ctrl-Shift-V in KMAP: 'General Terminals'
(DD) spent modifiers []
(OO) press LEFT_SHIFT 1717320285.9274457
(OO) press V 1717320285.9397125
(OO) release V 1717320285.9398139
(OO) release LEFT_SHIFT 1717320285.9580038

(II) in V (release)
(DD) SHELL_EXT: Using UUID 'xremap@k0kubun.com' for window context
(DD) on_key V release

(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
(OO) release RIGHT_CTRL 1717320286.087986

(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>]
(DD) resuming keys: [<Key.RIGHT_CTRL: 97>]
(OO) press RIGHT_CTRL 1717320293.0123997

(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 []
(OO) press LEFT_SHIFT 1717320293.072361
(OO) press C 1717320293.0847
(OO) release C 1717320293.0849426
^C(OO) release LEFT_SHIFT 1717320293.1032162
signal INT received
(OO) release RIGHT_CTRL 1717320293.1038022
(-K) Ungrabbing: 'Magic Keyboard' (removed)
(-K) Ungrabbing: 'ITE Tech. Inc. ITE Device(8910) Keyboard' (removed)

From the log, it appears that the toshy can map Cmd+C to RCtrl+C, which then maps to Ctrl+Shift+C, the same goes for the Cmd+V. However, for some reason, Gnome Terminal only receives Ctrl+C instead of Ctrl+Shift+C.

RedBearAK commented 1 month ago

From the log, it appears that the toshy can map Cmd+C to RCtrl+C, which then maps to Ctrl+Shift+C, the same goes for the Cmd+V. However, for some reason, Gnome Terminal only receives Ctrl+C instead of Ctrl+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.

SukkaW commented 1 month ago

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)
SukkaW commented 1 month ago

OK, I know why. I have enabled Ctrl+Shift to Switch to another layout in gnome-tweaks:

image

GNOME will hijack all Ctrl+Shift combo.