mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-28 00:22:41 -08:00
Merge branch 'master' of github.com:ksyasuda/dotfiles
This commit is contained in:
@@ -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 -- 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 -- hyprsunset
|
||||||
exec-once = uwsm app -sb -t service -- /usr/lib/polkit-kde-authentication-agent-1
|
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 = uwsm app -sb -t service -- variety
|
||||||
exec-once = ~/.local/bin/aria
|
exec-once = ~/.local/bin/aria
|
||||||
# exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
# exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
|||||||
@@ -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, 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, w, exec, "$HOME/.config/rofi/scripts/rofi-wallpaper.sh"
|
||||||
bind = $mainMod SHIFT, d, exec, "$HOME/.config/rofi/scripts/rofi-docs.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 = 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 = $mainMod SHIFT, t, exec, "$HOME/projects/scripts/popup-ai-translator.py"
|
||||||
bind = SUPER SHIFT, g, exec, "$HOME/.config/rofi/scripts/rofi-vn-helper.sh"
|
bind = SUPER SHIFT, g, exec, "$HOME/.config/rofi/scripts/rofi-vn-helper.sh"
|
||||||
|
|||||||
@@ -444,6 +444,11 @@ def _type_with_tool(text: str) -> None:
|
|||||||
raise RuntimeError("No typing tool found. Install one of: wtype, ydotool, xdotool.")
|
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:
|
def _emit_text(text: str, args: argparse.Namespace, notifier: Notifier) -> int:
|
||||||
if args.output == "print":
|
if args.output == "print":
|
||||||
print(text)
|
print(text)
|
||||||
@@ -451,7 +456,7 @@ def _emit_text(text: str, args: argparse.Namespace, notifier: Notifier) -> int:
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_type_with_tool(text)
|
_type_with_tool(_normalize_text_for_typing(text))
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print(f"Failed to simulate typing: {exc}", file=sys.stderr)
|
print(f"Failed to simulate typing: {exc}", file=sys.stderr)
|
||||||
notifier.send("Typing error", str(exc), timeout_ms=2500)
|
notifier.send("Typing error", str(exc), timeout_ms=2500)
|
||||||
|
|||||||
Reference in New Issue
Block a user