From fcd1c4bac7bc3c17124331ced6702d5bf72e71fa Mon Sep 17 00:00:00 2001 From: ryukamish Date: Mon, 8 Jun 2026 12:24:02 +0530 Subject: screenshot options added and sway launching correctly --- .config/sway/config | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '.config') diff --git a/.config/sway/config b/.config/sway/config index c254176..28d559a 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -261,6 +261,23 @@ bindsym $mod+Shift+v exec cliphist list \ | $dmenu -l 10 \ | cliphist delete +# === Screenshot === + +# Screenshot whole screen +bindsym Print exec --no-startup-id ~/.local/bin/screenshot + +# Screenshot region of screen +bindsym Shift+Print exec --no-startup-id ~/.local/bin/screenshot region + +# Screenshot current window +bindsym Ctrl+Print exec --no-startup-id ~/.local/bin/screenshot window + +# Parse text on screen and copy to clipboard +bindsym $mod+Print exec --no-startup-id slurp \ + | xargs -I {} grim -s 2 -t png -g {} - \ + | tesseract - - \ + | wl-copy -n + # === Windows === floating_modifier $mod normal -- cgit v1.3