Fix webcam resize controls and placement
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
-- Webcam overlay window.
|
||||
o.window({ title = "WebcamOverlay" }, {
|
||||
-- Initial sizes mirror the live presets in omarchy-capture-webcam-resize.
|
||||
o.window("^WebcamOverlay-small$", {
|
||||
size = { 240, 270 },
|
||||
move = { "(monitor_w-240-40)", "(monitor_h-270-40)" },
|
||||
})
|
||||
o.window("^WebcamOverlay-medium$", {
|
||||
size = { 360, 405 },
|
||||
move = { "(monitor_w-360-40)", "(monitor_h-405-40)" },
|
||||
})
|
||||
o.window("^WebcamOverlay-large$", {
|
||||
size = { 480, 540 },
|
||||
move = { "(monitor_w-480-40)", "(monitor_h-540-40)" },
|
||||
})
|
||||
|
||||
-- The dedicated app id keeps this out of mpv's generic centered floating rules,
|
||||
-- so the camera appears at its final corner position.
|
||||
o.window({ class = "^WebcamOverlay-(small|medium|large)$", title = "^WebcamOverlay$" }, {
|
||||
tag = "-default-opacity",
|
||||
float = true,
|
||||
pin = true,
|
||||
no_initial_focus = true,
|
||||
no_dim = true,
|
||||
opacity = "1 1",
|
||||
move = { "(monitor_w-window_w-40)", "(monitor_h-window_h-40)" },
|
||||
})
|
||||
|
||||
@@ -38,8 +38,8 @@ o.bind("switch:off:Lid Switch", nil, "omarchy-hyprland-monitor-clamshell", { loc
|
||||
|
||||
o.bind("PRINT", "Screenshot", "omarchy-capture-screenshot")
|
||||
o.bind("ALT + PRINT", "Screenrecording", "omarchy-capture-screenrecording --stop-recording || omarchy-menu toggle trigger.capture.screenrecord")
|
||||
o.bind("SUPER + ALT + code:26", "Make webcam overlay smaller", "omarchy-capture-webcam-resize smaller")
|
||||
o.bind("SUPER + ALT + code:27", "Make webcam overlay larger", "omarchy-capture-webcam-resize larger")
|
||||
o.bind("SUPER + ALT + code:34", "Make webcam overlay smaller", "omarchy-capture-webcam-resize smaller")
|
||||
o.bind("SUPER + ALT + code:35", "Make webcam overlay larger", "omarchy-capture-webcam-resize larger")
|
||||
o.bind("SUPER + PRINT", "Color picker", "pkill hyprpicker || hyprpicker -a")
|
||||
o.bind("SUPER + CTRL + PRINT", "Extract text (OCR) from screenshot", "omarchy-capture-text")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user