diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 6ef8cf0..a7807bb 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -78,6 +78,7 @@ exec-once = uwsm app -sb -t service -- nm-applet exec-once = uwsm app -sb -t service -- waybar -c ~/.config/waybar/catppuccin-macchiato/config.jsonc -s ~/.config/waybar/catppuccin-macchiato/style.css exec-once = uwsm app -sb -t service -- hyprsunset exec-once = uwsm app -sb -t service -- /usr/lib/polkit-kde-authentication-agent-1 +exec-once = uwsm app -sb -t service -- gnome-keyring-daemon --start --components=secrets,ssh,pkcs11 # exec-once = uwsm app -sb -t service -- variety exec-once = ~/.local/bin/aria # exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP diff --git a/.config/hypr/keybindings.conf b/.config/hypr/keybindings.conf index 68e037a..b62ebdc 100644 --- a/.config/hypr/keybindings.conf +++ b/.config/hypr/keybindings.conf @@ -95,7 +95,7 @@ bind = $mainMod SHIFT, v, exec, uwsm app -sb -- rofi-rbw # bind = $mainMod, w, exec, rofi -show window -theme $HOME/.config/rofi/launchers/type-2/style-2.rasi -dpi 96 -theme-str 'window {width: 35%;}' bind = $mainMod SHIFT, w, exec, "$HOME/.config/rofi/scripts/rofi-wallpaper.sh" bind = $mainMod SHIFT, d, exec, "$HOME/.config/rofi/scripts/rofi-docs.sh" -bind = SUPER, j, exec, "$HOME/.config/rofi/scripts/rofi-jellyfin-dir.sh" +bind = SUPER SHIFT, j, exec, "$HOME/.config/rofi/scripts/rofi-jellyfin-dir.sh" bind = SUPER, t, exec, "$HOME/.config/rofi/scripts/rofi-launch-texthooker-steam.sh" bind = $mainMod SHIFT, t, exec, "$HOME/projects/scripts/popup-ai-translator.py" bind = SUPER SHIFT, g, exec, "$HOME/.config/rofi/scripts/rofi-vn-helper.sh" diff --git a/projects/scripts/whisper_record_transcribe.py b/projects/scripts/whisper_record_transcribe.py index 79e4e7f..38ba47a 100755 --- a/projects/scripts/whisper_record_transcribe.py +++ b/projects/scripts/whisper_record_transcribe.py @@ -444,6 +444,11 @@ def _type_with_tool(text: str) -> None: raise RuntimeError("No typing tool found. Install one of: wtype, ydotool, xdotool.") +def _normalize_text_for_typing(text: str) -> str: + # Prevent simulated Enter key presses from transcript line breaks. + return " ".join(text.split()) + + def _emit_text(text: str, args: argparse.Namespace, notifier: Notifier) -> int: if args.output == "print": print(text) @@ -451,7 +456,7 @@ def _emit_text(text: str, args: argparse.Namespace, notifier: Notifier) -> int: return 0 try: - _type_with_tool(text) + _type_with_tool(_normalize_text_for_typing(text)) except Exception as exc: print(f"Failed to simulate typing: {exc}", file=sys.stderr) notifier.send("Typing error", str(exc), timeout_ms=2500)