1
0
Fork 0
This commit is contained in:
Luca Bilke 2025-03-03 12:01:32 +01:00
parent 13d3f0967e
commit 096c64eb9a
Signed by: luca
GPG key ID: F6E11C9BAA7C82F5
3 changed files with 7 additions and 11 deletions
common
.config/aichat
.local/libexec

View file

@ -15,12 +15,8 @@ clients:
models:
- name: text-embedding-3-small
type: embedding
default_chunk_size: 1024
max_batch_size: 50
- name: text-embedding-3-large
type: embedding
default_chunk_size: 2096
max_batch_size: 100
- type: openai-compatible
name: jina
@ -35,3 +31,5 @@ document_loaders:
rag_embedding_model: openai:text-embedding-3-small
rag_reranker_model: jina:jina-reranker-v2-base-multilingual
rag_chunk_size: 2048
rag_chunk_overlap: 128

View file

@ -3,7 +3,7 @@
# this script provides a menu of screenshot options, using maim
# variables
dir=$XDG_PICTURES_DIR/Screenshots
dir="${XDG_PICTURES_DIR}/Screenshots"
output="$(date '+%y%m%d-%H%M-%S').png"
xclip_cmd="xclip -sel clip -t image/png"
@ -18,9 +18,9 @@ character recognition'
case "$(
echo "$opts" | xargs -n 1 -d '\n' | dmenu -l 6 -i -p "Screenshot which area?"
)" in
"a selected area") maim -usq "$dir/pic-selected-${output}" ;;
"current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" "$dir/pic-window-${output}" ;;
"full screen") maim -q -d 0.2 "$dir/pic-full-${output}" ;;
"a selected area") maim -usq "${dir}/pic-selected-${output}" ;;
"current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" "${dir}/pic-window-${output}" ;;
"full screen") maim -q -d 0.2 "${dir}/pic-full-${output}" ;;
"character recognition") maim -us | tesseract-ocr - - | xclip -sel clip ;;
"a selected area (copy)") maim -u -s | ${xclip_cmd} ;;
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;

View file

@ -1,9 +1,7 @@
#!/bin/sh
. libsb
# NOTE: This should be executed once per second to get bps
CACHE=$XDG_RUNTIME_DIR/nettrafcache
CACHE="${XDG_RUNTIME_DIR}/nettrafcache"
get_physical_devices() {
nmcli -t -f STATE,DEVICE device | awk -F: '$1=="connected" { print $2 }'