From 40fa19cedc1895cd4b7604cac0a4df72e05f44f1 Mon Sep 17 00:00:00 2001 From: sudacode Date: Sun, 14 Dec 2025 12:11:07 -0800 Subject: [PATCH] update --- .bash_aliases | 4 ++-- .config/rofi-open/config.json | 2 +- projects/scripts/ocr.sh | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index d2b9022..302e6b8 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -14,8 +14,8 @@ alias aniwrapper='aniwrapper -D 144' ## Colorls alias ls='eza -M --group-directories-first --icons --color=always --group --git' -alias ll='ls -l' -alias la='ls -la' +alias ll='ls -lh' +alias la='ls -lah' alias vimf='vim $(fzf --height=45% --layout=reverse --preview="bat --style=numbers --color=always --line-range :500 {}")' diff --git a/.config/rofi-open/config.json b/.config/rofi-open/config.json index ab3d960..a1a0fef 100644 --- a/.config/rofi-open/config.json +++ b/.config/rofi-open/config.json @@ -35,7 +35,7 @@ "Pihole2 - https://pihole2.suda.codes/admin", "Proxmox - https://thebox.unicorn-ilish.ts.net", "qBittorrent - https://qbittorrent.suda.codes", - "qui - https://qui.suda.codes", + "qui - http://pve-main:7476", "Plausible - https://plausible.sudacode.com", "Paperless - https://paperless.suda.codes", "Prometheus - http://prometheus:9090", diff --git a/projects/scripts/ocr.sh b/projects/scripts/ocr.sh index 8f1e97c..2e9137e 100755 --- a/projects/scripts/ocr.sh +++ b/projects/scripts/ocr.sh @@ -10,6 +10,8 @@ set -Eeuo pipefail # notify-send "GAZOU" "Text: $DISPLAY_RES" # echo "$RES" | wl-copy -slurp | grim -g - /tmp/ocr.png || exit 1 -transformers_ocr recognize --image-path /tmp/ocr.png || exit 1 -notify-send "tramsformers_ocr" "Text: $DISPLAY_RES" +# grim -g "$(slurp)" /tmp/ocr.png || exit 1 +# slurp | grim -g - /tmp/ocr/ocr.png || exit 1 +owocr -r clipboard -w clipboard -of text -n || exit 1 +slurp | grim -g - | wl-copy +notify-send "ocr.sh" "Text: $DISPLAY_RES"