Add OCR desktop entry
This commit is contained in:
parent
4e63ea053c
commit
738f567e2d
1 changed files with 11 additions and 0 deletions
|
|
@ -100,6 +100,17 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
xdg.desktopEntries = {
|
||||
ocr = {
|
||||
name = "OCR image: ${lang}";
|
||||
exec = "${pkgs.writeScript "ocr" ''
|
||||
${pkgs.xfce.xfce4-screenshooter}/bin/xfce4-screenshooter -r --save /dev/stdout | \
|
||||
${pkgs.tesseract}/bin/tesseract -l ${lang} - - | \
|
||||
${pkgs.xclip}/bin/xclip -sel clip
|
||||
''}";
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
|
||||
keyboard = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue