Voxtype: Transcription triggers system shortcuts if Super key is held
System details
Omarchy 3.3.3
What's wrong?
Description
Currently, when the voxtype dictation finishes, it outputs the transcribed text by simulating individual keystrokes into the active input field.
The issue arises if the user is still holding down the Super key, the system interprets the simulated keystrokes as shortcuts rather than text input.
Example: If the transcribed word is "what is ....." and the user is holding Super:
-
System receives
Super+w. -
System receives
Super+space, etc.
This causes random system behavior instead of typing the text.
Proposed Solution
Instead of simulating keystrokes for every character, the transcribed data should be copied to the system clipboard.
This avoids modifier key conflicts entirely. The user can then manually paste the text.
It is surprising that even if W is present in the word then also it does not closes the window but it does some random stuff like opening the System Menu and changing the workspaces randomely
try this I just posted this in another thread in utilities.conf
remove the two bindings and replace with
bindd = SUPER CTRL, X, Toggle dictation, exec, voxtype record toggle
as vox type supports toggle recording so its on or off .no more finger issues
I did replace the bindings with the one you gave and it works. I can understand what you are trying to say, if I don't have to keep holding the super key then there are less chances of the issue happening and that is fine. But even though sometimes it happens and it is annoying to reopen the apps or go to the previous workspace and it just feels unreliable as sometimes it does close the applications and it might happen that my work was not saved or something was in progress.
So, I am looking for a way to not make it type, instead just copy the result to my clipboard and I can just paste it wherever I need which is a neat feature.
That’s an interesting solution but it would mean an extra step that wasn’t there before hand but it’s worth investigating if there is some unique key binding that doesn’t involve the super key
On January 9, 2026, Luke Miles @.***> wrote:
RUDisCOOL left a comment (basecamp/omarchy#4185) <https://github.com/basecamp/omarchy/issues/4185#issuecomment- 3729420655>
I did replace the bindings with the one you gave and it works. I can understand what you are trying to say, if I don't have to keep holding the super key then there are less chances of the issue happening and that is fine. But even though sometimes it happens and it is annoying to reopen the apps or go to the previous workspace and it just feels unreliable as sometimes it does close the applications and it might happen that my work was not saved or something was in progress.
So, I am looking for a way to not make it type, instead just copy the result to my clipboard and I can just paste it wherever I need which is a neat feature. — Reply to this email directly, view it on GitHub <https://github.com/basecamp/omarchy/issues/4185#issuecomment- 3729420655>, or unsubscribe <https://github.com/notifications/unsubscribe- auth/B2SS3KWZF5FY5KTVZ3PTG5D4F7DGRAVCNFSM6AAAAACRFXP45GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMRZGQZDANRVGU>. You are receiving this because you commented.Message ID: @.***>
@RUDisCOOL
A couple of things:
- Voxtype does have a clipboard mode if that's what you prefer. In ~/.config/voxtype/config.toml, add this to see whether it does what you want:
[output]
mode = "clipboard"
It sounds like you do NOT want voxtype to auto-paste, but if you DO want that"
[output]
mode = "paste"
0.4.11 will add the ability to override per session:
voxtype daemon --output-mode clipboard
or per recording:
voxtype record --output-mode clipboard
- There's a workaround / bugfix being worked on here: https://github.com/basecamp/omarchy/pull/4178 and it should eliminate the need for clipboard mode.
It is surprising that even if W is present in the word then also it does not closes the window but it does some random stuff like opening the System Menu and changing the workspaces randomely
Yea. It's cuckoo and a terrible user experience.
I parked my original plans for an 0.4.10 release and focused solely on this issue along with @konnsim. Kurtis and @IgorWarzocha deserve a bunch of credit for finding a fast fix and coordinating upstream to have the best use experience possible.
Actually, how about this… just one key, but we let the user choose.
There’s obviously keyboard chaos out there, and we all work very differently, with all sorts of keyboards and ways of working. You could build this into the first install of the dictation package so it either scans your keyboard for a free key or lets you choose one.
Obviously, the premium choice would be to make that Copilot key actually do something useful for once 😄 — but not everyone has that key on their keyboard.
Anyway, sorry for the giant cut-and-paste… I’m going to do some more testing on this today.
#!/bin/bash
Switch voxtype to push-to-talk with user-selected key
Hold key to record, release to stop
set -euo pipefail
CONFIG_FILE="$HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf" BINDINGS_DIR="$HOME/.local/share/omarchy/default/hypr/bindings" RESTORE_DEFAULT=0 KEY=""
Key codes (from /usr/include/linux/input-event-codes.h)
declare -A KEY_CODES=( ["Control_R"]=97 ["Alt_R"]=100 ["Insert"]=110 ["Scroll_Lock"]=70 ["Pause"]=119 ["Menu"]=127 ["Caps_Lock"]=58 ["XF86Launch1"]=148 ["Print"]=99 ["KP_Enter"]=96 ["KP_Add"]=78 ["KP_Subtract"]=74 ["KP_Multiply"]=55 ["KP_Divide"]=98 ["KP_Decimal"]=83 ["KP_Insert"]=82 ["Num_Lock"]=69 )
key_exists_on_keyboard() { local key="$1" local code="${KEY_CODES[$key]:-}"
[[ -z "$code" ]] && return 0 # Unknown key, assume exists
# Check all keyboard devices for dev in /sys/class/input/event*/device/capabilities/key; do [[ -f "$dev" ]] || continue
# Check if this is a keyboard (has common keys like KEY_A=30) local caps caps=$(cat "$dev" 2>/dev/null) || continue
# Convert hex capabilities to check if key bit is set # Capabilities are in hex, space-separated, little-endian 64-bit chunks local bit=$code local chunk=$((bit / 64)) local bit_in_chunk=$((bit % 64))
# Get the right hex chunk (they're listed right-to-left) local hex_vals read -ra hex_vals <<< "$caps" local num_chunks=${#hex_vals[@]} local chunk_idx=$((num_chunks - 1 - chunk))
if [[ $chunk_idx -ge 0 && $chunk_idx -lt $num_chunks ]]; then local hex_val="${hex_vals[$chunk_idx]}" local dec_val=$((16#$hex_val)) if (( (dec_val >> bit_in_chunk) & 1 )); then return 0 # Key exists fi fi done
return 1 # Key not found }
Modifier keys require the 'i' flag in Hyprland
MODIFIER_KEYS=( "Control_L" "Control_R" "Shift_L" "Shift_R" "Alt_L" "Alt_R" "Super_L" "Super_R" "Caps_Lock" )
is_modifier() { local key="$1" local mod for mod in "${MODIFIER_KEYS[@]}"; do [[ "$key" == "$mod" ]] && return 0 done return 1 }
is_alphanumeric() { local key="$1" [[ "$key" =~ ^[a-zA-Z0-9]$ ]] && return 0 return 1 }
get_key_status() { local key="$1" local conflicts
# Search all binding files for this key (excluding voxtype lines) conflicts=$(grep -rh ", *${key} *," "$BINDINGS_DIR" 2>/dev/null | grep -v "voxtype record" || true)
if [[ -n "$conflicts" ]]; then # Extract first binding description echo "$conflicts" | head -1 | cut -d',' -f3 | xargs else echo "" fi }
check_conflicts() { local key="$1" local status
status=$(get_key_status "$key")
if [[ -n "$status" ]]; then echo "" echo "Warning: $key is already mapped to: $status" echo "" read -rp "Override existing binding? [y/N]: " override [[ "$override" =~ ^[Yy]$ ]] || return 1 fi return 0 }
show_key_option() { local num="$1" local name="$2" local key="$3" local status local hw_status=""
# Check if key physically exists if ! key_exists_on_keyboard "$key"; then hw_status="NO KEY" fi
# Check binding status status=$(get_key_status "$key")
# Format with padding for alignment local prefix printf -v prefix " %2s) %-18s" "$num" "$name"
if [[ -n "$hw_status" ]]; then echo "$prefix - [$hw_status]" elif [[ -n "$status" ]]; then echo "$prefix - [IN USE: $status]" else echo "$prefix - [available]" fi }
echo "Voxtype Push-to-Talk Configuration" echo "" echo "Scanning keyboard and bindings..." echo "" echo "=== Modifier Keys ===" show_key_option "1" "Right Ctrl" "Control_R" show_key_option "2" "Right Alt" "Alt_R" show_key_option "3" "Caps Lock" "Caps_Lock" echo "" echo "=== Standard Keys ===" show_key_option "4" "Insert" "Insert" show_key_option "5" "Scroll Lock" "Scroll_Lock" show_key_option "6" "Pause" "Pause" show_key_option "7" "Menu" "Menu" show_key_option "8" "Print Screen" "Print" echo "" echo "=== Numpad Keys ===" show_key_option "9" "Numpad Enter" "KP_Enter" show_key_option "10" "Numpad +" "KP_Add" show_key_option "11" "Numpad -" "KP_Subtract" show_key_option "12" "Numpad *" "KP_Multiply" show_key_option "13" "Numpad /" "KP_Divide" show_key_option "14" "Numpad . (Del)" "KP_Decimal" show_key_option "15" "Numpad 0 (Ins)" "KP_Insert" show_key_option "16" "Num Lock" "Num_Lock" echo "" echo "=== Special ===" show_key_option "17" "Copilot key" "XF86Launch1" echo " 18) Custom (enter key name)" echo " 0) Restore default (Super+Ctrl+X)" echo "" read -rp "Choice: " choice
case "$choice" in 1) KEY="Control_R" ;; 2) KEY="Alt_R" ;; 3) KEY="Caps_Lock" ;; 4) KEY="Insert" ;; 5) KEY="Scroll_Lock" ;; 6) KEY="Pause" ;; 7) KEY="Menu" ;; 8) KEY="Print" ;; 9) KEY="KP_Enter" ;; 10) KEY="KP_Add" ;; 11) KEY="KP_Subtract" ;; 12) KEY="KP_Multiply" ;; 13) KEY="KP_Divide" ;; 14) KEY="KP_Decimal" ;; 15) KEY="KP_Insert" ;; 16) KEY="Num_Lock" ;; 17) KEY="XF86Launch1" ;; 18) read -rp "Enter key name (e.g. F12): " KEY ;; 0) RESTORE_DEFAULT=1 ;; *) echo "Invalid choice"; exit 1 ;; esac
if [[ ! -f "$CONFIG_FILE" ]]; then echo "Error: Config file not found at $CONFIG_FILE" exit 1 fi
if ! grep -q '^# Dictation' "$CONFIG_FILE"; then echo "Error: '# Dictation' section not found in config file" exit 1 fi
Backup
cp "$CONFIG_FILE" "$CONFIG_FILE.backup.$(date +%Y%m%d_%H%M%S)"
Remove existing voxtype bindings
sed -i '/^bind.*voxtype record/d' "$CONFIG_FILE"
if [[ "$RESTORE_DEFAULT" -eq 1 ]]; then # Restore original Super+Ctrl+X bindings sed -i '/^# Dictation$/a bindd = SUPER CTRL, X, Start dictation, exec, voxtype record start\nbinddr = SUPER CTRL, X, Stop dictation, exec, voxtype record stop' "$CONFIG_FILE" echo "" echo "Restored default: Super+Ctrl+X (hold to dictate, release to stop)" hyprctl reload exit 0 fi
if [[ -z "$KEY" ]]; then echo "Error: No key specified" exit 1 fi
Validate key name (only allow alphanumeric, underscores, and common
key names) if [[ ! "$KEY" =~ ^[a-zA-Z0-9_]+$ ]]; then echo "Error: Invalid key name. Use names like F12, Insert, Control_R" exit 1 fi
if is_alphanumeric "$KEY"; then echo "Error: Cannot use alphanumeric keys (a-z, 0-9) for push-to- talk" exit 1 fi
Check for conflicting bindings
if ! check_conflicts "$KEY"; then echo "Aborted. Choose a different key." exit 1 fi
Determine bind type based on whether key is a modifier
if is_modifier "$KEY"; then BIND_PRESS="bindid" BIND_RELEASE="bindidr" else BIND_PRESS="bindd" BIND_RELEASE="binddr" fi
Add new push-to-talk bindings
sed -i "/^# Dictation$/a ${BIND_PRESS} = , ${KEY}, Start dictation, exec, voxtype record start\n${BIND_RELEASE} = , ${KEY}, Stop dictation, exec, voxtype record stop" "$CONFIG_FILE"
echo "" echo "Switched to push-to-talk using $KEY" echo "Hold $KEY to dictate, release to stop" hyprctl reload
On January 9, 2026, Luke Miles @.***> wrote:
peteonrails left a comment (basecamp/omarchy#4185) <https://github.com/basecamp/omarchy/issues/4185#issuecomment- 3730061299>
It is surprising that even if W is present in the word then also it does not closes the window but it does some random stuff like opening the System Menu and changing the workspaces randomely
Yea. It's cuckoo and a terrible user experience.
I parked my original plans for an 0.4.10 release and focused solely on this issue along with @konnsim https://github.com/konnsim. Kurtis and @IgorWarzocha https://github.com/IgorWarzocha deserve a bunch of credit for finding a fast fix and coordinating upstream to have the best use experience possible.
— Reply to this email directly, view it on GitHub <https://github.com/basecamp/omarchy/issues/4185#issuecomment- 3730061299>, or unsubscribe <https://github.com/notifications/unsubscribe- auth/B2SS3KWORCFISYQJNCB3FRT4F7WRBAVCNFSM6AAAAACRFXP45GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMZQGA3DCMRZHE>. You are receiving this because you commented.Message ID: @.***>
It is surprising that even if W is present in the word then also it does not closes the window but it does some random stuff like opening the System Menu and changing the workspaces randomely
@RUDisCOOL
Check out this bug on Hyprland. https://github.com/hyprwm/Hyprland/issues/3165
It describes some of that same behavior that you're seeing. Looking into it a little bit more to see if I can't get to the bottom of it upstream.
- Voxtype does have a clipboard mode if that's what you prefer. In ~/.config/voxtype/config.toml, add this to see whether it does what you want:
[output] mode = "clipboard"
@peteonrails
This is exactly what I wanted, but I did not know this existed. Thank you for creating voxtype, it is such a great addition to omarchy.
0.4.11 will add the ability to override per session:
voxtype daemon --output-mode clipboardor per recording:
voxtype record --output-mode clipboard
- There's a workaround / bugfix being worked on here: Add voxtype modifier suppression during transcription #4178 and it should eliminate the need for clipboard mode.
I would love to use the hold to transcribe feature with the type mode if it does not interfear with the keybindings. Waiting for this to get included in the next release of Omarchy. 🤩