fix(hypr): normalize print key names

This commit is contained in:
2026-10-10 15:31:14 -04:00
parent f181f39145
commit 6eb9d01a65
+3 -3
View File
@@ -22,7 +22,7 @@ hl.bind("SUPER + ALT + escape", hl.dsp.exit(), { description = "Exit Hyprland" }
hl.bind("SUPER + CONTROL + escape", hl.dsp.exec_raw("reboot"), { description = "Reboot" }) hl.bind("SUPER + CONTROL + escape", hl.dsp.exec_raw("reboot"), { description = "Reboot" })
hl.bind("SUPER + SHIFT + CONTROL + escape", hl.dsp.exec_raw("systemctl poweroff"), { description = "Power off" }) hl.bind("SUPER + SHIFT + CONTROL + escape", hl.dsp.exec_raw("systemctl poweroff"), { description = "Power off" })
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" })
@@ -35,11 +35,11 @@ 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 = "Extract text (OCR) from screenshot" }) { description = "Extract text (OCR) from screenshot" })
hl.bind("SUPER + ALT + 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 + ALT + 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" })