diff options
| author | ryukamish <[email protected]> | 2026-06-08 12:24:02 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-06-08 12:24:02 +0530 |
| commit | fcd1c4bac7bc3c17124331ced6702d5bf72e71fa (patch) | |
| tree | 2b177d471fd555d8eea11319ce10490ddde41508 /.config/sway | |
| parent | 51183654e84b12d38cf72d8581f950269d6b47c1 (diff) | |
screenshot options added and sway launching correctly
Diffstat (limited to '.config/sway')
| -rw-r--r-- | .config/sway/config | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
