chore(hyprland): rework print-key bindings and add color picker
This commit is contained in:
@@ -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" })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user