From 46b485dfa40adf9cf46feabc767b38c10cdf22a4 Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Sun, 30 Aug 2026 20:47:07 -0400 Subject: [PATCH] chore(hyprland): rework print-key bindings and add color picker --- config/hypr/hyprland.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua index 1e37f9f..e33c552 100644 --- a/config/hypr/hyprland.lua +++ b/config/hypr/hyprland.lua @@ -204,19 +204,21 @@ hl.bind("SUPER + slash", hl.bind("Print", hl.dsp.exec_cmd("hyprshot -m window -o ~/Pictures/ -- tensaku-edit"), { description = "Take screenshot" }) -hl.bind("SHIFT + Print", + +hl.bind("SHIFT + PRINT", hl.dsp.exec_cmd("hyprshot -m region -o ~/Pictures/ -- tensaku-edit"), { description = "Take screenshot" }) -hl.bind("ALT + Print", +hl.bind("SUPER + PRINT", hl.dsp.exec_cmd("pkill hyprpicker || hyprpicker -a"), { description = "Pick color" }) +hl.bind("SUPER + CONTROL + PRINT", hl.dsp.exec_cmd("hyprshot -m region --raw -z | /usr/bin/tesseract stdin stdout --oem 1 --psm 6 -l eng | wl-copy"), - { description = "Capture text" }) + { description = "Extract text (OCR) from screenshot" }) -hl.bind("SUPER + Print", +hl.bind("SUPER + ALT + Print", hl.dsp.exec_cmd("~/.local/bin/screen-recorder -o ~/Videos/$(date +'%Y-%m-%d_%H%M%S')_recording.mp4"), { description = "Start/Stop screen recording" }) -hl.bind("SUPER + SHIFT + Print", +hl.bind("SUPER + ALT + SHIFT + Print", hl.dsp.exec_cmd("~/.local/bin/screen-recorder stop"), { description = "Stop screen recording" })