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" })