Compare commits
2 Commits
dccc191c24
...
5096670771
| Author | SHA1 | Date | |
|---|---|---|---|
| 5096670771 | |||
| 8a7b475562 |
@@ -49,7 +49,6 @@
|
||||
# "SUPER, SPACE, Open App Launcher, exec, nc -U $XDG_RUNTIME_DIR/walker/walker.sock"
|
||||
|
||||
# TODO:
|
||||
# add text clipping from pictures
|
||||
# add screen recording
|
||||
|
||||
# Special workspace
|
||||
|
||||
@@ -27,8 +27,13 @@
|
||||
wl-copy < "$filepath"
|
||||
notify-send "Screenshot saved" "Saved and copied to clipboard"
|
||||
;;
|
||||
ocr)
|
||||
# OCR Selection
|
||||
grim -g "$(slurp)" - | tesseract stdin stdout | wl-copy
|
||||
notify-send "OCR" "Text extracted to clipboard"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: screenshot {region|window|screen|all|region-save}"
|
||||
echo "Usage: screenshot {region|window|screen|all|region-save|ocr}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -40,6 +45,7 @@ in {
|
||||
swappy # Annotation tool
|
||||
jq # For window selection
|
||||
wl-clipboard # For copying to clipboard
|
||||
tesseract # OCR tool
|
||||
screenshot # Our wrapper script
|
||||
];
|
||||
|
||||
@@ -66,5 +72,6 @@ in {
|
||||
"SUPER SHIFT, S, Screenshot Active Window, exec, screenshot window"
|
||||
"SUPER ALT, S, Quick Screenshot (no edit), exec, screenshot region-save"
|
||||
"SUPER ALT SHIFT, S, Screenshot Current Monitor, exec, screenshot screen"
|
||||
"SUPER ALT, E, OCR Selection, exec, screenshot ocr"
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
openai-whisper
|
||||
ffmpeg
|
||||
];
|
||||
}
|
||||
@@ -10,5 +10,6 @@
|
||||
../../apps/jellyfin-mpv-shim
|
||||
../../apps/nextcloud
|
||||
../../apps/ttyper
|
||||
../../apps/transcription
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user