Compare commits
No commits in common. "68c37c0f42d5dc62e08faab04c17525f29e48bdd" and "34084e45aa7de470424b1ebab5a40440e83ffe3f" have entirely different histories.
68c37c0f42
...
34084e45aa
@ -47,7 +47,6 @@ in
|
|||||||
brightnessctl
|
brightnessctl
|
||||||
# grimblast
|
# grimblast
|
||||||
frajul.hyprshot-gui
|
frajul.hyprshot-gui
|
||||||
frajul.wl-ocr
|
|
||||||
|
|
||||||
wf-recorder
|
wf-recorder
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
@ -57,6 +56,8 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps.enable = true; # TODO: what is that?
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
MOZ_ENABLE_WAYLAND = 1;
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
@ -173,7 +174,6 @@ in
|
|||||||
preserve_split = true; # You probably want this
|
preserve_split = true; # You probably want this
|
||||||
smart_split = false;
|
smart_split = false;
|
||||||
smart_resizing = false;
|
smart_resizing = false;
|
||||||
force_split = 2;
|
|
||||||
# no_gaps_when_only = 2; # with border
|
# no_gaps_when_only = 2; # with border
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,5 +15,4 @@
|
|||||||
xwacomcalibrate = pkgs.callPackage ./xwacomcalibrate { };
|
xwacomcalibrate = pkgs.callPackage ./xwacomcalibrate { };
|
||||||
acer-battery-health-mode = pkgs.callPackage ./acer-battery-health-mode { };
|
acer-battery-health-mode = pkgs.callPackage ./acer-battery-health-mode { };
|
||||||
pob2 = pkgs.callPackage ./pob2 { };
|
pob2 = pkgs.callPackage ./pob2 { };
|
||||||
wl-ocr = pkgs.callPackage ./wl-ocr { };
|
|
||||||
}
|
}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
# from fufexan
|
|
||||||
{
|
|
||||||
writeShellScriptBin,
|
|
||||||
lib,
|
|
||||||
grim,
|
|
||||||
libnotify,
|
|
||||||
slurp,
|
|
||||||
tesseract5,
|
|
||||||
wl-clipboard,
|
|
||||||
langs ? "eng+hun+fra+jpn+jpn_vert+kor+kor_vert+pol+ron+spa",
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
_ = lib.getExe;
|
|
||||||
in
|
|
||||||
writeShellScriptBin "wl-ocr" ''
|
|
||||||
${_ grim} -g "$(${_ slurp})" -t ppm - | ${_ tesseract5} -l ${langs} - - | ${wl-clipboard}/bin/wl-copy
|
|
||||||
echo "$(${wl-clipboard}/bin/wl-paste)"
|
|
||||||
${_ libnotify} -- "$(${wl-clipboard}/bin/wl-paste)"
|
|
||||||
''
|
|
Loading…
x
Reference in New Issue
Block a user