text scanner

This commit is contained in:
joy 2024-11-21 15:52:23 +01:00
parent d847e09af6
commit 488494a631
4 changed files with 3 additions and 18 deletions

View file

@ -3,7 +3,6 @@
./foot ./foot
./ags ./ags
./mpv ./mpv
./screen
./firefox ./firefox
./clip ./clip
./rofi ./rofi

View file

@ -1,12 +0,0 @@
{pkgs, ...}: {
home.file.".config/swappy/config".text = ''
[Default]
save_dir=$HOME/media/pics/screen
'';
home.packages = with pkgs; [
grim
slurp
swappy
];
}

View file

@ -1,6 +1,7 @@
{ {
username, username,
nixpath, nixpath,
pkgs,
... ...
}: { }: {
programs.hyprland = { programs.hyprland = {
@ -83,7 +84,8 @@
"$mod, F, exec, freetube" "$mod, F, exec, freetube"
"$mod, C, exec, hyprpicker -a" "$mod, C, exec, hyprpicker -a"
"$mod+Shift, Z, exec, grim - | swappy -f -" "$mod+Shift, Z, exec, grim - | swappy -f -"
"$mod, Z, exec, sh $sciPath/screen.sh" ''$mod,T, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.tesseract}/bin/tesseract - stdout -l deu --psm 6 | wl-copy''
''$mod,Z, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.swappy}/bin/swappy -f -''
"$mod, V, exec, cliphist list | rofi show -dmenu | cliphist decode | wl-copy" "$mod, V, exec, cliphist list | rofi show -dmenu | cliphist decode | wl-copy"
"$mod, O, exec, sh $sciPath/mpv.sh" "$mod, O, exec, sh $sciPath/mpv.sh"
"$mod, B, exec, rofimoji" "$mod, B, exec, rofimoji"

View file

@ -1,4 +0,0 @@
#!/bin/sh
grim -g "$(slurp)" - | swappy -f -