text scanner
This commit is contained in:
parent
d847e09af6
commit
488494a631
|
@ -3,7 +3,6 @@
|
|||
./foot
|
||||
./ags
|
||||
./mpv
|
||||
./screen
|
||||
./firefox
|
||||
./clip
|
||||
./rofi
|
||||
|
|
|
@ -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
|
||||
];
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
username,
|
||||
nixpath,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.hyprland = {
|
||||
|
@ -83,7 +84,8 @@
|
|||
"$mod, F, exec, freetube"
|
||||
"$mod, C, exec, hyprpicker -a"
|
||||
"$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, O, exec, sh $sciPath/mpv.sh"
|
||||
"$mod, B, exec, rofimoji"
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
grim -g "$(slurp)" - | swappy -f -
|
||||
|
Loading…
Reference in a new issue