summaryrefslogtreecommitdiff
path: root/.config/sway/config
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway/config')
-rw-r--r--.config/sway/config17
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