cleanup
This commit is contained in:
parent
13d3f0967e
commit
096c64eb9a
3 changed files with 7 additions and 11 deletions
common
|
@ -15,12 +15,8 @@ clients:
|
||||||
models:
|
models:
|
||||||
- name: text-embedding-3-small
|
- name: text-embedding-3-small
|
||||||
type: embedding
|
type: embedding
|
||||||
default_chunk_size: 1024
|
|
||||||
max_batch_size: 50
|
|
||||||
- name: text-embedding-3-large
|
- name: text-embedding-3-large
|
||||||
type: embedding
|
type: embedding
|
||||||
default_chunk_size: 2096
|
|
||||||
max_batch_size: 100
|
|
||||||
|
|
||||||
- type: openai-compatible
|
- type: openai-compatible
|
||||||
name: jina
|
name: jina
|
||||||
|
@ -35,3 +31,5 @@ document_loaders:
|
||||||
|
|
||||||
rag_embedding_model: openai:text-embedding-3-small
|
rag_embedding_model: openai:text-embedding-3-small
|
||||||
rag_reranker_model: jina:jina-reranker-v2-base-multilingual
|
rag_reranker_model: jina:jina-reranker-v2-base-multilingual
|
||||||
|
rag_chunk_size: 2048
|
||||||
|
rag_chunk_overlap: 128
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# this script provides a menu of screenshot options, using maim
|
# this script provides a menu of screenshot options, using maim
|
||||||
|
|
||||||
# variables
|
# variables
|
||||||
dir=$XDG_PICTURES_DIR/Screenshots
|
dir="${XDG_PICTURES_DIR}/Screenshots"
|
||||||
output="$(date '+%y%m%d-%H%M-%S').png"
|
output="$(date '+%y%m%d-%H%M-%S').png"
|
||||||
xclip_cmd="xclip -sel clip -t image/png"
|
xclip_cmd="xclip -sel clip -t image/png"
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ character recognition'
|
||||||
case "$(
|
case "$(
|
||||||
echo "$opts" | xargs -n 1 -d '\n' | dmenu -l 6 -i -p "Screenshot which area?"
|
echo "$opts" | xargs -n 1 -d '\n' | dmenu -l 6 -i -p "Screenshot which area?"
|
||||||
)" in
|
)" in
|
||||||
"a selected area") maim -usq "$dir/pic-selected-${output}" ;;
|
"a selected area") maim -usq "${dir}/pic-selected-${output}" ;;
|
||||||
"current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" "$dir/pic-window-${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}" ;;
|
"full screen") maim -q -d 0.2 "${dir}/pic-full-${output}" ;;
|
||||||
"character recognition") maim -us | tesseract-ocr - - | xclip -sel clip ;;
|
"character recognition") maim -us | tesseract-ocr - - | xclip -sel clip ;;
|
||||||
"a selected area (copy)") maim -u -s | ${xclip_cmd} ;;
|
"a selected area (copy)") maim -u -s | ${xclip_cmd} ;;
|
||||||
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. libsb
|
. 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() {
|
get_physical_devices() {
|
||||||
nmcli -t -f STATE,DEVICE device | awk -F: '$1=="connected" { print $2 }'
|
nmcli -t -f STATE,DEVICE device | awk -F: '$1=="connected" { print $2 }'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue