chore(hyprland): rework print-key bindings and add color picker

This commit is contained in:
2026-08-30 20:47:07 -04:00
parent 76c8fd9ae2
commit 46b485dfa4
+7 -5
View File
@@ -204,19 +204,21 @@ hl.bind("SUPER + slash",
hl.bind("Print", hl.bind("Print",
hl.dsp.exec_cmd("hyprshot -m window -o ~/Pictures/ -- tensaku-edit"), hl.dsp.exec_cmd("hyprshot -m window -o ~/Pictures/ -- tensaku-edit"),
{ description = "Take screenshot" }) { description = "Take screenshot" })
hl.bind("SHIFT + Print",
hl.bind("SHIFT + PRINT",
hl.dsp.exec_cmd("hyprshot -m region -o ~/Pictures/ -- tensaku-edit"), hl.dsp.exec_cmd("hyprshot -m region -o ~/Pictures/ -- tensaku-edit"),
{ description = "Take screenshot" }) { 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"), 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"), hl.dsp.exec_cmd("~/.local/bin/screen-recorder -o ~/Videos/$(date +'%Y-%m-%d_%H%M%S')_recording.mp4"),
{ description = "Start/Stop screen recording" }) { 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"), hl.dsp.exec_cmd("~/.local/bin/screen-recorder stop"),
{ description = "Stop screen recording" }) { description = "Stop screen recording" })