From 91223b75843360631a380f53172ab6ffacb97370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 22 Jan 2021 17:07:27 +0100 Subject: [PATCH] Add sway keybind for quick screenclip OCR --- symlinks/config/sway/conf.d/25_screenshot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/symlinks/config/sway/conf.d/25_screenshot b/symlinks/config/sway/conf.d/25_screenshot index 854fbab..cd8bd21 100644 --- a/symlinks/config/sway/conf.d/25_screenshot +++ b/symlinks/config/sway/conf.d/25_screenshot @@ -10,12 +10,14 @@ set $windowshot_to_file $windowshot $screenshot_dir/$screenshot_name set $screenshot_clipboard $screenshot - | wl-copy set $screenclip_clipboard $screenclip - | wl-copy set $windowshot_clipboard $windowshot - | wl-copy +set $screenclip_text_clipboard $screenclip - | tesseract stdin stdout -l eng | wl-copy bindsym $mod+Control+3 exec $screeshot_to_file bindsym $mod+Control+4 exec $screenclip_to_file bindsym $mod+Control+5 exec $windowshot_to_file # Selection screenshots +bindsym $mod+Control+Shift+2 exec $screenclip_text_clipboard bindsym $mod+Control+Shift+3 exec $screenshot_clipboard bindsym $mod+Control+Shift+4 exec $screenclip_clipboard bindsym $mod+Control+Shift+5 exec $windowshot_clipboard