twodogsdave

remap-copilot-key

Feb 11th, 2026
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. source: https://sudomarchy.com/posts/remap-copilot-key
  2.  
  3. Tutorial:
  4.  
  5. I press Copilot key and talk. I release Copilot key. Text is then pasted into terminal, browser or text editor etc. Even the Voxtype icon works on the waybar while active. The default keys to press are super+ctrl+x and I thought it was easier using just a 'one key' press. I also added a remap of the capslock key for escape/super+shift. Delete that part if you don't want it.
  6.  
  7. How to:
  8. 1) install 'keyd' with..
  9. sudo pacman -S keyd
  10.  
  11. 2) open terminal and..
  12. sudo nvim /etc/keyd/default.conf
  13.  
  14. 3) paste this text and save file
  15. [ids]
  16. *
  17.  
  18. [main]
  19. # Map the Windows Copilot key combo to F13
  20. f23+leftshift+leftmeta = f13
  21.  
  22. # If you don't have a Copilot key (or use laptop + external keyboard)
  23. rightcontrol = f13
  24.  
  25. #-------------- delete this small section if you don't want 'capslock' remapped --------------
  26. # Remap Capslock key - tap = Esc, hold = Super+Shift
  27. capslock = overload(supershift, esc)
  28.  
  29. [supershift:M-S]
  30. #---------------------------------------------------------------------------------------------
  31.  
  32. [meta]
  33. shift = layer(meta)
  34.  
  35. 4) in terminal do..
  36. sudo systemctl enable --now keyd
  37.  
  38. 5) in ~/.config/voxtype/config.toml add this to the [hotkey] section..
  39. enabled = true
  40. key = "F13"
  41.  
  42. 6) in terminal do..
  43. sudo keyd reload
  44. and then do..
  45. systemctl --user restart voxtype
  46.  
  47. Pressing the 'Copilot' key should work! For the waybar icon, continue..
  48.  
  49. 7) this is for the waybar..
  50. add this to config.jsonc..
  51. "modules-left": ["custom/voxtype"],
  52. and..
  53. "custom/voxtype": {
  54. "exec": "omarchy-voxtype-status",
  55. "return-type": "json",
  56. "format": "{icon}",
  57. "format-icons": {
  58. "idle": "󰍬",
  59. "recording": "󰍬",
  60. "transcribing": "󰔟"
  61. },
  62. "tooltip": true,
  63. "on-click-right": "omarchy-voxtype-config",
  64. "on-click": "omarchy-voxtype-model"
  65. },
  66.  
  67. in the style.css file add this..
  68. #custom-voxtype {
  69. min-width: 12px;
  70. margin: 0 7.5px;
  71. font-size: 14px;
  72. }
  73.  
  74. #custom-voxtype.recording {
  75. color: #a55555;
  76. font-size: 14px;
  77. }
  78.  
  79. Enjoy!
  80.  
  81.  
Advertisement
Add Comment
Please, Sign In to add comment