Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source: https://sudomarchy.com/posts/remap-copilot-key
- Tutorial:
- 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.
- How to:
- 1) install 'keyd' with..
- sudo pacman -S keyd
- 2) open terminal and..
- sudo nvim /etc/keyd/default.conf
- 3) paste this text and save file
- [ids]
- *
- [main]
- # Map the Windows Copilot key combo to F13
- f23+leftshift+leftmeta = f13
- # If you don't have a Copilot key (or use laptop + external keyboard)
- rightcontrol = f13
- #-------------- delete this small section if you don't want 'capslock' remapped --------------
- # Remap Capslock key - tap = Esc, hold = Super+Shift
- capslock = overload(supershift, esc)
- [supershift:M-S]
- #---------------------------------------------------------------------------------------------
- [meta]
- shift = layer(meta)
- 4) in terminal do..
- sudo systemctl enable --now keyd
- 5) in ~/.config/voxtype/config.toml add this to the [hotkey] section..
- enabled = true
- key = "F13"
- 6) in terminal do..
- sudo keyd reload
- and then do..
- systemctl --user restart voxtype
- Pressing the 'Copilot' key should work! For the waybar icon, continue..
- 7) this is for the waybar..
- add this to config.jsonc..
- "modules-left": ["custom/voxtype"],
- and..
- "custom/voxtype": {
- "exec": "omarchy-voxtype-status",
- "return-type": "json",
- "format": "{icon}",
- "format-icons": {
- "idle": "",
- "recording": "",
- "transcribing": ""
- },
- "tooltip": true,
- "on-click-right": "omarchy-voxtype-config",
- "on-click": "omarchy-voxtype-model"
- },
- in the style.css file add this..
- #custom-voxtype {
- min-width: 12px;
- margin: 0 7.5px;
- font-size: 14px;
- }
- #custom-voxtype.recording {
- color: #a55555;
- font-size: 14px;
- }
- Enjoy!
Advertisement
Add Comment
Please, Sign In to add comment