commit 30e98bac63312af5c2c22e23f1bf5f7254737ba1 Author: mx Date: Sun Oct 11 15:17:57 2026 +0200 Add mx-screen-recorder plugin (fork of Noctalia screen-recorder) Local fork of the Noctalia screen-recorder plugin (noctalia-plugins ea21cb6) for this setup: - Always capture DP-5; drop the source picker and portal pre-check. - Start the replay buffer as soon as the plugin loads. - Bar widget is right-click only: Start/Stop recording, Save replay, Start/Stop replay, Widget settings. - Stop/save signal the plugin's own gpu-screen-recorder by PID instead of pkill-ing every instance (stopping a recording killed the replay). - IPC target plugin:mx-screen-recorder, so it can coexist with upstream. Co-Authored-By: Claude Opus 5.5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16281de --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +result +result-* +*.log +# Per-install state written by glassMxrph +settings.json +.glassmxrph.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..3d5efb8 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# glassMxrph-plugins + +Personal plugins for [glassMxrph](../glassMxrph), kept separate from the shell +so the shell stays free of setup-specific code. + +| Plugin | What it does | +| --- | --- | +| [`mx-screen-recorder`](mx-screen-recorder) | Fork of the Noctalia screen-recorder: always records DP-5, replay autostarts, right-click-only bar controls. | + +Install one plugin, or every plugin in the repo: + +```sh +glassmxrph plugin install ~/glassMxrph-plugins/mx-screen-recorder +glassmxrph plugin install ~/glassMxrph-plugins +``` + +Then enable it under Settings → Plugins (or `glassmxrph plugin enable `). +Installing copies the folder into `~/.local/share/glassMxrph/plugins/` and +replaces any existing copy there, including its saved `settings.json`. diff --git a/mx-screen-recorder/BarWidget.qml b/mx-screen-recorder/BarWidget.qml new file mode 100644 index 0000000..6510207 --- /dev/null +++ b/mx-screen-recorder/BarWidget.qml @@ -0,0 +1,125 @@ +import QtQuick +import QtQuick.Layouts +import Quickshell +import qs.compat.noctalia.Commons +import qs.compat.noctalia.Services.UI +import qs.compat.noctalia.Services.System +import qs.compat.noctalia.Widgets + +NIconButton { + id: root + + property var pluginApi: null + property ShellScreen screen + property string widgetId: "" + property string section: "" + property int sectionWidgetIndex: -1 + property int sectionWidgetsCount: 0 + + // Bar positioning properties + readonly property string screenName: screen ? screen.name : "" + readonly property string barPosition: Settings.getBarPositionForScreen(screenName) + readonly property bool isVertical: barPosition === "left" || barPosition === "right" + readonly property real barHeight: Style.getBarHeightForScreen(screenName) + readonly property real capsuleHeight: Style.getCapsuleHeightForScreen(screenName) + readonly property real barFontSize: Style.getBarFontSizeForScreen(screenName) + + readonly property var mainInstance: pluginApi?.mainInstance + readonly property bool hideInactive: + pluginApi?.pluginSettings?.hideInactive ?? + pluginApi?.manifest?.metadata?.defaultSettings?.hideInactive ?? + false + + property var cfg: pluginApi?.pluginSettings || ({}) + property var defaults: pluginApi?.manifest?.metadata?.defaultSettings || ({}) + readonly property string iconColorKey: cfg.iconColor ?? defaults.iconColor ?? "none" + readonly property color iconColor: Color.resolveColorKey(iconColorKey) + + readonly property bool shouldShow: !hideInactive || (mainInstance?.isRecording ?? false) || (mainInstance?.isPending ?? false) || (mainInstance?.isReplaying ?? false) + + visible: true + opacity: shouldShow ? 1.0 : 0.0 + implicitWidth: shouldShow ? baseSize : 0 + implicitHeight: shouldShow ? baseSize : 0 + + Behavior on opacity { + NumberAnimation { duration: Style.animationNormal } + } + + Behavior on implicitWidth { + NumberAnimation { duration: Style.animationNormal } + } + + Behavior on implicitHeight { + NumberAnimation { duration: Style.animationNormal } + } + + enabled: mainInstance?.isAvailable ?? false + icon: "camera-video" + tooltipText: mainInstance?.buildTooltip() + tooltipDirection: BarService.getTooltipDirection() + baseSize: root.capsuleHeight + applyUiScale: false + customRadius: Style.radiusL + colorBg: (mainInstance?.isRecording || mainInstance?.isPending) ? Color.mPrimary : (mainInstance?.isReplaying ? Qt.alpha(Color.mSecondary, 0.25) : Style.capsuleColor) + colorFg: (mainInstance?.isRecording || mainInstance?.isPending) ? Color.mOnPrimary : (mainInstance?.isReplaying ? Color.mSecondary : root.iconColor) + colorBorder: "transparent" + colorBorderHover: "transparent" + border.color: Style.capsuleBorderColor + border.width: Style.capsuleBorderWidth + + // mx fork: left/middle click do nothing; all controls live in the right-click menu. + onRightClicked: { + PanelService.showContextMenu(contextMenu, root, screen); + } + + + NPopupContextMenu { + id: contextMenu + + model: { + var recording = mainInstance?.isRecording || mainInstance?.isPending; + var replaying = mainInstance?.isReplaying || mainInstance?.isReplayPending; + return [ + { + "label": recording ? "Stop recording" : "Start recording", + "action": "toggle-recording", + "icon": recording ? "player-stop" : "player-record" + }, + { + "label": "Save replay", + "action": "save-replay", + "icon": "device-floppy", + "enabled": mainInstance?.isReplaying ?? false + }, + { + "label": replaying ? "Stop replay" : "Start replay", + "action": "toggle-replay", + "icon": replaying ? "stop" : "player-play", + "enabled": mainInstance?.replayEnabled ?? false + }, + { + "label": I18n.tr("actions.widget-settings"), + "action": "widget-settings", + "icon": "settings" + } + ]; + } + + onTriggered: action => { + contextMenu.close(); + PanelService.closeContextMenu(screen); + + if (action === "widget-settings") { + BarService.openPluginSettings(screen, pluginApi.manifest); + } else if (action === "toggle-recording" && mainInstance) { + mainInstance.toggleRecording(); + } else if (action === "toggle-replay" && mainInstance) { + mainInstance.toggleReplay(); + } else if (action === "save-replay" && mainInstance) { + mainInstance.saveReplay(); + } + } + } + +} diff --git a/mx-screen-recorder/ControlCenterWidget.qml b/mx-screen-recorder/ControlCenterWidget.qml new file mode 100644 index 0000000..6d7608c --- /dev/null +++ b/mx-screen-recorder/ControlCenterWidget.qml @@ -0,0 +1,22 @@ + +import QtQuick +import Quickshell +import qs.compat.noctalia.Widgets +import qs.compat.noctalia.Commons + +NIconButton { + property ShellScreen screen + property var pluginApi: null + readonly property var mainInstance: pluginApi?.mainInstance + + enabled: mainInstance?.isAvailable ?? false + icon: "camera-video" + tooltipText: mainInstance?.buildTooltip() + colorFg: mainInstance?.isRecording ? Color.mOnPrimary : (mainInstance?.isReplaying ? Color.mSecondary : Color.mPrimary) + colorBg: mainInstance?.isRecording ? Color.mPrimary : (mainInstance?.isReplaying ? Qt.alpha(Color.mSecondary, 0.25) : Style.capsuleColor) + onClicked: { + if (pluginApi && pluginApi.mainInstance) { + pluginApi.mainInstance.toggleRecording(); + } + } +} diff --git a/mx-screen-recorder/Main.qml b/mx-screen-recorder/Main.qml new file mode 100644 index 0000000..f09cc02 --- /dev/null +++ b/mx-screen-recorder/Main.qml @@ -0,0 +1,771 @@ +import QtQuick +import Quickshell +import Quickshell.Io +import qs.compat.noctalia.Commons +import qs.compat.noctalia.Services.UI +import qs.compat.noctalia.Services.System +import qs.compat.noctalia.Services.Compositor + +Item { + id: root + + property var pluginApi: null + + property bool isRecording: false + property bool isPending: false + property bool hasActiveRecording: false + property string outputPath: "" + property bool isAvailable: false + property string detectedMonitor: "" + property bool usePrimeRun: false + + // PIDs being stopped, so the force-kill timers only hit the process they were armed for + property int recordingPid: 0 + property int replayPid: 0 + + // Replay state + property bool isReplaying: false + property bool isReplayPending: false + + // Single reusable Process object + Process { + id: checker + running: true + command: ["sh", "-c", "command -v gpu-screen-recorder >/dev/null 2>&1 || (command -v flatpak >/dev/null 2>&1 && flatpak list --app | grep -q 'com.dec05eba.gpu_screen_recorder')"] + + onExited: function (exitCode) { + isAvailable = (exitCode === 0); + running = false; + root.autoStartReplay(); + } + + stdout: StdioCollector {} + stderr: StdioCollector {} + } + + IpcHandler { + target: "plugin:mx-screen-recorder" + + function toggle() { + if (root.isAvailable) { + root.toggleRecording(); + } + } + + function start() { + if (root.isAvailable && !root.isRecording && !root.isPending) { + root.startRecording(); + } + } + + function stop() { + if (root.isRecording || root.isPending) { + root.stopRecording(); + } + } + + function toggleReplay() { + if (root.isAvailable) { + root.toggleReplay(); + } + } + + function startReplay() { + if (root.isAvailable && !root.isReplaying && !root.isReplayPending) { + root.startReplay(); + } + } + + function stopReplay() { + if (root.isReplaying || root.isReplayPending) { + root.stopReplay(); + } + } + + function saveReplay() { + if (root.isReplaying) { + root.saveReplay(); + } + } + } + + // Settings shortcuts + readonly property bool hideInactive: pluginApi?.pluginSettings?.hideInactive ?? false + readonly property string directory: pluginApi?.pluginSettings?.directory || "" + readonly property string filenamePattern: pluginApi?.pluginSettings?.filenamePattern || "recording_yyyyMMdd_HHmmss" + readonly property string frameRate: pluginApi?.pluginSettings?.frameRate || "60" + readonly property string customFrameRate: pluginApi?.pluginSettings?.customFrameRate || "60" + readonly property string audioCodec: pluginApi?.pluginSettings?.audioCodec || "opus" + readonly property string videoCodec: pluginApi?.pluginSettings?.videoCodec || "h264" + readonly property string quality: pluginApi?.pluginSettings?.quality || "very_high" + readonly property string colorRange: pluginApi?.pluginSettings?.colorRange || "limited" + readonly property bool showCursor: pluginApi?.pluginSettings?.showCursor ?? true + readonly property bool copyToClipboard: pluginApi?.pluginSettings?.copyToClipboard ?? false + readonly property string audioSource: pluginApi?.pluginSettings?.audioSource || "default_output" + // mx fork: always capture DP-5, regardless of the stored setting. + readonly property string videoSource: "DP-5" + readonly property string resolution: pluginApi?.pluginSettings?.resolution || "original" + readonly property bool restorePortalSession: pluginApi?.pluginSettings?.restorePortalSession ?? false + + // Replay settings shortcuts + readonly property bool replayEnabled: pluginApi?.pluginSettings?.replayEnabled ?? false + readonly property string replayDuration: pluginApi?.pluginSettings?.replayDuration || "30" + readonly property string customReplayDuration: pluginApi?.pluginSettings?.customReplayDuration || "30" + readonly property string replayStorage: pluginApi?.pluginSettings?.replayStorage || "ram" + + // mx fork: start the replay buffer as soon as the shell (and this plugin) loads. + property bool replayAutoStarted: false + function autoStartReplay() { + if (replayAutoStarted || !isAvailable || !pluginApi) return; + replayAutoStarted = true; + startReplay(); + } + onPluginApiChanged: autoStartReplay() + + readonly property var codecResolutionLimits: ({ + "h264": "4096x4096" + }) + + function buildResolutionFlag() { + if (resolution !== "original") { + return `-s ${resolution}`; + } + + var maxResolution = codecResolutionLimits[videoCodec]; + return maxResolution ? `-s ${maxResolution}` : ""; + } + + function buildTooltip() { + if (!isAvailable) { + return pluginApi.tr("messages.not-installed"); + } + + if (isPending) { + pluginApi.tr("messages.started"); + } + + if (isRecording) { + return pluginApi.tr("messages.stop-recording"); + } + + if (isReplaying) { + return pluginApi.tr("messages.replay-active"); + } + + return pluginApi.tr("messages.start-recording"); + } + + // Start or Stop recording + function toggleRecording() { + (isRecording || isPending) ? stopRecording() : startRecording(); + } + + // Open recording file + function openFile(path) { + if (!path) { + return; + } + Quickshell.execDetached(["xdg-open", path]); + } + + // Copy file to clipboard as file reference + function copyFileToClipboard(filePath) { + if (!filePath) { + return; + } + // Convert path to file:// URI format for copying as file reference + const fileUri = "file://" + filePath.replace(/ /g, "%20").replace(/'/g, "%27").replace(/"/g, "%22"); + const escapedUri = fileUri.replace(/'/g, "'\\''"); + const command = "printf '%s' '" + escapedUri + "' | wl-copy --type text/uri-list"; + copyToClipboardProcess.exec({ + "command": ["sh", "-c", command] + }); + } + + // Start screen recording + function startRecording() { + if (!isAvailable) { + return; + } + if (isRecording || isPending) { + return; + } + isPending = true; + hasActiveRecording = false; + + // Close any opened panel + if ((PanelService.openedPanel !== null) && !PanelService.openedPanel.isClosing) { + PanelService.openedPanel.close(); + } + + // mx fork: direct monitor capture needs no portal, launch straight away + launchRecorder(); + } + + function expandFilenamePattern(pattern) { + var now = new Date(); + + // Known Qt date/time format tokens sorted by length (longest first to match greedily) + var tokens = ['unix', 'MMMM', 'dddd', 'yyyy', 'MMM', 'ddd', 'zzz', 'HH', 'hh', 'mm', 'ss', 'yy', 'MM', 'dd', 'AP', 'ap', 'M', 'd', 'H', 'h', 'm', 's', 'z', 'A', 'a', 't']; + + // Escape literal text by wrapping non-token sequences in single quotes + var escaped = ""; + var i = 0; + var literalBuffer = ""; + + while (i < pattern.length) { + var matched = false; + + // Try to match each token at current position (longest first) + for (var j = 0; j < tokens.length; j++) { + var token = tokens[j]; + if (pattern.substr(i, token.length) === token) { + // Check if this is a single-letter token that might be part of a word + // Only match single letters if they're preceded/followed by non-letter or another token + if (token.length === 1) { + var prevChar = i > 0 ? pattern[i - 1] : ""; + var nextChar = i + 1 < pattern.length ? pattern[i + 1] : ""; + // If surrounded by letters, it's probably part of a word, not a token + if ((prevChar.match(/[a-zA-Z]/) || nextChar.match(/[a-zA-Z]/))) { + continue; // Skip this token match, treat as literal + } + } + + // Flush any accumulated literal text + if (literalBuffer) { + escaped += "'" + literalBuffer + "'"; + literalBuffer = ""; + } + + if (token === 'unix') { + // Replace 'unix' token with the actual timestamp literal + // Do not wrap in quotes to avoid creating '' sequences which are interpreted as escaped quotes + escaped += Math.floor(now.getTime() / 1000); + } else { + // Add other tokens as-is + escaped += token; + } + + i += token.length; + matched = true; + break; + } + } + + if (!matched) { + // Character is not part of a token, add to literal buffer + literalBuffer += pattern[i]; + i++; + } + } + + // Flush any remaining literal text + if (literalBuffer) { + escaped += "'" + literalBuffer + "'"; + } + + // Use Qt's I18n.locale.toString for proper date/time formatting + var expanded = I18n.locale.toString(now, escaped); + return expanded + ".mp4"; + } + + function launchRecorder() { + // If focused-monitor is selected, detect monitor first + if (videoSource === "focused-monitor" && CompositorService.isHyprland) { + var script = 'set -euo pipefail\n' + 'pos=$(hyprctl cursorpos)\n' + 'cx=${pos%,*}; cy=${pos#*,}\n' + 'mon=$(hyprctl monitors -j | jq -r --argjson cx "$cx" --argjson cy "$cy" ' + "'.[] | select(($cx>=.x) and ($cx<(.x+.width)) and ($cy>=.y) and ($cy<(.y+.height))) | .name' " + '| head -n1)\n' + '[ -n "${mon:-}" ] || { echo "MONITOR_NOT_FOUND"; exit 1; }\n' + 'use_prime=0\n' + 'for v in /sys/class/drm/card*/device/vendor; do\n' + ' [ -f "$v" ] || continue\n' + ' if grep -qi "0x10de" "$v"; then\n' + ' card="$(basename "$(dirname "$(dirname "$v")")")"\n' + ' [ -e "/sys/class/drm/${card}-${mon}" ] && use_prime=1 && break\n' + ' fi\n' + 'done\n' + 'echo "${mon}:${use_prime}"'; + monitorDetectProcess.exec({ + "command": ["sh", "-c", script] + }); + return; + } + + launchRecorderWithSource(videoSource, false); + } + + function launchRecorderWithSource(source, primeRun) { + var pattern = filenamePattern || "recording_yyyyMMdd_HHmmss"; + var filename = expandFilenamePattern(pattern); + var videoDir = Settings.preprocessPath(directory); + if (!videoDir) { + videoDir = Quickshell.env("HOME") + "/Videos"; + } + if (videoDir && !videoDir.endsWith("/")) { + videoDir += "/"; + } + outputPath = videoDir + filename; + + const audioFlags = (() => { + if (audioSource === "none") { + return ""; + } + if (audioSource === "both") { + return `-ac ${audioCodec} -a "default_output|default_input"`; + } + return `-ac ${audioCodec} -a ${audioSource}`; + })(); + + var actualFrameRate = (frameRate === "custom") ? customFrameRate : frameRate; + var resolutionFlag = buildResolutionFlag(); + var restoreFlag = restorePortalSession ? "-restore-portal-session yes" : ""; + var flags = `-w ${source} -f ${actualFrameRate} -k ${videoCodec} ${audioFlags} -q ${quality} -cursor ${showCursor ? "yes" : "no"} -cr ${colorRange} ${resolutionFlag} ${restoreFlag} -o "${outputPath}"`; + var primePrefix = primeRun ? "prime-run " : ""; + var command = ` + _gpuscreenrecorder_flatpak_installed() { + flatpak list --app | grep -q "com.dec05eba.gpu_screen_recorder" + } + if command -v gpu-screen-recorder >/dev/null 2>&1; then + exec ${primePrefix}gpu-screen-recorder ${flags} + elif command -v flatpak >/dev/null 2>&1 && _gpuscreenrecorder_flatpak_installed; then + ${primePrefix}flatpak run --command=gpu-screen-recorder --file-forwarding com.dec05eba.gpu_screen_recorder ${flags} + else + echo "GPU_SCREEN_RECORDER_NOT_INSTALLED" + fi`; + + // Use Process to monitor it and read stderr + recorderProcess.exec({ + "command": ["sh", "-c", command] + }); + + // Start monitoring - if process ends quickly, it was likely cancelled + pendingTimer.running = true; + } + + // Stop recording + function stopRecording() { + if (!isRecording && !isPending) { + return; + } + + ToastService.showNotice(pluginApi.tr("messages.stopping"), outputPath, "video"); + + recordingPid = recorderProcess.processId || 0; + if (recordingPid > 0) Quickshell.execDetached(["kill", "-INT", String(recordingPid)]); + + isRecording = false; + isPending = false; + pendingTimer.running = false; + monitorTimer.running = false; + hasActiveRecording = false; + + // Just in case, force kill after 3 seconds + killTimer.running = true; + } + + // Helper function to truncate text for toast display + function truncateForToast(text, maxLength = 128) { + if (text.length <= maxLength) + return text; + return text.substring(0, maxLength) + "…"; + } + + // Helper function to check if output indicates user cancellation + function isCancelledByUser(stdoutText, stderrText) { + const stdout = String(stdoutText || "").toLowerCase(); + const stderr = String(stderrText || "").toLowerCase(); + const combined = stdout + " " + stderr; + return combined.includes("canceled by") || combined.includes("cancelled by") || combined.includes("canceled by user") || combined.includes("cancelled by user") || combined.includes("canceled by the user") || combined.includes("cancelled by the user"); + } + + // Process to run and monitor gpu-screen-recorder + Process { + id: recorderProcess + stdout: StdioCollector {} + stderr: StdioCollector {} + onExited: function (exitCode, exitStatus) { + const stdout = String(recorderProcess.stdout.text || "").trim(); + const stderr = String(recorderProcess.stderr.text || "").trim(); + const wasCancelled = isCancelledByUser(stdout, stderr); + + if (isPending) { + // Process ended while we were pending - likely cancelled or error + isPending = false; + pendingTimer.running = false; + + // Check if gpu-screen-recorder is not installed + if (stdout === "GPU_SCREEN_RECORDER_NOT_INSTALLED") { + ToastService.showError(pluginApi.tr("messages.not-installed"), pluginApi.tr("messages.not-installed-desc")); + return; + } + + // If it failed to start, show a clear error toast with stderr + // But don't show error if user intentionally cancelled via portal + if (exitCode !== 0) { + const filteredError = filterStderr(stderr); + if (filteredError.length > 0 && !wasCancelled) { + ToastService.showError(pluginApi.tr("messages.failed-start"), truncateForToast(filteredError)); + Logger.e("ScreenRecorder", filteredError); + } + } + } else if (isRecording || hasActiveRecording) { + // Process ended normally while recording + isRecording = false; + monitorTimer.running = false; + if (exitCode === 0) { + // ToastService.showNotice(pluginApi.tr("messages.saved"), outputPath, "video") + ToastService.showNotice(pluginApi.tr("messages.saved"), outputPath, "video", 3000, pluginApi.tr("messages.open-file"), () => openFile(outputPath)); + + if (copyToClipboard) { + copyFileToClipboard(outputPath); + } + } else { + // Don't show error if user intentionally cancelled + const filteredError = filterStderr(stderr); + if (!wasCancelled) { + if (filteredError.length > 0) { + ToastService.showError(pluginApi.tr("messages.failed-start"), truncateForToast(filteredError)); + Logger.e("ScreenRecorder", filteredError); + } else if (exitCode !== 0) { + ToastService.showError(pluginApi.tr("messages.failed-start"), pluginApi.tr("messages.failed-general")); + } + } + } + hasActiveRecording = false; + } else if (!isPending && exitCode === 0 && outputPath) { + // Fallback: if process exited successfully with an outputPath, handle it + // ToastService.showNotice(pluginApi.tr("messages.saved"), outputPath, "video") + ToastService.showNotice(pluginApi.tr("messages.saved"), outputPath, "video", 3000, pluginApi.tr("messages.open-file"), () => openFile(outputPath)); + + if (copyToClipboard) { + copyFileToClipboard(outputPath); + } + } + } + } + + // Pre-flight check for xdg-desktop-portal + Process { + id: portalCheckProcess + onExited: function (exitCode, exitStatus) { + if (exitCode === 0) { + // Portals available, proceed to launch + launchRecorder(); + } else { + isPending = false; + hasActiveRecording = false; + ToastService.showError(pluginApi.tr("messages.no-portals"), pluginApi.tr("messages.no-portals-desc")); + } + } + } + + // Detect focused monitor on Hyprland + Process { + id: monitorDetectProcess + stdout: StdioCollector {} + stderr: StdioCollector {} + onExited: function (exitCode, exitStatus) { + const output = String(monitorDetectProcess.stdout.text || "").trim(); + + if (exitCode !== 0 || output === "MONITOR_NOT_FOUND" || !output) { + isPending = false; + hasActiveRecording = false; + ToastService.showError(pluginApi.tr("messages.failed-start"), pluginApi.tr("messages.monitor-not-found")); + return; + } + + // Parse "MONITOR_NAME:USE_PRIME" format + const parts = output.split(":"); + const monitorName = parts[0]; + const primeRun = parts.length > 1 && parts[1] === "1"; + + detectedMonitor = monitorName; + usePrimeRun = primeRun; + + Logger.i("ScreenRecorder", "Detected monitor: " + monitorName + (primeRun ? " (prime-run)" : "")); + launchRecorderWithSource(monitorName, primeRun); + } + } + + // Process to copy file to clipboard + Process { + id: copyToClipboardProcess + onExited: function (exitCode, exitStatus) { + if (exitCode !== 0) { + Logger.e("ScreenRecorder", "Failed to copy file to clipboard, exit code:", exitCode); + } + } + } + + Timer { + id: pendingTimer + interval: 2000 // Wait 2 seconds to see if process stays alive + running: false + repeat: false + onTriggered: { + if (isPending && recorderProcess.running) { + // Process is still running after 2 seconds - assume recording started successfully + isPending = false; + isRecording = true; + hasActiveRecording = true; + monitorTimer.running = true; + } else if (isPending) { + // Process not running anymore - was cancelled or failed + isPending = false; + } + } + } + + // Monitor timer to periodically check if we're still recording + Timer { + id: monitorTimer + interval: 2000 + running: false + repeat: true + onTriggered: { + if (!recorderProcess.running && isRecording) { + isRecording = false; + running = false; + } + } + } + + Timer { + id: killTimer + interval: 3000 + running: false + repeat: false + onTriggered: { + if (recorderProcess.running && recorderProcess.processId === recordingPid) + Quickshell.execDetached(["kill", "-9", String(recordingPid)]); + } + } + + // ─── Replay Buffer ─────────────────────────────────────────────────── + + function toggleReplay() { + (isReplaying || isReplayPending) ? stopReplay() : startReplay(); + } + + function startReplay() { + if (!isAvailable) return; + if (isReplaying || isReplayPending) return; + if (!replayEnabled) return; + + isReplayPending = true; + + launchReplay(); + } + + function launchReplay() { + // If focused-monitor is selected, detect monitor first + if (videoSource === "focused-monitor" && CompositorService.isHyprland) { + var script = 'set -euo pipefail\n' + 'pos=$(hyprctl cursorpos)\n' + 'cx=${pos%,*}; cy=${pos#*,}\n' + 'mon=$(hyprctl monitors -j | jq -r --argjson cx "$cx" --argjson cy "$cy" ' + "'.[] | select(($cx>=.x) and ($cx<(.x+.width)) and ($cy>=.y) and ($cy<(.y+.height))) | .name' " + '| head -n1)\n' + '[ -n "${mon:-}" ] || { echo "MONITOR_NOT_FOUND"; exit 1; }\n' + 'use_prime=0\n' + 'for v in /sys/class/drm/card*/device/vendor; do\n' + ' [ -f "$v" ] || continue\n' + ' if grep -qi "0x10de" "$v"; then\n' + ' card="$(basename "$(dirname "$(dirname "$v")")")"\n' + ' [ -e "/sys/class/drm/${card}-${mon}" ] && use_prime=1 && break\n' + ' fi\n' + 'done\n' + 'echo "${mon}:${use_prime}"'; + replayMonitorDetectProcess.exec({ + "command": ["sh", "-c", script] + }); + return; + } + + launchReplayWithSource(videoSource, false); + } + + function launchReplayWithSource(source, primeRun) { + var videoDir = Settings.preprocessPath(directory); + if (!videoDir) { + videoDir = Quickshell.env("HOME") + "/Videos"; + } + // Ensure directory ends with / for gpu-screen-recorder + if (videoDir && !videoDir.endsWith("/")) { + videoDir += "/"; + } + + var actualDuration = (replayDuration === "custom") ? customReplayDuration : replayDuration; + var actualFrameRate = (frameRate === "custom") ? customFrameRate : frameRate; + var resolutionFlag = buildResolutionFlag(); + + const audioFlags = (() => { + if (audioSource === "none") { + return ""; + } + if (audioSource === "both") { + return `-ac ${audioCodec} -a "default_output|default_input"`; + } + return `-ac ${audioCodec} -a ${audioSource}`; + })(); + + var restoreFlag = restorePortalSession ? "-restore-portal-session yes" : ""; + var flags = `-w ${source} -c mp4 -f ${actualFrameRate} -k ${videoCodec} ${audioFlags} -q ${quality} -cursor ${showCursor ? "yes" : "no"} -cr ${colorRange} ${resolutionFlag} -r ${actualDuration} -replay-storage ${replayStorage} ${restoreFlag} -o "${videoDir}"`; + var primePrefix = primeRun ? "prime-run " : ""; + var command = ` + _gpuscreenrecorder_flatpak_installed() { + flatpak list --app | grep -q "com.dec05eba.gpu_screen_recorder" + } + if command -v gpu-screen-recorder >/dev/null 2>&1; then + exec ${primePrefix}gpu-screen-recorder ${flags} + elif command -v flatpak >/dev/null 2>&1 && _gpuscreenrecorder_flatpak_installed; then + ${primePrefix}flatpak run --command=gpu-screen-recorder --file-forwarding com.dec05eba.gpu_screen_recorder ${flags} + else + echo "GPU_SCREEN_RECORDER_NOT_INSTALLED" + fi`; + + replayProcess.exec({ + "command": ["sh", "-c", command] + }); + + replayPendingTimer.running = true; + } + + function stopReplay() { + if (!isReplaying && !isReplayPending) return; + + // Send SIGINT to stop the replay daemon + replayPid = replayProcess.processId || 0; + if (replayPid > 0) Quickshell.execDetached(["kill", "-INT", String(replayPid)]); + + isReplaying = false; + isReplayPending = false; + replayPendingTimer.running = false; + replayMonitorTimer.running = false; + + ToastService.showNotice(pluginApi.tr("messages.replay-stopped"), "", "info"); + + // Force kill after 3 seconds, just in case + replayKillTimer.running = true; + } + + function saveReplay() { + if (!isReplaying) return; + + // Send SIGUSR1 to save the replay buffer + if (replayProcess.processId) Quickshell.execDetached(["kill", "-USR1", String(replayProcess.processId)]); + } + + // Replay Process + Process { + id: replayProcess + stdout: SplitParser { + onRead: data => { + // gpu-screen-recorder outputs the saved file path to stdout on each SIGUSR1 save + var savedPath = String(data).trim(); + if (savedPath && savedPath.length > 0 && !savedPath.startsWith("GPU_SCREEN_RECORDER")) { + ToastService.showNotice( + pluginApi.tr("messages.replay-saved"), + savedPath, "video", 3000, + pluginApi.tr("messages.open-file"), + () => openFile(savedPath) + ); + + if (copyToClipboard) { + copyFileToClipboard(savedPath); + } + } + } + } + stderr: StdioCollector {} + onExited: function(exitCode, exitStatus) { + const stderr = String(replayProcess.stderr.text || "").trim(); + const wasCancelled = isCancelledByUser("", stderr); + const filteredError = filterStderr(stderr); + + if (isReplayPending) { + isReplayPending = false; + replayPendingTimer.running = false; + + if (exitCode !== 0 && filteredError.length > 0 && !wasCancelled) { + ToastService.showError(pluginApi.tr("messages.replay-failed"), truncateForToast(filteredError)); + Logger.e("ScreenRecorder", "Replay: " + filteredError); + } + } else if (isReplaying) { + isReplaying = false; + replayMonitorTimer.running = false; + + if (exitCode !== 0 && !wasCancelled) { + if (filteredError.length > 0) { + ToastService.showError(pluginApi.tr("messages.replay-failed"), truncateForToast(filteredError)); + Logger.e("ScreenRecorder", "Replay: " + filteredError); + } + } + } + } + } + + // Filter stderr to only include actual errors (starting with gsr error: or gsr fatal:) + function filterStderr(text) { + if (!text) return ""; + const lines = text.split("\n"); + const errorLines = lines.filter(line => { + const lower = line.toLowerCase(); + if (lower.includes("gsr info:") || lower.includes("gsr notice:") || lower.includes("(error: none)")) return false; + return lower.includes("gsr error:") || lower.includes("gsr fatal:") || lower.includes("failed to") || lower.includes("error:"); + }); + if (errorLines.length === 0) return ""; + return errorLines.join("\n").trim(); + } + + // Portal check for replay + Process { + id: replayPortalCheckProcess + onExited: function(exitCode, exitStatus) { + if (exitCode === 0) { + launchReplay(); + } else { + isReplayPending = false; + ToastService.showError(pluginApi.tr("messages.no-portals"), pluginApi.tr("messages.no-portals-desc")); + } + } + } + + // Monitor detection for replay on Hyprland + Process { + id: replayMonitorDetectProcess + stdout: StdioCollector {} + stderr: StdioCollector {} + onExited: function(exitCode, exitStatus) { + const output = String(replayMonitorDetectProcess.stdout.text || "").trim(); + + if (exitCode !== 0 || output === "MONITOR_NOT_FOUND" || !output) { + isReplayPending = false; + ToastService.showError(pluginApi.tr("messages.replay-failed"), pluginApi.tr("messages.monitor-not-found")); + return; + } + + const parts = output.split(":"); + const monitorName = parts[0]; + const primeRun = parts.length > 1 && parts[1] === "1"; + + Logger.i("ScreenRecorder", "Replay: Detected monitor: " + monitorName + (primeRun ? " (prime-run)" : "")); + launchReplayWithSource(monitorName, primeRun); + } + } + + Timer { + id: replayPendingTimer + interval: 2000 + running: false + repeat: false + onTriggered: { + if (root.isReplayPending && replayProcess.running) { + root.isReplayPending = false; + root.isReplaying = true; + replayMonitorTimer.running = true; + ToastService.showNotice(pluginApi.tr("messages.replay-started"), "", "info"); + } else if (root.isReplayPending) { + root.isReplayPending = false; + } + } + } + + Timer { + id: replayMonitorTimer + interval: 2000 + running: false + repeat: true + onTriggered: { + if (!replayProcess.running && root.isReplaying) { + root.isReplaying = false; + running = false; + } + } + } + + Timer { + id: replayKillTimer + interval: 3000 + running: false + repeat: false + onTriggered: { + if (replayProcess.running && replayProcess.processId === replayPid) + Quickshell.execDetached(["kill", "-9", String(replayPid)]); + } + } + +} diff --git a/mx-screen-recorder/README.md b/mx-screen-recorder/README.md new file mode 100644 index 0000000..29ec338 --- /dev/null +++ b/mx-screen-recorder/README.md @@ -0,0 +1,152 @@ +> **mx fork** of the Noctalia [screen-recorder](https://github.com/noctalia-dev/noctalia-plugins) plugin +> (commit `ea21cb6`, MIT). Changes: always captures `DP-5` (no source picker, no portal pre-check), +> the replay buffer starts when the shell loads, the bar widget is right-click only +> (Start/Stop recording, Save replay, Start/Stop replay, Widget settings), stop/save signal the +> plugin's own processes by PID instead of `pkill`-ing every gpu-screen-recorder, and the IPC +> target is `plugin:mx-screen-recorder`. +> +> Install: `glassmxrph plugin install ~/glassMxrph-plugins/mx-screen-recorder` + +# Screen Recorder Plugin + +Hardware-accelerated screen recording for Noctalia using [gpu-screen-recorder](https://git.dec05eba.com/gpu-screen-recorder/about/). + +## Features + +- Hardware-accelerated screen recording +- **Replay buffer** — continuously capture and save the last N seconds on demand +- Customizable video codecs (H264, HEVC, AV1, VP8, VP9, HDR variants) +- Audio recording with multiple sources (system output, microphone, both, or none) +- Adjustable frame rates (30-240 FPS) +- Configurable output resolution (Full HD, WUXGA, 4K, QHD, HD, or original) +- Configurable output directory +- Optional clipboard copy after recording +- Optional cursor recording +- Multiple quality presets + +## Requirements + +- **gpu-screen-recorder** - The screen recording backend + - Install via package manager: `gpu-screen-recorder` +- **xdg-desktop-portal** and a compositor portal backend (wlr/hyprland/gnome etc) + +## Installation + +1. Copy this plugin to your Noctalia plugins directory: + ```bash + cp -r screen-recorder ~/.config/noctalia/plugins/ + ``` + +2. Add the widget to your bar through Noctalia settings + +## Usage + +### Bar Widget + +- **Left Click**: Start/stop recording +- **Right Click**: Open plugin settings + +### Settings + +Configure the plugin through the settings panel: + +- **Output Folder**: Where recordings will be saved (defaults to `~/Videos`) +- **Filename Pattern**: Pattern for generated filenames. Supports standard Qt date format tokens (e.g., `yyyy`, `MM`, `dd` etc.) and `unix` for Unix timestamp. +- **Video Source**: Choose between Portal (recommended) or Screen +- **Frame Rate**: Target FPS (30, 60, 100, 120, 144, 165, 240) +- **Video Quality**: Medium, High, Very High, or Ultra +- **Video Codec**: H264, HEVC, AV1, VP8, VP9 (+ HDR variants for screen source) +- **Color Range**: Limited (recommended) or Full +- **Resolution**: Output resolution limit (1920x1080, 1920x1200, 2560x1440, 3840x2160, 1280x720, or Original) +- **Audio Source**: None, System Output, Microphone, or Both +- **Audio Codec**: Opus (recommended) or AAC +- **Show Cursor**: Include mouse cursor in recording +- **Copy to Clipboard**: Automatically copy file after recording + +#### Replay + +- **Enable Replay Buffer**: Toggle the replay buffer feature on/off +- **Replay Duration**: Buffer length (15s, 30s, 60s, 2 min, 5 min, or custom) +- **Replay Storage**: Store buffer in RAM (faster, recommended) or Disk + +### IPC Commands + +Control the screen recorder via IPC for keybindings or scripts: + +```bash +# Toggle recording on/off +qs -c noctalia-shell ipc call plugin:screen-recorder toggle + +# Explicitly start recording +qs -c noctalia-shell ipc call plugin:screen-recorder start + +# Explicitly stop recording +qs -c noctalia-shell ipc call plugin:screen-recorder stop + +# Start the replay buffer +qs -c noctalia-shell ipc call plugin:screen-recorder startReplay + +# Save the replay buffer (last N seconds) +qs -c noctalia-shell ipc call plugin:screen-recorder saveReplay + +# Stop the replay buffer +qs -c noctalia-shell ipc call plugin:screen-recorder stopReplay + +# Toggle replay buffer on/off +qs -c noctalia-shell ipc call plugin:screen-recorder toggleReplay +``` + +## Video Codecs + +- **H264**: Most compatible, good quality, works everywhere +- **HEVC (H.265)**: Better compression than H264, smaller files +- **AV1**: Best compression, smallest files, newer codec +- **VP8/VP9**: Open-source alternatives +- **HDR variants**: Available when using "Screen" source for high dynamic range content + +## Audio Sources + +- **None**: No audio recording +- **System Output**: Capture system sounds (what you hear) +- **Microphone Input**: Capture from microphone +- **Both**: Record both system and microphone audio + +## Troubleshooting + +### "Screen recorder not installed" error +Install gpu-screen-recorder: +```bash +# Arch Linux +sudo pacman -S gpu-screen-recorder + +# Or via Flatpak +flatpak install com.dec05eba.gpu_screen_recorder +``` + +### "Desktop portals not running" error +Ensure xdg-desktop-portal and a compositor portal are running: +```bash +# Check if portals are running +pidof xdg-desktop-portal +pidof xdg-desktop-portal-wlr # or -hyprland, -gnome, -kde + +# Install if needed (example for Arch) +sudo pacman -S xdg-desktop-portal xdg-desktop-portal-wlr +``` + +### Recording fails with artifacts +Try changing the video source from "Portal" to "Screen" in settings. + +### Recording stops immediately +- Check if the output directory exists and is writable +- Ensure gpu-screen-recorder has necessary permissions +- Check Noctalia logs for detailed error messages + +## License + +MIT License + +## Credits + +- Uses [gpu-screen-recorder](https://git.dec05eba.com/gpu-screen-recorder/about/) by dec05eba +- Part of the [Noctalia](https://github.com/noctalia-dev/noctalia-shell) plugin ecosystem diff --git a/mx-screen-recorder/Settings.qml b/mx-screen-recorder/Settings.qml new file mode 100644 index 0000000..920e314 --- /dev/null +++ b/mx-screen-recorder/Settings.qml @@ -0,0 +1,530 @@ +import QtQuick +import QtQuick.Layouts +import Quickshell +import Quickshell.Io +import qs.compat.noctalia.Commons +import qs.compat.noctalia.Widgets +import qs.compat.noctalia.Services.UI +import qs.compat.noctalia.Services.Compositor + +ColumnLayout { + id: root + spacing: Style.marginL + + property var pluginApi: null + + property bool editHideInactive: pluginApi?.pluginSettings?.hideInactive ?? pluginApi?.manifest?.metadata?.defaultSettings?.hideInactive ?? false + + property string editIconColor: pluginApi?.pluginSettings?.iconColor ?? pluginApi?.manifest?.metadata?.defaultSettings?.iconColor ?? "none" + + property string editDirectory: pluginApi?.pluginSettings?.directory || pluginApi?.manifest?.metadata?.defaultSettings?.directory || "" + + property string editFilenamePattern: pluginApi?.pluginSettings?.filenamePattern || pluginApi?.manifest?.metadata?.defaultSettings?.filenamePattern || "recording_yyyyMMdd_HHmmss" + + // Migrate legacy frame rates to "custom" + readonly property var _validFrameRates: ["30", "60", "120", "custom"] + readonly property string _rawFrameRate: + pluginApi?.pluginSettings?.frameRate || + pluginApi?.manifest?.metadata?.defaultSettings?.frameRate || + "60" + + property string editFrameRate: + _validFrameRates.includes(_rawFrameRate) ? _rawFrameRate : "custom" + + property string editCustomFrameRate: + _validFrameRates.includes(_rawFrameRate) + ? (pluginApi?.pluginSettings?.customFrameRate || + pluginApi?.manifest?.metadata?.defaultSettings?.customFrameRate || + "60") + : _rawFrameRate + + property string editAudioCodec: + pluginApi?.pluginSettings?.audioCodec || + pluginApi?.manifest?.metadata?.defaultSettings?.audioCodec || + "opus" + + property string editVideoCodec: pluginApi?.pluginSettings?.videoCodec || pluginApi?.manifest?.metadata?.defaultSettings?.videoCodec || "h264" + + property string editQuality: pluginApi?.pluginSettings?.quality || pluginApi?.manifest?.metadata?.defaultSettings?.quality || "very_high" + + property string editColorRange: pluginApi?.pluginSettings?.colorRange || pluginApi?.manifest?.metadata?.defaultSettings?.colorRange || "limited" + + property bool editShowCursor: pluginApi?.pluginSettings?.showCursor ?? pluginApi?.manifest?.metadata?.defaultSettings?.showCursor ?? true + + property bool editCopyToClipboard: pluginApi?.pluginSettings?.copyToClipboard ?? pluginApi?.manifest?.metadata?.defaultSettings?.copyToClipboard ?? false + + property string editAudioSource: pluginApi?.pluginSettings?.audioSource || pluginApi?.manifest?.metadata?.defaultSettings?.audioSource || "default_output" + + property string editVideoSource: pluginApi?.pluginSettings?.videoSource || pluginApi?.manifest?.metadata?.defaultSettings?.videoSource || "portal" + + property string editResolution: pluginApi?.pluginSettings?.resolution || pluginApi?.manifest?.metadata?.defaultSettings?.resolution || "original" + + property bool editRestorePortalSession: pluginApi?.pluginSettings?.restorePortalSession ?? pluginApi?.manifest?.metadata?.defaultSettings?.restorePortalSession ?? false + + // Replay settings + property bool editReplayEnabled: pluginApi?.pluginSettings?.replayEnabled ?? pluginApi?.manifest?.metadata?.defaultSettings?.replayEnabled ?? false + + readonly property var _validReplayDurations: ["15", "30", "60", "120", "300", "custom"] + readonly property string _rawReplayDuration: + pluginApi?.pluginSettings?.replayDuration || + pluginApi?.manifest?.metadata?.defaultSettings?.replayDuration || + "30" + + property string editReplayDuration: + _validReplayDurations.includes(_rawReplayDuration) ? _rawReplayDuration : "custom" + + property string editCustomReplayDuration: + _validReplayDurations.includes(_rawReplayDuration) + ? (pluginApi?.pluginSettings?.customReplayDuration || + pluginApi?.manifest?.metadata?.defaultSettings?.customReplayDuration || + "30") + : _rawReplayDuration + + property string editReplayStorage: pluginApi?.pluginSettings?.replayStorage || pluginApi?.manifest?.metadata?.defaultSettings?.replayStorage || "ram" + + + + function saveSettings() { + if (!pluginApi || !pluginApi.pluginSettings) { + Logger.e("ScreenRecorder", "Cannot save: pluginApi or pluginSettings is null"); + return; + } + + // Core settings + pluginApi.pluginSettings.hideInactive = root.editHideInactive + pluginApi.pluginSettings.iconColor = root.editIconColor + pluginApi.pluginSettings.directory = root.editDirectory + pluginApi.pluginSettings.filenamePattern = root.editFilenamePattern + pluginApi.pluginSettings.frameRate = root.editFrameRate + pluginApi.pluginSettings.customFrameRate = root.editCustomFrameRate + pluginApi.pluginSettings.audioCodec = root.editAudioCodec + pluginApi.pluginSettings.videoCodec = root.editVideoCodec + pluginApi.pluginSettings.quality = root.editQuality + pluginApi.pluginSettings.colorRange = root.editColorRange + pluginApi.pluginSettings.showCursor = root.editShowCursor + pluginApi.pluginSettings.copyToClipboard = root.editCopyToClipboard + pluginApi.pluginSettings.audioSource = root.editAudioSource + pluginApi.pluginSettings.videoSource = root.editVideoSource + pluginApi.pluginSettings.resolution = root.editResolution + pluginApi.pluginSettings.restorePortalSession = root.editRestorePortalSession + + // Replay settings + pluginApi.pluginSettings.replayEnabled = root.editReplayEnabled + pluginApi.pluginSettings.replayDuration = root.editReplayDuration + pluginApi.pluginSettings.customReplayDuration = root.editCustomReplayDuration + pluginApi.pluginSettings.replayStorage = root.editReplayStorage + + + pluginApi.saveSettings(); + + Logger.i("ScreenRecorder", "Settings saved successfully"); + } + // Icon Color + NComboBox { + label: I18n.tr("common.select-icon-color") + description: I18n.tr("common.select-color-description") + model: Color.colorKeyModel + currentKey: root.editIconColor + onSelected: key => root.editIconColor = key + minimumWidth: 200 + } + + NTextInputButton { + label: pluginApi.tr("settings.general.output-folder") + description: pluginApi.tr("settings.general.output-folder-description") + placeholderText: Quickshell.env("HOME") + "/Videos" + text: root.editDirectory + buttonIcon: "folder-open" + buttonTooltip: pluginApi.tr("settings.general.output-folder") + onInputEditingFinished: root.editDirectory = text + onButtonClicked: folderPicker.openFilePicker() + } + + // Filename Pattern + NTextInput { + label: pluginApi?.tr("settings.filename-pattern.label") || "Filename pattern" + description: pluginApi?.tr("settings.filename-pattern.description") || "Pattern for generated filenames. Supported: yyyy, yy, MM, M, dd, d, HH, H, mm, m, ss, s (e.g., mycool-recording_yyyyMMdd_HHmmss)" + placeholderText: "recording_yyyyMMdd_HHmmss" + text: root.editFilenamePattern + onTextChanged: root.editFilenamePattern = text + Layout.fillWidth: true + } + + NDivider { + Layout.fillWidth: true + } + + // Show Cursor + NToggle { + label: pluginApi.tr("settings.general.show-cursor") + description: pluginApi.tr("settings.general.show-cursor-description") + checked: root.editShowCursor + onToggled: c => root.editShowCursor = c + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.showCursor ?? true + } + + // Copy to Clipboard + NToggle { + label: pluginApi.tr("settings.general.copy-to-clipboard") + description: pluginApi.tr("settings.general.copy-to-clipboard-description") + checked: root.editCopyToClipboard + onToggled: c => root.editCopyToClipboard = c + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.copyToClipboard ?? false + } + + // Hide When Inactive Toggle + NToggle { + label: pluginApi.tr("settings.general.hide-when-inactive") + description: pluginApi.tr("settings.general.hide-when-inactive-description") + checked: root.editHideInactive + onToggled: c => root.editHideInactive = c + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.hideInactive ?? false + } + + // Restore Portal Session + NToggle { + label: pluginApi.tr("settings.general.restore-portal-session") + description: pluginApi.tr("settings.general.restore-portal-session-description") + checked: root.editRestorePortalSession + onToggled: c => root.editRestorePortalSession = c + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.restorePortalSession ?? false + } + + NDivider { + Layout.fillWidth: true + } + + // Replay Settings + ColumnLayout { + spacing: Style.marginL + Layout.fillWidth: true + + NToggle { + label: pluginApi.tr("settings.replay.enable") + description: pluginApi.tr("settings.replay.enable-desc") + checked: root.editReplayEnabled + onToggled: c => root.editReplayEnabled = c + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.replayEnabled ?? false + } + + NComboBox { + visible: root.editReplayEnabled + label: pluginApi.tr("settings.replay.duration") + description: pluginApi.tr("settings.replay.duration-desc") + model: [ + { "key": "15", "name": "15s" }, + { "key": "30", "name": "30s" }, + { "key": "60", "name": "60s" }, + { "key": "120", "name": "2 min" }, + { "key": "300", "name": "5 min" }, + { "key": "custom", "name": pluginApi.tr("settings.video.frame-rate-custom") } + ] + currentKey: root.editReplayDuration + onSelected: key => root.editReplayDuration = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.replayDuration || "30" + } + + NTextInput { + visible: root.editReplayEnabled && root.editReplayDuration === "custom" + label: pluginApi.tr("settings.replay.custom-duration") + description: pluginApi.tr("settings.replay.custom-duration-desc") + placeholderText: "30" + text: root.editCustomReplayDuration + onTextChanged: { + var numeric = text.replace(/[^0-9]/g, '') + if (numeric !== text) { + text = numeric + } + if (numeric) { + root.editCustomReplayDuration = numeric + } + } + Layout.fillWidth: true + } + + NComboBox { + visible: root.editReplayEnabled + label: pluginApi.tr("settings.replay.storage") + description: pluginApi.tr("settings.replay.storage-desc") + model: [ + { "key": "ram", "name": pluginApi.tr("settings.replay.storage-ram") }, + { "key": "disk", "name": pluginApi.tr("settings.replay.storage-disk") } + ] + currentKey: root.editReplayStorage + onSelected: key => root.editReplayStorage = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.replayStorage || "ram" + } + } + + NDivider { + Layout.fillWidth: true + } + + // Video Settings + ColumnLayout { + spacing: Style.marginL + Layout.fillWidth: true + + // Source: mx fork always captures DP-5 (see Main.qml), so no picker here. + + // Frame Rate + NComboBox { + label: pluginApi.tr("settings.video.frame-rate") + description: pluginApi.tr("settings.video.frame-rate-desc") + model: [ + { + "key": "30", + "name": "30 FPS" + }, + { + "key": "60", + "name": "60 FPS" + }, + { + "key": "120", + "name": "120 FPS" + }, + { + "key": "custom", + "name": pluginApi.tr("settings.video.frame-rate-custom") + } + ] + currentKey: root.editFrameRate + onSelected: key => root.editFrameRate = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.frameRate || "60" + } + + // Custom Frame Rate + NTextInput { + visible: root.editFrameRate === "custom" + label: pluginApi.tr("settings.video.custom-frame-rate") + description: pluginApi.tr("settings.video.custom-frame-rate-desc") + placeholderText: "60" + text: root.editCustomFrameRate + onTextChanged: { + // Only allow numeric values + var numeric = text.replace(/[^0-9]/g, '') + if (numeric !== text) { + text = numeric + } + if (numeric) { + root.editCustomFrameRate = numeric + } + } + Layout.fillWidth: true + } + + // Video Quality + NComboBox { + label: pluginApi.tr("settings.video.quality") + description: pluginApi.tr("settings.video.quality-desc") + model: [ + { + "key": "medium", + "name": pluginApi.tr("settings.video.quality-medium") + }, + { + "key": "high", + "name": pluginApi.tr("settings.video.quality-high") + }, + { + "key": "very_high", + "name": pluginApi.tr("settings.video.quality-very-high") + }, + { + "key": "ultra", + "name": pluginApi.tr("settings.video.quality-ultra") + } + ] + currentKey: root.editQuality + onSelected: key => root.editQuality = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.quality || "very_high" + } + + // Video Codec + NComboBox { + label: pluginApi.tr("settings.video.codec") + description: pluginApi.tr("settings.video.codec-desc") + model: { + let options = [ + { + "key": "h264", + "name": "H264" + }, + { + "key": "hevc", + "name": "HEVC" + }, + { + "key": "av1", + "name": "AV1" + }, + { + "key": "vp8", + "name": "VP8" + }, + { + "key": "vp9", + "name": "VP9" + } + ]; + // Only add HDR options if source is 'screen' or 'focused-monitor' + if (true) { // mx fork: always direct monitor capture (DP-5) + options.push({ + "key": "hevc_hdr", + "name": "HEVC HDR" + }); + options.push({ + "key": "av1_hdr", + "name": "AV1 HDR" + }); + } + return options; + } + currentKey: root.editVideoCodec + onSelected: key => { + root.editVideoCodec = key; + // If an HDR codec is selected, change the colorRange to full + if (key.includes("_hdr")) { + root.editColorRange = "full"; + } + } + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.videoCodec || "h264" + + Connections { + target: root + function onEditVideoSourceChanged() { + if (false && (root.editVideoCodec === "av1_hdr" || root.editVideoCodec === "hevc_hdr")) { + root.editVideoCodec = "h264"; + } + } + } + } + + // Color Range + NComboBox { + label: pluginApi.tr("settings.video.color-range") + description: pluginApi.tr("settings.video.color-range-desc") + model: [ + { + "key": "limited", + "name": pluginApi.tr("settings.video.color-range-limited") + }, + { + "key": "full", + "name": pluginApi.tr("settings.video.color-range-full") + } + ] + currentKey: root.editColorRange + onSelected: key => root.editColorRange = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.colorRange || "limited" + } + + // Resolution + NComboBox { + label: pluginApi.tr("settings.video.resolution") + description: pluginApi.tr("settings.video.resolution-desc") + model: [ + { + "key": "original", + "name": pluginApi.tr("settings.video.resolution-original") + }, + { + "key": "1920x1080", + "name": "1920x1080 (Full HD)" + }, + { + "key": "1920x1200", + "name": "1920x1200 (WUXGA)" + }, + { + "key": "2560x1440", + "name": "2560x1440 (QHD)" + }, + { + "key": "3840x2160", + "name": "3840x2160 (4K)" + }, + { + "key": "1280x720", + "name": "1280x720 (HD)" + } + ] + currentKey: root.editResolution + onSelected: key => root.editResolution = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.resolution || "original" + } + } + + NDivider { + Layout.fillWidth: true + } + + // Audio Settings + ColumnLayout { + spacing: Style.marginL + Layout.fillWidth: true + + // Audio Source + NComboBox { + label: pluginApi.tr("settings.audio.source") + description: pluginApi.tr("settings.audio.source-desc") + model: [ + { + "key": "none", + "name": pluginApi.tr("settings.audio.audio-sources-none") + }, + { + "key": "default_output", + "name": pluginApi.tr("settings.audio.audio-sources-system-output") + }, + { + "key": "default_input", + "name": pluginApi.tr("settings.audio.audio-sources-microphone-input") + }, + { + "key": "both", + "name": pluginApi.tr("settings.audio.audio-sources-both") + } + ] + currentKey: root.editAudioSource + onSelected: key => root.editAudioSource = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.audioSource || "default_output" + } + + // Audio Codec + NComboBox { + label: pluginApi.tr("settings.audio.codec") + description: pluginApi.tr("settings.audio.codec-desc") + model: [ + { + "key": "opus", + "name": "Opus" + }, + { + "key": "aac", + "name": "AAC" + } + ] + currentKey: root.editAudioCodec + onSelected: key => root.editAudioCodec = key + defaultValue: pluginApi?.manifest?.metadata?.defaultSettings?.audioCodec || "opus" + } + } + + Item { + Layout.fillHeight: true + } + + NFilePicker { + id: folderPicker + selectionMode: "folders" + title: pluginApi.tr("settings.general.output-folder") + initialPath: root.editDirectory || Quickshell.env("HOME") + "/Videos" + onAccepted: paths => { + if (paths.length > 0) { + root.editDirectory = paths[0]; + } + } + } +} diff --git a/mx-screen-recorder/i18n/de.json b/mx-screen-recorder/i18n/de.json new file mode 100644 index 0000000..6907c0a --- /dev/null +++ b/mx-screen-recorder/i18n/de.json @@ -0,0 +1,99 @@ +{ + "description": "Hardwarebeschleunigte Bildschirmaufnahme mit anpassbaren Video- und Audioeinstellungen", + "messages": { + "failed-general": "Der Recorder wurde mit einem Fehler beendet.", + "failed-gpu": "gpu-screen-recorder wurde unerwartet beendet.", + "failed-start": "Aufnahme konnte nicht gestartet werden.", + "no-portals": "Desktop-Portale laufen nicht.", + "no-portals-desc": "Starte xdg-desktop-portal und ein Compositor-Portal (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder ist nicht installiert.", + "not-installed-desc": "Bitte installieren Sie gpu-screen-recorder, um die Bildschirmaufzeichnungsfunktionen zu nutzen.", + "saved": "Aufnahme gespeichert.", + "start-recording": "Bildschirmaufnahme (Aufnahme starten)", + "started": "Aufnahme gestartet.", + "stop-recording": "Bildschirmaufnahme (Aufnahme stoppen)", + "stopping": "Aufnahme stoppen…", + "open-file": "Datei öffnen", + "monitor-not-found": "Could not detect the monitor under cursor.", + "replay-saved": "Replay gespeichert.", + "replay-started": "Replay-Puffer gestartet.", + "replay-stopped": "Replay-Puffer gestoppt.", + "replay-failed": "Fehler beim Starten des Replay-Puffers.", + "replay-active": "Bildschirmaufnahme (Replay aktiv)", + "save-replay": "Replay-Puffer speichern", + "start-replay": "Replay-Puffer starten", + "stop-replay": "Replay-Puffer stoppen" + }, + "name": "Bildschirmrekorder", + "settings": { + "audio": { + "audio-sources-both": "Systemausgabe + Mikrofoneingang", + "audio-sources-microphone-input": "Mikrofoneingang", + "audio-sources-none": "Kein Audio", + "audio-sources-system-output": "Systemausgabe", + "codec": "Audio-Codec", + "codec-desc": "Opus wird für beste Leistung und kleinste Audiogröße empfohlen", + "source": "Audioquelle", + "source-desc": "Audioquelle, die während der Aufnahme aufgenommen werden soll", + "title": "Audioeinstellungen" + }, + "filename-pattern": { + "description": "Dateimuster mit Datums-/Zeitcodes (z. B. aufnahme_yyyyMMdd_HHmmss)", + "label": "Dateimuster" + }, + "general": { + "copy-to-clipboard": "In die Zwischenablage kopieren", + "copy-to-clipboard-description": "Kopiere die Datei nach Abschluss der Aufnahme in die Zwischenablage.", + "hide-when-inactive": "Bei Inaktivität ausblenden", + "hide-when-inactive-description": "Widget in Statusleiste ausblenden, wenn keine Aufnahme stattfindet", + "output-folder": "Ausgabeordner", + "output-folder-description": "Ordner, in dem Bildschirmaufnahmen gespeichert werden", + "restore-portal-session": "Portal-Sitzung wiederherstellen", + "restore-portal-session-description": "Stellt die vorherige Portal-Sitzung für nachfolgende Aufnahmen automatisch wieder her (deaktiviert die Auswahlaufforderung)", + "show-cursor": "Cursor anzeigen", + "show-cursor-description": "Mauszeiger im Video aufnehmen", + "title": "Allgemein" + }, + "replay": { + "enable": "Replay-Puffer aktivieren", + "enable-desc": "Ein rollender Puffer der letzten Bildschirmaktivität beibehalten, der bei Bedarf gespeichert werden kann", + "duration": "Replay-Dauer", + "duration-desc": "Länge des Replay-Puffers in Sekunden", + "custom-duration": "Benutzerdefinierte Replay-Dauer", + "custom-duration-desc": "Geben Sie eine benutzerdefinierte Replay-Puffer-Dauer in Sekunden ein", + "storage": "Replay-Speicher", + "storage-desc": "Wo der Replay-Puffer gespeichert werden soll", + "storage-ram": "RAM (empfohlen)", + "storage-disk": "Festplatte" + }, + "title": "Bildschirmrekorder-Einstellungen", + "video": { + "codec": "Video-Codec", + "codec-desc": "h264 ist der gängigste Codec", + "color-range": "Farbbereich", + "color-range-desc": "Begrenzt wird für bessere Kompatibilität empfohlen", + "color-range-full": "Vollständig", + "color-range-limited": "Begrenzt", + "frame-rate": "Bildrate", + "frame-rate-custom": "Benutzerdefiniert", + "frame-rate-desc": "Ziel-Bildrate für Bildschirmaufnahmen", + "custom-frame-rate": "Benutzerdefinierte Bildrate", + "custom-frame-rate-desc": "Geben Sie einen benutzerdefinierten Bildratenwert ein (FPS)", + "quality": "Videoqualität", + "quality-desc": "Höhere Qualität führt zu größeren Dateien", + "quality-high": "Hoch", + "quality-medium": "Mittel", + "quality-ultra": "Ultra", + "quality-very-high": "Sehr hoch", + "resolution": "Auflösung", + "resolution-desc": "Ausgabeauflösung begrenzen. Standard verwendet Originalbildschirmauflösung", + "resolution-original": "Standard", + "source": "Videoquelle", + "source-desc": "Portal wird empfohlen, bei Artefakten versuchen Sie Bildschirm", + "sources-portal": "Portal", + "sources-screen": "Bildschirm", + "title": "Videoeinstellungen", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/en.json b/mx-screen-recorder/i18n/en.json new file mode 100644 index 0000000..d5770a0 --- /dev/null +++ b/mx-screen-recorder/i18n/en.json @@ -0,0 +1,99 @@ +{ + "description": "Hardware-accelerated screen recording with customizable video and audio settings", + "messages": { + "failed-general": "Recorder exited with an error.", + "failed-gpu": "gpu-screen-recorder exited unexpectedly.", + "failed-start": "Failed to start recording.", + "no-portals": "Desktop portals not running.", + "no-portals-desc": "Start xdg-desktop-portal and a compositor portal (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder not installed.", + "not-installed-desc": "Please install gpu-screen-recorder to use screen recording features.", + "saved": "Recording saved.", + "start-recording": "Screen Recorder (start recording)", + "started": "Recording started.", + "stop-recording": "Screen Recorder (stop recording)", + "stopping": "Stopping recording…", + "open-file": "Open file", + "monitor-not-found": "Could not detect the monitor under cursor.", + "replay-saved": "Replay saved.", + "replay-started": "Replay buffer started.", + "replay-stopped": "Replay buffer stopped.", + "replay-failed": "Failed to start replay buffer.", + "replay-active": "Screen Recorder (replay active)", + "save-replay": "Save replay buffer", + "start-replay": "Start replay buffer", + "stop-replay": "Stop replay buffer" + }, + "name": "Screen Recorder", + "settings": { + "audio": { + "audio-sources-both": "System output + microphone input", + "audio-sources-microphone-input": "Microphone input", + "audio-sources-none": "No audio", + "audio-sources-system-output": "System output", + "codec": "Audio codec", + "codec-desc": "Opus is recommended for best performance and smallest audio size", + "source": "Audio source", + "source-desc": "Audio source to capture during recording", + "title": "Audio Settings" + }, + "filename-pattern": { + "description": "Filename pattern using date/time codes (e.g., recording_yyyyMMdd_HHmmss)", + "label": "Filename pattern" + }, + "general": { + "copy-to-clipboard": "Copy to clipboard", + "copy-to-clipboard-description": "Copy the file to clipboard after recording finishes.", + "hide-when-inactive": "Hide when inactive", + "hide-when-inactive-description": "Hide the bar indicator when not recording", + "output-folder": "Output folder", + "output-folder-description": "Folder where screen recordings will be saved", + "restore-portal-session": "Restore portal session", + "restore-portal-session-description": "Automatically restore the previous portal session for subsequent recordings (disables the selection prompt)", + "show-cursor": "Show cursor", + "show-cursor-description": "Record mouse cursor in the video", + "title": "General" + }, + "replay": { + "enable": "Enable replay buffer", + "enable-desc": "Keep a rolling buffer of recent screen activity that can be saved on demand", + "duration": "Replay duration", + "duration-desc": "Length of the replay buffer in seconds", + "custom-duration": "Custom replay duration", + "custom-duration-desc": "Enter a custom replay buffer duration in seconds", + "storage": "Replay storage", + "storage-desc": "Where to store the replay buffer", + "storage-ram": "RAM (recommended)", + "storage-disk": "Disk" + }, + "title": "Screen Recorder Settings", + "video": { + "codec": "Video codec", + "codec-desc": "h264 is the most common codec", + "color-range": "Color range", + "color-range-desc": "Limited is recommended for better compatibility", + "color-range-full": "Full", + "color-range-limited": "Limited", + "frame-rate": "Frame rate", + "frame-rate-custom": "Custom", + "frame-rate-desc": "Target frame rate for screen recordings", + "custom-frame-rate": "Custom frame rate", + "custom-frame-rate-desc": "Enter a custom frame rate value (FPS)", + "quality": "Video quality", + "quality-desc": "Higher quality results in larger file sizes", + "quality-high": "High", + "quality-medium": "Medium", + "quality-ultra": "Ultra", + "quality-very-high": "Very high", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Video source", + "source-desc": "Portal is recommended, if you get artifacts try Screen", + "sources-portal": "Portal", + "sources-screen": "Screen", + "sources-focused-monitor": "Focused monitor (Hyprland)", + "title": "Video Settings" + } + } +} diff --git a/mx-screen-recorder/i18n/es.json b/mx-screen-recorder/i18n/es.json new file mode 100644 index 0000000..542cdb8 --- /dev/null +++ b/mx-screen-recorder/i18n/es.json @@ -0,0 +1,96 @@ +{ + "description": "Grabación de pantalla acelerada por hardware con configuración personalizable de video y audio", + "messages": { + "failed-general": "El grabador salió con un error.", + "failed-gpu": "gpu-screen-recorder se cerró inesperadamente.", + "failed-start": "No se pudo iniciar la grabación.", + "no-portals": "Portales de escritorio no están en ejecución.", + "no-portals-desc": "Inicia xdg-desktop-portal y un portal de compositor (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder no está instalado.", + "not-installed-desc": "Por favor, instale gpu-screen-recorder para usar las funciones de grabación de pantalla.", + "saved": "Grabación guardada.", + "start-recording": "Grabador de pantalla (empezar a grabar)", + "started": "Grabación iniciada.", + "stop-recording": "Grabador de pantalla (detener grabación)", + "stopping": "Deteniendo la grabación…", + "monitor-not-found": "No se pudo detectar el monitor bajo el cursor.", + "replay-saved": "Replay guardado.", + "replay-started": "Búfer de replay iniciado.", + "replay-stopped": "Búfer de replay detenido.", + "replay-failed": "Error al iniciar el búfer de replay.", + "replay-active": "Grabador de pantalla (replay activo)", + "save-replay": "Guardar búfer de replay", + "start-replay": "Iniciar búfer de replay", + "stop-replay": "Detener búfer de replay" + }, + "name": "Grabadora de Pantalla", + "settings": { + "audio": { + "audio-sources-both": "Salida del sistema + entrada de micrófono", + "audio-sources-microphone-input": "Entrada de micrófono", + "audio-sources-none": "Sin audio", + "audio-sources-system-output": "Salida del sistema", + "codec": "Códec de audio", + "codec-desc": "Opus se recomienda para mejor rendimiento y tamaño de audio más pequeño", + "source": "Fuente de audio", + "source-desc": "Fuente de audio para capturar durante la grabación", + "title": "Configuración de Audio" + }, + "filename-pattern": { + "description": "Patrón de nombre de archivo usando códigos de fecha/hora (p. ej., recording_yyyyMMdd_HHmmss)", + "label": "Patrón de nombre de archivo" + }, + "general": { + "copy-to-clipboard": "Copiar al portapapeles", + "copy-to-clipboard-description": "Copia el archivo al portapapeles después de que termine la grabación.", + "output-folder": "Carpeta de salida", + "output-folder-description": "Carpeta donde se guardarán las grabaciones de pantalla", + "restore-portal-session": "Restaurar sesión del portal", + "restore-portal-session-description": "Restaurar automáticamente la sesión anterior del portal para grabaciones posteriores (desactiva el aviso de selección)", + "show-cursor": "Mostrar cursor", + "show-cursor-description": "Grabar el cursor del ratón en el video", + "title": "General" + }, + "replay": { + "enable": "Activar búfer de replay", + "enable-desc": "Mantener un búfer rodante de la actividad reciente de la pantalla que se puede guardar a pedido", + "duration": "Duración del replay", + "duration-desc": "Longitud del búfer de replay en segundos", + "custom-duration": "Duración de replay personalizada", + "custom-duration-desc": "Ingrese una duración de búfer de replay personalizada en segundos", + "storage": "Almacenamiento de replay", + "storage-desc": "Dónde almacenar el búfer de replay", + "storage-ram": "RAM (recomendado)", + "storage-disk": "Disco" + }, + "title": "Configuración de Grabadora de Pantalla", + "video": { + "codec": "Códec de video", + "codec-desc": "h264 es el códec más común", + "color-range": "Rango de color", + "color-range-desc": "Limitado se recomienda para mejor compatibilidad", + "color-range-full": "Completo", + "color-range-limited": "Limitado", + "frame-rate": "Tasa de fotogramas", + "frame-rate-custom": "Personalizado", + "frame-rate-desc": "Tasa de fotogramas objetivo para grabaciones de pantalla", + "custom-frame-rate": "Tasa de fotogramas personalizada", + "custom-frame-rate-desc": "Ingrese un valor de tasa de fotogramas personalizado (FPS)", + "quality": "Calidad de video", + "quality-desc": "Mayor calidad resulta en archivos más grandes", + "quality-high": "Alto", + "quality-medium": "Mediano", + "quality-ultra": "Ultra", + "quality-very-high": "Muy alto", + "resolution": "Resolución", + "resolution-desc": "Limitar resolución de salida. Predeterminado usa resolución de pantalla original", + "resolution-original": "Default", + "source": "Fuente de video", + "source-desc": "Se recomienda Portal, si obtiene artefactos intente Pantalla", + "sources-portal": "Portal", + "sources-screen": "Pantalla", + "title": "Configuración de Video", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/fr.json b/mx-screen-recorder/i18n/fr.json new file mode 100644 index 0000000..9d7277b --- /dev/null +++ b/mx-screen-recorder/i18n/fr.json @@ -0,0 +1,99 @@ +{ + "description": "Enregistrement d'écran accéléré par matériel avec paramètres vidéo et audio personnalisables", + "messages": { + "failed-general": "L'enregistreur a quitté avec une erreur.", + "failed-gpu": "L'enregistreur d'écran GPU s'est arrêté de manière inattendue.", + "failed-start": "Échec du démarrage de l'enregistrement.", + "no-portals": "Les portails de bureau ne fonctionnent pas.", + "no-portals-desc": "Démarrer xdg-desktop-portal et un portail de compositeur (wlr/hyprland/gnome/kde).", + "not-installed": "enregistreur d'écran gpu non installé.", + "not-installed-desc": "Veuillez installer gpu-screen-recorder pour utiliser les fonctionnalités d'enregistrement d'écran.", + "saved": "Enregistrement sauvegardé.", + "start-recording": "Enregistreur d'écran (démarrer l'enregistrement)", + "started": "Enregistrement démarré.", + "stop-recording": "Enregistreur d'écran (arrêter l'enregistrement)", + "stopping": "Arrêt de l'enregistrement...", + "open-file": "Ouvrir le fichier", + "monitor-not-found": "Impossible de détecter l'écran sous le curseur.", + "replay-saved": "Replay enregistré.", + "replay-started": "Tampon de replay démarré.", + "replay-stopped": "Tampon de replay arrêté.", + "replay-failed": "Échec du démarrage du tampon de replay.", + "replay-active": "Enregistreur d'écran (replay actif)", + "save-replay": "Enregistrer le tampon de replay", + "start-replay": "Démarrer le tampon de replay", + "stop-replay": "Arrêter le tampon de replay" + }, + "name": "Enregistreur d'Écran", + "settings": { + "audio": { + "audio-sources-both": "Sortie système + entrée microphone", + "audio-sources-microphone-input": "Entrée microphone", + "audio-sources-none": "Pas d'audio", + "audio-sources-system-output": "Sortie système", + "codec": "Codec audio", + "codec-desc": "Opus est recommandé pour les meilleures performances et la plus petite taille audio", + "source": "Source audio", + "source-desc": "Source audio à capturer pendant l'enregistrement", + "title": "Paramètres Audio" + }, + "filename-pattern": { + "description": "Modèle de nom de fichier utilisant les codes date/heure (par exemple, recording_yyyyMMdd_HHmmss)", + "label": "Modèle de nom de fichier" + }, + "general": { + "copy-to-clipboard": "Copier dans le presse-papiers", + "copy-to-clipboard-description": "Copier le fichier dans le presse-papiers une fois l'enregistrement terminé.", + "hide-when-inactive": "Masquer lorsqu'inactif", + "hide-when-inactive-description": "Masquer l'indicateur de la barre lorsqu'il n'y a pas d'enregistrement", + "output-folder": "Dossier de sortie", + "output-folder-description": "Dossier où les enregistrements d'écran seront enregistrés", + "restore-portal-session": "Restaurer la session du portail", + "restore-portal-session-description": "Restaurer automatiquement la session du portail précédente pour les enregistrements ultérieurs (désactive l'invite de sélection)", + "show-cursor": "Afficher le curseur", + "show-cursor-description": "Enregistrer le curseur de la souris dans la vidéo", + "title": "Général" + }, + "replay": { + "enable": "Activer le tampon de replay", + "enable-desc": "Conserver un tampon roulant de l'activité récente de l'écran qui peut être enregistré à la demande", + "duration": "Durée du replay", + "duration-desc": "Longueur du tampon de replay en secondes", + "custom-duration": "Durée de replay personnalisée", + "custom-duration-desc": "Saisissez une durée de tampon de replay personnalisée en secondes", + "storage": "Stockage du replay", + "storage-desc": "Où stocker le tampon de replay", + "storage-ram": "RAM (recommandé)", + "storage-disk": "Disque" + }, + "title": "Paramètres de l'Enregistreur d'Écran", + "video": { + "codec": "Codec vidéo", + "codec-desc": "h264 est le codec le plus courant", + "color-range": "Gamme de couleurs", + "color-range-desc": "Limité est recommandé pour une meilleure compatibilité", + "color-range-full": "Complet / Plein", + "color-range-limited": "Limité(e)", + "frame-rate": "Fréquence d'images", + "frame-rate-custom": "Personnalisé", + "frame-rate-desc": "Fréquence d'images cible pour les enregistrements d'écran", + "custom-frame-rate": "Fréquence d'images personnalisée", + "custom-frame-rate-desc": "Entrez une valeur de fréquence d'images personnalisée (FPS)", + "quality": "Qualité vidéo", + "quality-desc": "Une qualité supérieure résulte en des fichiers plus volumineux", + "quality-high": "Haut/Haute", + "quality-medium": "Moyen", + "quality-ultra": "Ultra", + "quality-very-high": "Très élevé", + "resolution": "Résolution", + "resolution-desc": "Limiter la résolution de sortie. Par défaut utilise la résolution d'écran originale", + "resolution-original": "Default", + "source": "Source vidéo", + "source-desc": "Portal est recommandé, si vous obtenez des artefacts essayez Écran", + "sources-portal": "Portail", + "sources-screen": "Écran", + "sources-focused-monitor": "Écran sous le curseur (Hyprland)", + "title": "Paramètres Vidéo" + } + } +} diff --git a/mx-screen-recorder/i18n/hu.json b/mx-screen-recorder/i18n/hu.json new file mode 100644 index 0000000..d93bc2f --- /dev/null +++ b/mx-screen-recorder/i18n/hu.json @@ -0,0 +1,96 @@ +{ + "description": "Hardveresen gyorsított képernyőfelvétel testreszabható videó- és hangbeállításokkal", + "messages": { + "failed-general": "A rögzítő hibával kilépett.", + "failed-gpu": "A gpu-screen-recorder váratlanul leállt.", + "failed-start": "A felvétel indítása sikertelen.", + "no-portals": "Az asztali portálok nem futnak.", + "no-portals-desc": "xdg-desktop-portal és egy kompozitor portál (wlr/hyprland/gnome/kde) indítása.", + "not-installed": "A gpu-screen-recorder nincs telepítve.", + "not-installed-desc": "Kérlek, telepítsd a gpu-screen-recorder alkalmazást a képernyőfelvétel funkciók használatához.", + "saved": "A felvétel mentve.", + "start-recording": "Képernyőrögzítő (felvétel indítása)", + "started": "A felvétel elindult.", + "stop-recording": "Képernyőfelvevő (felvétel leállítása)", + "stopping": "A felvétel leállítása…", + "monitor-not-found": "Nem sikerült felismerni a kurzor alatti monitort.", + "replay-saved": "Replay elmentve.", + "replay-started": "Replay puffer elindítva.", + "replay-stopped": "Replay puffer leállítva.", + "replay-failed": "Nem sikerült elindítani a replay puffert.", + "replay-active": "Képernyőrögzítő (replay aktív)", + "save-replay": "Replay puffer mentése", + "start-replay": "Replay puffer indítása", + "stop-replay": "Replay puffer leállítása" + }, + "name": "Képernyőfelvevő", + "settings": { + "audio": { + "audio-sources-both": "Rendszerkimenet + mikrofonbemenet", + "audio-sources-microphone-input": "Mikrofon bemenet", + "audio-sources-none": "Nincs hang", + "audio-sources-system-output": "Rendszerkimenet", + "codec": "Audió kodek", + "codec-desc": "Az Opus ajánlott a legjobb teljesítmény és a legkisebb hangméret érdekében", + "source": "Hangforrás", + "source-desc": "Hangrögzítés során rögzítendő hangforrás", + "title": "Hangbeállítások" + }, + "filename-pattern": { + "description": "Fájlnév minta dátum/idő kódokkal (pl. recording_yyyyMMdd_HHmmss)", + "label": "Fájlnév minta" + }, + "general": { + "copy-to-clipboard": "Másolás a vágólapra", + "copy-to-clipboard-description": "A felvétel befejezése után másolja a fájlt a vágólapra.", + "output-folder": "Kimeneti mappa", + "output-folder-description": "A mappa, ahová a képernyőfelvételek mentésre kerülnek", + "restore-portal-session": "Portál munkamenet visszaállítása", + "restore-portal-session-description": "Az előző portál munkamenet automatikus visszaállítása a következő felvételekhez (kikapcsolja a választóablakot)", + "show-cursor": "Kurzor megjelenítése", + "show-cursor-description": "Egérkurzor rögzítése a videóban", + "title": "Általános" + }, + "replay": { + "enable": "Replay puffer engedélyezése", + "enable-desc": "Tartson egy gördülő puffert a legutóbbi képernyőaktivitásról, amely igény szerint elmenthető", + "duration": "Replay időtartama", + "duration-desc": "A replay puffer hossza másodpercben", + "custom-duration": "Egyéni replay időtartam", + "custom-duration-desc": "Adjon meg egy egyéni replay puffer időtartamot másodpercben", + "storage": "Replay tároló", + "storage-desc": "Hol tárolja a replay puffert", + "storage-ram": "RAM (ajánlott)", + "storage-disk": "Lemez" + }, + "title": "Képernyőrögzítő beállítások", + "video": { + "codec": "Videó kodek", + "codec-desc": "a h264 a legelterjedtebb kodek", + "color-range": "Színtartomány", + "color-range-desc": "A korlátozott ajánlott a jobb kompatibilitás érdekében", + "color-range-full": "Teljes", + "color-range-limited": "Korlátozott", + "frame-rate": "Képkockasebesség", + "frame-rate-custom": "Egyéni", + "frame-rate-desc": "Képernyőfelvételek célzott képkockasebessége", + "custom-frame-rate": "Egyéni képkockasebesség", + "custom-frame-rate-desc": "Adjon meg egyéni képkockasebesség értéket (FPS)", + "quality": "Videóminőség", + "quality-desc": "A jobb minőség nagyobb fájlméretet eredményez", + "quality-high": "Magas", + "quality-medium": "Közepes", + "quality-ultra": "Ultra", + "quality-very-high": "Nagyon magas", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Videóforrás", + "source-desc": "A Portal ajánlott, ha hibákat tapasztalsz, próbáld a Screen-t", + "sources-portal": "Portál", + "sources-screen": "Képernyő", + "title": "Videóbeállítások", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/it.json b/mx-screen-recorder/i18n/it.json new file mode 100644 index 0000000..b983a82 --- /dev/null +++ b/mx-screen-recorder/i18n/it.json @@ -0,0 +1,96 @@ +{ + "description": "Registrazione dello schermo con accelerazione hardware e impostazioni video e audio personalizzabili", + "messages": { + "failed-general": "Registratore uscito con un errore.", + "failed-gpu": "ضبط الشاشة باستخدام معالج الرسوميات توقف بشكل غير متوقع.", + "failed-start": "Nuk arrita të filloj regjistrimin.", + "no-portals": "Non è in esecuzione alcun portale desktop.", + "no-portals-desc": "Avvia xdg-desktop-portal e un portale compositore (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder non è installato.", + "not-installed-desc": "Bitte installiere gpu-screen-recorder, um die Bildschirmaufzeichnungsfunktionen zu nutzen.", + "saved": "Registrazione salvata.", + "start-recording": "P錄影 (開始錄影)", + "started": "Aufnahme gestartet.", + "stop-recording": "Skjáupptökutæki (hætta upptöku)", + "stopping": "Nagpapatigil ng pagrekord...", + "monitor-not-found": "Impossibile rilevare il monitor sotto il cursore.", + "replay-saved": "Replay salvato.", + "replay-started": "Buffer di replay avviato.", + "replay-stopped": "Buffer di replay interrotto.", + "replay-failed": "Impossibile avviare il buffer di replay.", + "replay-active": "Registratore schermo (replay attivo)", + "save-replay": "Salva buffer di replay", + "start-replay": "Avvia buffer di replay", + "stop-replay": "Interrompi buffer di replay" + }, + "name": "Registratore Schermo", + "settings": { + "audio": { + "audio-sources-both": "Risultato del sistema + ingresso microfono", + "audio-sources-microphone-input": "Eingang für Mikrofon", + "audio-sources-none": "Léir aon fhuaim", + "audio-sources-system-output": "Risultato del sistema", + "codec": "Codec audio", + "codec-desc": "Opus è consigliato per le migliori prestazioni e dimensioni audio più piccole", + "source": "Sorgente audio", + "source-desc": "Sorgente audio da catturare durante la registrazione", + "title": "Impostazioni Audio" + }, + "filename-pattern": { + "description": "Padrone di u nome di u schedariu chì usa i codici di data/ora (per esempiu, recording_yyyyMMdd_HHmmss)", + "label": "Modello nome file" + }, + "general": { + "copy-to-clipboard": "Copia negli appunti", + "copy-to-clipboard-description": "Kopyahin ang file sa clipboard pagkatapos matapos ang pag-record.", + "output-folder": "Cartella di output", + "output-folder-description": "Cartella dove verranno salvate le registrazioni dello schermo", + "restore-portal-session": "Restore portal session", + "restore-portal-session-description": "Automatically restore the previous portal session for subsequent recordings (disables the selection prompt)", + "show-cursor": "Mostra cursore", + "show-cursor-description": "Registra il cursore del mouse nel video", + "title": "Generale" + }, + "replay": { + "enable": "Abilita buffer di replay", + "enable-desc": "Mantiene un buffer ciclico dell'attività recente dello schermo che può essere salvato a richiesta", + "duration": "Durata replay", + "duration-desc": "Lunghezza del buffer di replay in secondi", + "custom-duration": "Durata replay personalizzata", + "custom-duration-desc": "Inserisci una durata personalizzata del buffer di replay in secondi", + "storage": "Archiviazione replay", + "storage-desc": "Dove archiviare il buffer di replay", + "storage-ram": "RAM (consigliato)", + "storage-disk": "Disco" + }, + "title": "Impostazioni Registratore Schermo", + "video": { + "codec": "Codec video", + "codec-desc": "h264 è il codec più comune", + "color-range": "Gamma colori", + "color-range-desc": "Limitato è consigliato per una migliore compatibilità", + "color-range-full": "Puno", + "color-range-limited": "Limitato", + "frame-rate": "Frequenza fotogrammi", + "frame-rate-custom": "Personalizzato", + "frame-rate-desc": "Frequenza fotogrammi target per le registrazioni dello schermo", + "custom-frame-rate": "Frequenza fotogrammi personalizzata", + "custom-frame-rate-desc": "Inserisci un valore personalizzato di frequenza fotogrammi (FPS)", + "quality": "Qualità video", + "quality-desc": "Qualità superiore risulta in file più grandi", + "quality-high": "Alta", + "quality-medium": "Mezzano", + "quality-ultra": "Ultra", + "quality-very-high": "Molto alto", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Sorgente video", + "source-desc": "Portal è consigliato, se si ottengono artefatti prova Schermo", + "sources-portal": "Portale", + "sources-screen": "Skjerm", + "title": "Impostazioni Video", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/ja.json b/mx-screen-recorder/i18n/ja.json new file mode 100644 index 0000000..376bb8d --- /dev/null +++ b/mx-screen-recorder/i18n/ja.json @@ -0,0 +1,99 @@ +{ + "description": "カスタマイズ可能なビデオおよびオーディオ設定を備えたハードウェアアクセラレーション対応の画面録画", + "messages": { + "failed-general": "レコーダーがエラーで終了しました。", + "failed-gpu": "gpu-screen-recorder が予期せず終了しました。", + "failed-start": "録画を開始できませんでした。", + "no-portals": "デスクトップポータルが実行されていません。", + "no-portals-desc": "xdg-desktop-portalとコンポジターポータル (wlr/hyprland/gnome/kde) を起動します。", + "not-installed": "gpu-screen-recorder がインストールされていません。", + "not-installed-desc": "画面録画機能を使用するには、gpu-screen-recorderをインストールしてください。", + "saved": "録画を保存しました。", + "start-recording": "画面録画(開始)", + "started": "録画を開始しました。", + "stop-recording": "画面録画(停止)", + "stopping": "録画を停止しています…", + "open-file": "ファイルを開く", + "monitor-not-found": "カーソル下のモニターを検出できませんでした。", + "replay-saved": "リプレイが保存されました。", + "replay-started": "リプレイバッファが開始されました。", + "replay-stopped": "リプレイバッファが停止されました。", + "replay-failed": "リプレイバッファの開始に失敗しました。", + "replay-active": "スクリーンレコーダー (リプレイ有効)", + "save-replay": "リプレイバッファを保存", + "start-replay": "リプレイバッファを開始", + "stop-replay": "リプレイバッファを停止" + }, + "name": "画面レコーダー", + "settings": { + "audio": { + "audio-sources-both": "システム出力 + マイク入力", + "audio-sources-microphone-input": "マイク入力", + "audio-sources-none": "音声なし", + "audio-sources-system-output": "システム出力", + "codec": "オーディオコーデック", + "codec-desc": "最高のパフォーマンスと最小のオーディオサイズにはOpusが推奨されます", + "source": "オーディオソース", + "source-desc": "録画中にキャプチャされるオーディオソース", + "title": "オーディオ設定" + }, + "filename-pattern": { + "description": "日付/時刻コードを使用したファイル名のパターン(例:recording_yyyyMMdd_HHmmss)", + "label": "ファイル名のパターン" + }, + "general": { + "copy-to-clipboard": "クリップボードにコピー", + "copy-to-clipboard-description": "録画終了後、ファイルをクリップボードにコピーする", + "hide-when-inactive": "非アクティブ時に非表示", + "hide-when-inactive-description": "録画していないときはウィジェットを隠す", + "output-folder": "出力フォルダー", + "output-folder-description": "画面録画が保存されるフォルダー", + "restore-portal-session": "ポータルセッションを復元する", + "restore-portal-session-description": "以降の録画のために前のポータルセッションを自動的に復元します(選択プロンプトを無効にします)", + "show-cursor": "カーソルを表示", + "show-cursor-description": "録画にマウスカーソルを記録する", + "title": "全般" + }, + "replay": { + "enable": "リプレイバッファを有効にする", + "enable-desc": "最近の画面アクティビティのローリングバッファを保持し、必要に応じて保存できるようにします", + "duration": "リプレイ時間", + "duration-desc": "リプレイバッファの長さ(秒)", + "custom-duration": "カスタムリプレイ時間", + "custom-duration-desc": "カスタムリプレイバッファの時間を秒単位で入力してください", + "storage": "リプレイストレージ", + "storage-desc": "リプレイバッファの保存先", + "storage-ram": "RAM (推奨)", + "storage-disk": "ディスク" + }, + "title": "画面レコーダー設定", + "video": { + "codec": "ビデオコーデック", + "codec-desc": "h264は最も一般的なコーデックです", + "color-range": "色範囲", + "color-range-desc": "互換性を高めるため、限定が推奨されます", + "color-range-full": "フル", + "color-range-limited": "限定", + "frame-rate": "フレームレート", + "frame-rate-custom": "カスタム", + "frame-rate-desc": "画面録画の目標フレームレート", + "custom-frame-rate": "カスタムフレームレート", + "custom-frame-rate-desc": "カスタムフレームレート値を入力してください(FPS)", + "quality": "ビデオ品質", + "quality-desc": "品質が高いほど、ファイルサイズが大きくなります", + "quality-high": "高", + "quality-medium": "中", + "quality-ultra": "最高", + "quality-very-high": "超高", + "resolution": "解像度", + "resolution-desc": "出力解像度を制限します。デフォルトでは元の画面解像度が使用されます", + "resolution-original": "デフォルト", + "source": "ビデオソース", + "source-desc": "ポータルが推奨されます。アーティファクトが発生する場合は「スクリーン」を試してください", + "sources-portal": "ポータル", + "sources-screen": "スクリーン", + "title": "ビデオ設定", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/ku.json b/mx-screen-recorder/i18n/ku.json new file mode 100644 index 0000000..9e6adc4 --- /dev/null +++ b/mx-screen-recorder/i18n/ku.json @@ -0,0 +1,96 @@ +{ + "description": "Qeydkirina dîmenderê ya bi lezkerdana hardware bi mîhengên vîdyo û deng ên xwerû", + "messages": { + "failed-general": "Qeydker bi xeletî derket.", + "failed-gpu": "Qeydkerê dîmenderê GPU bi awayekî nediyar derket.", + "failed-start": "Dest pê kirina qeydê bi ser neket.", + "no-portals": "Portalên sermaseyê naxebitin.", + "no-portals-desc": "Xdg-desktop-portal û portalekî komposîtorê (wlr/hyprland/gnome/kde) bide destpêkirin.", + "not-installed": "gpu-screen-recorder nehati hati saz kirin.", + "not-installed-desc": "Ji bo bikaranîna taybetmendiyên tomarkirina dîmenderê, ji kerema xwe gpu-screen-recorder saz bikin.", + "saved": "Tomar qeyd kirin.", + "start-recording": "Qeydkerê ekranê (dest bi qeydkirinê bike)", + "started": "Qeydkirin dest pê kir.", + "stop-recording": "Tomarkera dîmenderê (tomarkirinê bide sekinandin)", + "stopping": "Qeydkirin radiweste…", + "monitor-not-found": "Monitora bin nîşanderê nehat dîtin.", + "replay-saved": "Vegerandin hat qeydkirin.", + "replay-started": "Depo vegerandinê dest pê kir.", + "replay-stopped": "Depo vegerandinê sekinî.", + "replay-failed": "Destpêkirina depo vegerandinê bi ser neket.", + "replay-active": "Qeydkerê dîmenderê (vegerandin çalak e)", + "save-replay": "Depo vegerandinê qeyd bike", + "start-replay": "Depo vegerandinê bide destpêkirin", + "stop-replay": "Depo vegerandinê bide sekinandin" + }, + "name": "Qeydkerê Ekranê", + "settings": { + "audio": { + "audio-sources-both": "Derçûna pergalê + têketina mîkrofonê", + "audio-sources-microphone-input": "Ketina mîkrofonê", + "audio-sources-none": "Ti dengê tune", + "audio-sources-system-output": "Derçûna pergalê", + "codec": "Kodêkê deng", + "codec-desc": "Opus ji bo performansa herî baş û mezinahiya dengî ya herî biçûk tê pêşniyar kirin", + "source": "Çavkanîya deng", + "source-desc": "Çavkanîya dengî ya ku di dema qeydkirinê de were girtin", + "title": "Mîhengên Deng" + }, + "filename-pattern": { + "description": "Şiklê navê pelê ku kodên dîrok/dem bikar tîne (mînak, recording_yyyyMMdd_HHmmss)", + "label": "Nimûneya navê pelê" + }, + "general": { + "copy-to-clipboard": "Kopyayî ser clipboardê bike", + "copy-to-clipboard-description": "Piştî qedandina tomarkirinê pelê kopî klîpbordê bike.", + "output-folder": "Cilda peldanka ya derketinê", + "output-folder-description": "Peldanka ku qeydên ekranê lê werên rizgarkirin", + "restore-portal-session": "Vegerandina rûniştina portalê", + "restore-portal-session-description": "Ji bo qeydên paşê bixweber rûniştina portalê ya berê vedigerîne (pêşniyara hilbijartinê neçalak dike)", + "show-cursor": "Nîşanderê nîşan bide", + "show-cursor-description": "Qeydê nîşankerê mişkê di vîdeoyê de", + "title": "Giştî" + }, + "replay": { + "enable": "Depo vegerandinê çalak bike", + "enable-desc": "Depoyek gerok a çalakiyên dîmenderê bihêle ku dikare li ser daxwazê were qeydkirin", + "duration": "Dama vegerandinê", + "duration-desc": "Dirêjahiya depo vegerandinê bi çirkeyan", + "custom-duration": "Dama vegerandinê ya xwerû", + "custom-duration-desc": "Dama depo vegerandinê ya xwerû bi çirkeyan binivîse", + "storage": "Depoya vegerandinê", + "storage-desc": "Depo vegerandinê li ku were hilanîn", + "storage-ram": "RAM (tê pêşniyarkirin)", + "storage-disk": "Dîsk" + }, + "title": "Mîhengên Qeydkerê Dîmenderê", + "video": { + "codec": "Kodêka vîdyoyî", + "codec-desc": "h264 kodêka herî berbelav e", + "color-range": "Rêza rengan", + "color-range-desc": "Bi sînorkirî ji bo lihevkirina baştir tê pêşniyarkirin", + "color-range-full": "Tije", + "color-range-limited": "Sînorkirî", + "frame-rate": "Rêjeya çarçoveyê", + "frame-rate-custom": "Kesane", + "frame-rate-desc": "Rêjeya çarçoveya hedefê ji bo qeydên ekranê", + "custom-frame-rate": "Rêjeya çarçoveya kesane", + "custom-frame-rate-desc": "Nirxek rêjeya çarçoveya kesane binivîse (FPS)", + "quality": "Kalîteya vîdyoyê", + "quality-desc": "Encamên bi kalîte bilindtir dibin sedema mezinahiyên pelan ên mezintir", + "quality-high": "Bilind", + "quality-medium": "Navîn", + "quality-ultra": "Ultra", + "quality-very-high": "Zaf bilind", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Çavkanîya vîdyoyê", + "source-desc": "Portal tê pêşniyarkirin, eger tu artefaktan bibînî Screen biceribîne", + "sources-portal": "Portal", + "sources-screen": "Dîmende", + "title": "Mîhengên Vîdeoyê", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/nl.json b/mx-screen-recorder/i18n/nl.json new file mode 100644 index 0000000..cab9898 --- /dev/null +++ b/mx-screen-recorder/i18n/nl.json @@ -0,0 +1,96 @@ +{ + "description": "Hardware-versnelde schermopname met aanpasbare video- en audio-instellingen", + "messages": { + "failed-general": "Recorder is afgesloten met een fout.", + "failed-gpu": "gpu-screen-recorder is onverwachts afgesloten.", + "failed-start": "Opname starten mislukt.", + "no-portals": "Desktop portals werken niet.", + "no-portals-desc": "Start xdg-desktop-portal en een compositor portaal (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder niet geïnstalleerd.", + "not-installed-desc": "Installeer gpu-screen-recorder om schermopnamefuncties te gebruiken.", + "saved": "Opname opgeslagen.", + "start-recording": "Schermrecorder (opname starten)", + "started": "Opname gestart.", + "stop-recording": "Schermrecorder (opname stoppen)", + "stopping": "Opname stoppen…", + "monitor-not-found": "Kon de monitor onder de cursor niet detecteren.", + "replay-saved": "Replay opgeslagen.", + "replay-started": "Replay-buffer gestart.", + "replay-stopped": "Replay-buffer gestopt.", + "replay-failed": "Fout bij starten van replay-buffer.", + "replay-active": "Schermrecorder (replay actief)", + "save-replay": "Replay-buffer opslaan", + "start-replay": "Replay-buffer starten", + "stop-replay": "Replay-buffer stoppen" + }, + "name": "Schermrecorder", + "settings": { + "audio": { + "audio-sources-both": "Systeemuitvoer + microfooningang", + "audio-sources-microphone-input": "Microfooningang", + "audio-sources-none": "Geen audio", + "audio-sources-system-output": "Systeemuitvoer", + "codec": "Audio-codec", + "codec-desc": "Opus wordt aanbevolen voor beste prestaties en kleinste audiogrootte", + "source": "Audiobron", + "source-desc": "Audiobron om tijdens opname vast te leggen", + "title": "Audio-instellingen" + }, + "filename-pattern": { + "description": "Bestandsnaam patroon met datum/tijd codes (bijv. recording_yyyyMMdd_HHmmss)", + "label": "Bestandsnaam patroon" + }, + "general": { + "copy-to-clipboard": "Kopiëren naar klembord", + "copy-to-clipboard-description": "Kopieer het bestand naar het klembord nadat de opname is voltooid.", + "output-folder": "Uitvoermap", + "output-folder-description": "Map waar schermopnames worden opgeslagen", + "restore-portal-session": "Portalsessie herstellen", + "restore-portal-session-description": "Herstel automatisch de vorige portalsessie voor volgende opnamen (schakelt het selectievenster uit)", + "show-cursor": "Cursor tonen", + "show-cursor-description": "Muiscursor in de video opnemen", + "title": "Algemeen" + }, + "replay": { + "enable": "Replay-buffer inschakelen", + "enable-desc": "Een rollende buffer van recente schermactiviteit bijhouden die op verzoek kan worden opgeslagen", + "duration": "Replay-duur", + "duration-desc": "Lengte van de replay-buffer in seconden", + "custom-duration": "Aangepaste replay-duur", + "custom-duration-desc": "Voer een aangepaste replay-bufferduur in seconden in", + "storage": "Replay-opslag", + "storage-desc": "Waar de replay-buffer moet worden opgeslagen", + "storage-ram": "RAM (aanbevolen)", + "storage-disk": "Schijf" + }, + "title": "Schermrecorder Instellingen", + "video": { + "codec": "Video-codec", + "codec-desc": "h264 is de meest voorkomende codec", + "color-range": "Kleurbereik", + "color-range-desc": "Beperkt wordt aanbevolen voor betere compatibiliteit", + "color-range-full": "Volledig", + "color-range-limited": "Beperkt", + "frame-rate": "Framesnelheid", + "frame-rate-custom": "Aangepast", + "frame-rate-desc": "Doelframesnelheid voor schermopnames", + "custom-frame-rate": "Aangepaste framesnelheid", + "custom-frame-rate-desc": "Voer een aangepaste framesnelheid in (FPS)", + "quality": "Videokwaliteit", + "quality-desc": "Hogere kwaliteit resulteert in grotere bestanden", + "quality-high": "Hoog", + "quality-medium": "Medium", + "quality-ultra": "Ultra", + "quality-very-high": "Zeer hoog", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Videobron", + "source-desc": "Portal wordt aanbevolen, probeer Scherm als u artefacten krijgt", + "sources-portal": "Portaal", + "sources-screen": "Scherm", + "title": "Video-instellingen", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/pl.json b/mx-screen-recorder/i18n/pl.json new file mode 100644 index 0000000..13d7d2a --- /dev/null +++ b/mx-screen-recorder/i18n/pl.json @@ -0,0 +1,96 @@ +{ + "description": "Nagrywanie ekranu z akceleracją sprzętową z możliwością dostosowania ustawień wideo i audio", + "messages": { + "failed-general": "Rejestrator zakończył pracę z błędem.", + "failed-gpu": "Rejestrator ekranu GPU zakończył pracę nieoczekiwanie.", + "failed-start": "Nie udało się rozpocząć nagrywania.", + "no-portals": "Portale pulpitu nie działają.", + "no-portals-desc": "Uruchom xdg-desktop-portal i portal kompozytora (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder nie jest zainstalowany.", + "not-installed-desc": "Zainstaluj gpu-screen-recorder, aby korzystać z funkcji nagrywania ekranu.", + "saved": "Nagranie zapisane.", + "start-recording": "Rejestrator ekranu (rozpocznij nagrywanie)", + "started": "Rozpoczęto nagrywanie.", + "stop-recording": "Rejestrator ekranu (zatrzymaj nagrywanie)", + "stopping": "Zatrzymywanie nagrywania…", + "monitor-not-found": "Nie udało się wykryć monitora pod kursorem.", + "replay-saved": "Powtórka zapisana.", + "replay-started": "Bufor powtórki uruchomiony.", + "replay-stopped": "Bufor powtórki zatrzymany.", + "replay-failed": "Nie udało się uruchomić bufora powtórki.", + "replay-active": "Rejestrator ekranu (powtórka aktywna)", + "save-replay": "Zapisz bufor powtórki", + "start-replay": "Uruchom bufor powtórki", + "stop-replay": "Zatrzymaj bufor powtórki" + }, + "name": "Rejestrator ekranu", + "settings": { + "audio": { + "audio-sources-both": "Wyjście systemowe + wejście mikrofonu", + "audio-sources-microphone-input": "Wejście mikrofonu", + "audio-sources-none": "Brak dźwięku", + "audio-sources-system-output": "Wyjście systemowe", + "codec": "Kodek audio", + "codec-desc": "Opus jest zalecany dla najlepszej wydajności i najmniejszego rozmiaru dźwięku", + "source": "Źródło dźwięku", + "source-desc": "Źródło dźwięku do przechwytywania podczas nagrywania", + "title": "Ustawienia audio" + }, + "filename-pattern": { + "description": "Wzorzec nazwy pliku używający kodów daty/czasu (np. nagranie_rrrrMMdd_HHmmss)", + "label": "Wzorzec nazwy pliku" + }, + "general": { + "copy-to-clipboard": "Kopiuj do schowka", + "copy-to-clipboard-description": "Kopiuj plik do schowka po zakończeniu nagrywania.", + "output-folder": "Folder wyjściowy", + "output-folder-description": "Folder, w którym będą zapisywane nagrania ekranu", + "restore-portal-session": "Przywróć sesję portalu", + "restore-portal-session-description": "Automatycznie przywracaj poprzednią sesję portalu dla kolejnych nagrań (wyłącza monit o wybór)", + "show-cursor": "Pokaż kursor", + "show-cursor-description": "Nagrywaj kursor myszy na filmie", + "title": "Ogólne" + }, + "replay": { + "enable": "Włącz bufor powtórki", + "enable-desc": "Utrzymuj bufor cykliczny ostatniej aktywności ekranu, który można zapisać na żądanie", + "duration": "Czas trwania powtórki", + "duration-desc": "Długość bufora powtórki w sekundach", + "custom-duration": "Niestandardowy czas trwania powtórki", + "custom-duration-desc": "Wprowadź niestandardowy czas trwania bufora powtórki w sekundach", + "storage": "Przechowywanie powtórki", + "storage-desc": "Gdzie przechowywać bufor powtórki", + "storage-ram": "RAM (zalecane)", + "storage-disk": "Dysk" + }, + "title": "Ustawienia rejestratora ekranu", + "video": { + "codec": "Kodek wideo", + "codec-desc": "h264 to najpopularniejszy kodek", + "color-range": "Zakres kolorów", + "color-range-desc": "Zalecane jest \"Ograniczone\" dla lepszej kompatybilności", + "color-range-full": "Pełny", + "color-range-limited": "Ograniczone", + "frame-rate": "Liczba klatek na sekundę", + "frame-rate-custom": "Niestandardowa", + "frame-rate-desc": "Docelowa liczba klatek na sekundę dla nagrań ekranu", + "custom-frame-rate": "Niestandardowa liczba klatek", + "custom-frame-rate-desc": "Wprowadź niestandardową liczbę klatek na sekundę (FPS)", + "quality": "Jakość wideo", + "quality-desc": "Wyższa jakość skutkuje większymi rozmiarami plików", + "quality-high": "Wysoki", + "quality-medium": "Średni", + "quality-ultra": "Bardzo", + "quality-very-high": "Bardzo wysoki", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Źródło wideo", + "source-desc": "Zalecany jest Portal, jeśli występują artefakty, spróbuj opcji Ekran", + "sources-portal": "Portal", + "sources-screen": "Ekran", + "title": "Ustawienia wideo", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/pt.json b/mx-screen-recorder/i18n/pt.json new file mode 100644 index 0000000..04a9efc --- /dev/null +++ b/mx-screen-recorder/i18n/pt.json @@ -0,0 +1,96 @@ +{ + "description": "Gravação de tela acelerada por hardware com configurações personalizáveis de vídeo e áudio", + "messages": { + "failed-general": "O gravador foi encerrado com um erro.", + "failed-gpu": "gpu-screen-recorder foi encerrado inesperadamente.", + "failed-start": "Falha ao iniciar a gravação.", + "no-portals": "Portais de desktop não estão em execução.", + "no-portals-desc": "Inicie o xdg-desktop-portal e um portal compositor (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder não instalado.", + "not-installed-desc": "Por favor, instale o gpu-screen-recorder para usar os recursos de gravação de tela.", + "saved": "Gravação salva.", + "start-recording": "Gravador de tela (iniciar gravação)", + "started": "Gravação iniciada.", + "stop-recording": "Gravador de tela (parar gravação)", + "stopping": "Parando a gravação...", + "monitor-not-found": "Não foi possível detetar o monitor sob o cursor.", + "replay-saved": "Replay salvo.", + "replay-started": "Buffer de replay iniciado.", + "replay-stopped": "Buffer de replay parado.", + "replay-failed": "Falha ao iniciar o buffer de replay.", + "replay-active": "Gravador de ecrã (replay ativo)", + "save-replay": "Salvar buffer de replay", + "start-replay": "Iniciar buffer de replay", + "stop-replay": "Parar buffer de replay" + }, + "name": "Gravador de Tela", + "settings": { + "audio": { + "audio-sources-both": "Saída do sistema + entrada do microfone", + "audio-sources-microphone-input": "Entrada de microfone", + "audio-sources-none": "Sem áudio", + "audio-sources-system-output": "Saída do sistema", + "codec": "Codec de áudio", + "codec-desc": "Opus é recomendado para melhor desempenho e menor tamanho de áudio", + "source": "Fonte de áudio", + "source-desc": "Fonte de áudio para capturar durante a gravação", + "title": "Configurações de Áudio" + }, + "filename-pattern": { + "description": "Padrão de nome de arquivo usando códigos de data/hora (por exemplo, recording_yyyyMMdd_HHmmss)", + "label": "Padrão de nome de arquivo" + }, + "general": { + "copy-to-clipboard": "Copiar para área de transferência", + "copy-to-clipboard-description": "Copiar o arquivo para a área de transferência após a gravação terminar.", + "output-folder": "Pasta de saída", + "output-folder-description": "Pasta onde as gravações de tela serão salvas", + "restore-portal-session": "Restaurar sessão do portal", + "restore-portal-session-description": "Restaurar automaticamente a sessão anterior do portal para gravações subsequentes (desativa o aviso de seleção)", + "show-cursor": "Mostrar cursor", + "show-cursor-description": "Gravar o cursor do mouse no vídeo", + "title": "Geral" + }, + "replay": { + "enable": "Ativar buffer de replay", + "enable-desc": "Manter um buffer rotativo da atividade recente do ecrã que pode ser salvo sob demanda", + "duration": "Duração do replay", + "duration-desc": "Comprimento do buffer de replay em segundos", + "custom-duration": "Duração de replay personalizada", + "custom-duration-desc": "Insira uma duração de buffer de replay personalizada em segundos", + "storage": "Armazenamento do replay", + "storage-desc": "Onde armazenar o buffer de replay", + "storage-ram": "RAM (recomendado)", + "storage-disk": "Disco" + }, + "title": "Configurações do Gravador de Tela", + "video": { + "codec": "Codec de vídeo", + "codec-desc": "h264 é o codec mais comum", + "color-range": "Faixa de cores", + "color-range-desc": "Limitado é recomendado para melhor compatibilidade", + "color-range-full": "Completo", + "color-range-limited": "Limitado", + "frame-rate": "Taxa de quadros", + "frame-rate-custom": "Personalizado", + "frame-rate-desc": "Taxa de quadros alvo para gravações de tela", + "custom-frame-rate": "Taxa de quadros personalizada", + "custom-frame-rate-desc": "Insira um valor personalizado de taxa de quadros (FPS)", + "quality": "Qualidade de vídeo", + "quality-desc": "Maior qualidade resulta em arquivos maiores", + "quality-high": "Alto(a)", + "quality-medium": "Médio", + "quality-ultra": "Ultra", + "quality-very-high": "Muito alto/altíssima/elevadíssimo(a)", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Fonte de vídeo", + "source-desc": "Portal é recomendado, se obtiver artefatos tente Tela", + "sources-portal": "Portal", + "sources-screen": "Tela", + "title": "Configurações de Vídeo", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/ru.json b/mx-screen-recorder/i18n/ru.json new file mode 100644 index 0000000..bc4d016 --- /dev/null +++ b/mx-screen-recorder/i18n/ru.json @@ -0,0 +1,96 @@ +{ + "description": "Аппаратно-ускоренная запись экрана с настраиваемыми параметрами видео и аудио", + "messages": { + "failed-general": "Рекордер завершил работу с ошибкой.", + "failed-gpu": "gpu-screen-recorder неожиданно завершил работу.", + "failed-start": "Не удалось начать запись.", + "no-portals": "Порталы рабочего стола не работают.", + "no-portals-desc": "Запустить xdg-desktop-portal и портал композитора (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder не установлен.", + "not-installed-desc": "Пожалуйста, установите gpu-screen-recorder, чтобы использовать функции записи экрана.", + "saved": "Запись сохранена.", + "start-recording": "Запись экрана (начать запись)", + "started": "Запись началась.", + "stop-recording": "Запись экрана (остановить запись)", + "stopping": "Остановка записи…", + "monitor-not-found": "Не удалось обнаружить монитор под курсором.", + "replay-saved": "Повтор сохранен.", + "replay-started": "Буфер повтора запущен.", + "replay-stopped": "Буфер повтора остановлен.", + "replay-failed": "Не удалось запустить буфер повтора.", + "replay-active": "Запис экрана (повтор активен)", + "save-replay": "Сохранить буфер повтора", + "start-replay": "Запустить буфер повтора", + "stop-replay": "Остановить буфер повтора" + }, + "name": "Запись Экрана", + "settings": { + "audio": { + "audio-sources-both": "Вывод системы + ввод с микрофона", + "audio-sources-microphone-input": "Микрофонный вход", + "audio-sources-none": "Нет звука", + "audio-sources-system-output": "Вывод системы", + "codec": "Аудиокодек", + "codec-desc": "Opus рекомендуется для лучшей производительности и наименьшего размера аудио", + "source": "Источник аудио", + "source-desc": "Источник аудио для захвата во время записи", + "title": "Настройки Аудио" + }, + "filename-pattern": { + "description": "Шаблон имени файла с использованием кодов даты/времени (например, recording_yyyyMMdd_HHmmss)", + "label": "Шаблон имени файла" + }, + "general": { + "copy-to-clipboard": "Копировать в буфер обмена", + "copy-to-clipboard-description": "Скопировать файл в буфер обмена после завершения записи.", + "output-folder": "Папка вывода", + "output-folder-description": "Папка, в которую будут сохраняться записи экрана", + "restore-portal-session": "Восстановить сеанс портала", + "restore-portal-session-description": "Автоматически восстанавливать предыдущий сеанс портала для последующих записей (отключает запрос выбора)", + "show-cursor": "Показать курсор", + "show-cursor-description": "Записывать курсор мыши в видео", + "title": "Общие" + }, + "replay": { + "enable": "Включить буфер повтора", + "enable-desc": "Хранить скользящий буфер недавней активности экрана, который можно сохранить по требованию", + "duration": "Длительность повтора", + "duration-desc": "Длина буфера повтора в секундах", + "custom-duration": "Пользовательская длительность повтора", + "custom-duration-desc": "Введите пользовательскую длительность буфера повтора в секундах", + "storage": "Хранилище повтора", + "storage-desc": "Где хранить буфер повтора", + "storage-ram": "ОЗУ (рекомендуется)", + "storage-disk": "Диск" + }, + "title": "Настройки Записи Экрана", + "video": { + "codec": "Видеокодек", + "codec-desc": "h264 является наиболее распространенным кодеком", + "color-range": "Цветовой диапазон", + "color-range-desc": "Ограниченный рекомендуется для лучшей совместимости", + "color-range-full": "Полный", + "color-range-limited": "Ограниченный", + "frame-rate": "Частота кадров", + "frame-rate-custom": "Пользовательская", + "frame-rate-desc": "Целевая частота кадров для записи экрана", + "custom-frame-rate": "Пользовательская частота кадров", + "custom-frame-rate-desc": "Введите пользовательское значение частоты кадров (FPS)", + "quality": "Качество видео", + "quality-desc": "Более высокое качество приводит к большим размерам файлов", + "quality-high": "Высокий", + "quality-medium": "Средний", + "quality-ultra": "Ультра", + "quality-very-high": "Очень высокий", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Источник видео", + "source-desc": "Рекомендуется Portal, если появляются артефакты попробуйте Экран", + "sources-portal": "Портал", + "sources-screen": "Экран", + "title": "Настройки Видео", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/tr.json b/mx-screen-recorder/i18n/tr.json new file mode 100644 index 0000000..4303f5e --- /dev/null +++ b/mx-screen-recorder/i18n/tr.json @@ -0,0 +1,96 @@ +{ + "description": "Özelleştirilebilir video ve ses ayarlarıyla donanım hızlandırmalı ekran kaydı", + "messages": { + "failed-general": "Kaydedici bir hatayla çıktı.", + "failed-gpu": "gpu-screen-recorder beklenmedik şekilde çıktı.", + "failed-start": "Kayda başlama başarısız oldu.", + "no-portals": "Masaüstü portalları çalışmıyor.", + "no-portals-desc": "xdg-desktop-portal'ı ve bir compositor portalı başlat (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder kurulu değil.", + "not-installed-desc": "Ekran kaydı özelliklerini kullanmak için lütfen gpu-screen-recorder'ı kurun.", + "saved": "Kayıt kaydedildi.", + "start-recording": "Ekran kaydedici (kayda başla)", + "started": "Kayıt başladı.", + "stop-recording": "Ekran kaydedici (kaydı durdur)", + "stopping": "Kaydı durdurma…", + "monitor-not-found": "İmleç altındaki monitör algılanamadı.", + "replay-saved": "Tekrar kaydedildi.", + "replay-started": "Tekrar arabelleği başlatıldı.", + "replay-stopped": "Tekrar arabelleği durduruldu.", + "replay-failed": "Tekrar arabelleği başlatılamadı.", + "replay-active": "Ekran Kaydedici (tekrar etkin)", + "save-replay": "Tekrar arabelleğini kaydet", + "start-replay": "Tekrar arabelleğini başlat", + "stop-replay": "Tekrar arabelleğini durdur" + }, + "name": "Ekran Kaydedici", + "settings": { + "audio": { + "audio-sources-both": "Sistem çıktısı + mikrofon girişi", + "audio-sources-microphone-input": "Mikrofon girişi", + "audio-sources-none": "Ses yok", + "audio-sources-system-output": "Sistem çıktısı", + "codec": "Ses codec", + "codec-desc": "En iyi performans ve en küçük ses boyutu için Opus önerilir", + "source": "Ses kaynağı", + "source-desc": "Kayıt sırasında yakalanacak ses kaynağı", + "title": "Ses Ayarları" + }, + "filename-pattern": { + "description": "Tarih/saat kodları kullanan dosya adı deseni (ör. kayit_yyyyMMdd_HHmmss)", + "label": "Dosya adı deseni" + }, + "general": { + "copy-to-clipboard": "Panoya kopyala", + "copy-to-clipboard-description": "Kayıt bittikten sonra dosyayı panoya kopyala.", + "output-folder": "Çıktı klasörü", + "output-folder-description": "Ekran kayıtlarının kaydedileceği klasör", + "restore-portal-session": "Portal oturumunu geri yükle", + "restore-portal-session-description": "Sonraki kayıtlar için önceki portal oturumunu otomatik olarak geri yükle (seçim penceresini devre dışı bırakır)", + "show-cursor": "İmleci göster", + "show-cursor-description": "Videoda fare imlecini kaydet", + "title": "Genel" + }, + "replay": { + "enable": "Tekrar arabelleğini etkinleştir", + "enable-desc": "İsteğe bağlı olarak kaydedilebilen son ekran etkinliğinin döngüsel bir arabelleğini tutun", + "duration": "Tekrar süresi", + "duration-desc": "Saniye cinsinden tekrar arabelleğinin uzunluğu", + "custom-duration": "Özel tekrar süresi", + "custom-duration-desc": "Saniye cinsinden özel bir tekrar arabelleği süresi girin", + "storage": "Tekrar depolama", + "storage-desc": "Tekrar arabelleğinin nerede saklanacağı", + "storage-ram": "RAM (önerilir)", + "storage-disk": "Disk" + }, + "title": "Ekran Kaydedici Ayarları", + "video": { + "codec": "Video codec", + "codec-desc": "h264 en yaygın codec'tir", + "color-range": "Renk aralığı", + "color-range-desc": "Daha iyi uyumluluk için Sınırlı önerilir", + "color-range-full": "Tam", + "color-range-limited": "Sınırlı", + "frame-rate": "Kare hızı", + "frame-rate-custom": "Özel", + "frame-rate-desc": "Ekran kayıtları için hedef kare hızı", + "custom-frame-rate": "Özel kare hızı", + "custom-frame-rate-desc": "Özel bir kare hızı değeri girin (FPS)", + "quality": "Video kalitesi", + "quality-desc": "Daha yüksek kalite daha büyük dosya boyutlarına yol açar", + "quality-high": "Yüksek", + "quality-medium": "Orta", + "quality-ultra": "Ultra", + "quality-very-high": "Çok yüksek", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Video kaynağı", + "source-desc": "Portal önerilir, artefaktlar alırsanız Ekran'ı deneyin", + "sources-portal": "Portal", + "sources-screen": "Ekran", + "title": "Video Ayarları", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/uk-UA.json b/mx-screen-recorder/i18n/uk-UA.json new file mode 100644 index 0000000..71e04ce --- /dev/null +++ b/mx-screen-recorder/i18n/uk-UA.json @@ -0,0 +1,96 @@ +{ + "description": "Апаратно-прискорений запис екрану з налаштовуваними параметрами відео та аудіо", + "messages": { + "failed-general": "Рекордер завершив роботу з помилкою.", + "failed-gpu": "gpu-screen-recorder несподівано завершив роботу.", + "failed-start": "Не вдалося почати запис.", + "no-portals": "Настільні портали не працюють.", + "no-portals-desc": "Запустити xdg-desktop-portal та портал композитора (wlr/hyprland/gnome/kde).", + "not-installed": "gpu-screen-recorder не встановлено.", + "not-installed-desc": "Будь ласка, встановіть gpu-screen-recorder, щоб використовувати функції запису екрана.", + "saved": "Запис збережено.", + "start-recording": "Запис екрана (почати запис)", + "started": "Запис розпочато.", + "stop-recording": "Запис екрана (зупинити запис)", + "stopping": "Зупинка запису…", + "monitor-not-found": "Не вдалося виявити монітор під курсором.", + "replay-saved": "Повтор збережено.", + "replay-started": "Буфер повтору запущено.", + "replay-stopped": "Буфер повтору зупинено.", + "replay-failed": "Не вдалося запустити буфер повтору.", + "replay-active": "Запис екрана (повтор активний)", + "save-replay": "Зберегти буфер повтору", + "start-replay": "Запустити буфер повтору", + "stop-replay": "Зупинити буфер повтору" + }, + "name": "Записувач Екрану", + "settings": { + "audio": { + "audio-sources-both": "Вивід системи + вхід мікрофона", + "audio-sources-microphone-input": "Мікрофонний вхід", + "audio-sources-none": "Немає аудіо", + "audio-sources-system-output": "Вивід системи", + "codec": "Аудіокодек", + "codec-desc": "Opus рекомендується для найкращої продуктивності та найменшого розміру аудіо", + "source": "Джерело аудіо", + "source-desc": "Джерело аудіо для захоплення під час запису", + "title": "Налаштування Аудіо" + }, + "filename-pattern": { + "description": "Шаблон імені файлу з використанням кодів дати/часу (наприклад, recording_yyyyMMdd_HHmmss)", + "label": "Шаблон імені файлу" + }, + "general": { + "copy-to-clipboard": "Копіювати до буфера обміну", + "copy-to-clipboard-description": "Копіювати файл у буфер обміну після завершення запису.", + "output-folder": "Папка виводу", + "output-folder-description": "Папка, у якій будуть зберігатися записи екрана", + "restore-portal-session": "Відновити сеанс порталу", + "restore-portal-session-description": "Автоматично відновлювати попередній сеанс порталу для наступних записів (вимикає запит вибору)", + "show-cursor": "Показати курсор", + "show-cursor-description": "Записувати курсор миші у відео", + "title": "Загальні" + }, + "replay": { + "enable": "Увімкнути буфер повтору", + "enable-desc": "Зберігати циклічний буфер останньої активності екрана, який можна зберегти на вимогу", + "duration": "Тривалість повтору", + "duration-desc": "Довжина буфера повтору в секундах", + "custom-duration": "Своя тривалість повтору", + "custom-duration-desc": "Введіть власну тривалість буфера повтору в секундах", + "storage": "Сховище повтору", + "storage-desc": "Де зберігати буфер повтору", + "storage-ram": "ОЗП (рекомендовано)", + "storage-disk": "Диск" + }, + "title": "Налаштування Записувача Екрану", + "video": { + "codec": "Відеокодек", + "codec-desc": "h264 є найпоширенішим кодеком", + "color-range": "Кольоровий діапазон", + "color-range-desc": "Обмежений рекомендується для кращої сумісності", + "color-range-full": "Повний", + "color-range-limited": "Обмежений", + "frame-rate": "Частота кадрів", + "frame-rate-custom": "Користувацька", + "frame-rate-desc": "Цільова частота кадрів для запису екрану", + "custom-frame-rate": "Користувацька частота кадрів", + "custom-frame-rate-desc": "Введіть користувацьке значення частоти кадрів (FPS)", + "quality": "Якість відео", + "quality-desc": "Вища якість призводить до більших розмірів файлів", + "quality-high": "Високий", + "quality-medium": "Середній", + "quality-ultra": "Ультра", + "quality-very-high": "Дуже високий", + "resolution": "Resolution", + "resolution-desc": "Limit output resolution. Default uses original screen resolution", + "resolution-original": "Default", + "source": "Джерело відео", + "source-desc": "Рекомендується Portal, якщо з'являються артефакти спробуйте Екран", + "sources-portal": "Портал", + "sources-screen": "Екран", + "title": "Налаштування Відео", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/i18n/vi.json b/mx-screen-recorder/i18n/vi.json new file mode 100644 index 0000000..7f64828 --- /dev/null +++ b/mx-screen-recorder/i18n/vi.json @@ -0,0 +1,99 @@ +{ + "description": "Ghi màn hình bằng phần cứng với các tùy chỉnh video và âm thanh", + "messages": { + "failed-general": "Trình ghi đã thoát với lỗi.", + "failed-gpu": "gpu-screen-recorder đã thoát bất ngờ.", + "failed-start": "Không thể bắt đầu ghi.", + "no-portals": "Desktop portal chưa chạy.", + "no-portals-desc": "Hãy khởi động xdg-desktop-portal và portal compositor (wlr/hyprland/gnome/kde).", + "not-installed": "Chưa cài đặt gpu-screen-recorder.", + "not-installed-desc": "Vui lòng cài đặt gpu-screen-recorder để sử dụng tính năng ghi màn hình.", + "saved": "Đã lưu bản ghi.", + "start-recording": "Trình ghi màn hình (bắt đầu ghi)", + "started": "Đã bắt đầu ghi.", + "stop-recording": "Trình ghi màn hình (dừng ghi)", + "stopping": "Đang dừng ghi…", + "open-file": "Mở tệp", + "monitor-not-found": "Không thể xác định màn hình dưới con trỏ.", + "replay-saved": "Đã lưu replay.", + "replay-started": "Đã bắt đầu bộ đệm replay.", + "replay-stopped": "Đã dừng bộ đệm replay.", + "replay-failed": "Không thể bắt đầu bộ đệm replay.", + "replay-active": "Trình ghi màn hình (replay đang hoạt động)", + "save-replay": "Lưu bộ đệm replay", + "start-replay": "Bắt đầu bộ đệm replay", + "stop-replay": "Dừng bộ đệm replay" + }, + "name": "Trình ghi màn hình", + "settings": { + "audio": { + "audio-sources-both": "Âm thanh hệ thống + micro", + "audio-sources-microphone-input": "Micro", + "audio-sources-none": "Không có âm thanh", + "audio-sources-system-output": "Âm thanh hệ thống", + "codec": "Codec âm thanh", + "codec-desc": "Khuyến nghị dùng Opus để có hiệu năng tốt và kích thước nhỏ", + "source": "Nguồn âm thanh", + "source-desc": "Nguồn âm thanh sẽ được ghi", + "title": "Cài đặt âm thanh" + }, + "filename-pattern": { + "description": "Mẫu tên tệp sử dụng định dạng ngày giờ (ví dụ: recording_yyyyMMdd_HHmmss)", + "label": "Mẫu tên tệp" + }, + "general": { + "copy-to-clipboard": "Sao chép vào clipboard", + "copy-to-clipboard-description": "Sao chép tệp vào clipboard sau khi ghi xong.", + "hide-when-inactive": "Ẩn khi không hoạt động", + "hide-when-inactive-description": "Ẩn chỉ báo trên thanh khi không ghi", + "output-folder": "Thư mục lưu", + "output-folder-description": "Thư mục lưu các bản ghi màn hình", + "restore-portal-session": "Khôi phục phiên portal", + "restore-portal-session-description": "Tự động khôi phục phiên portal trước đó cho lần ghi tiếp theo (tắt hộp thoại chọn)", + "show-cursor": "Hiển thị con trỏ", + "show-cursor-description": "Ghi lại con trỏ chuột trong video", + "title": "Chung" + }, + "replay": { + "enable": "Bật replay buffer", + "enable-desc": "Lưu tạm hoạt động màn hình gần đây để có thể lưu lại khi cần", + "duration": "Thời lượng replay", + "duration-desc": "Độ dài bộ đệm replay tính bằng giây", + "custom-duration": "Thời lượng tùy chỉnh", + "custom-duration-desc": "Nhập thời lượng replay tùy chỉnh (giây)", + "storage": "Lưu trữ replay", + "storage-desc": "Nơi lưu bộ đệm replay", + "storage-ram": "RAM (khuyến nghị)", + "storage-disk": "Đĩa" + }, + "title": "Cài đặt trình ghi màn hình", + "video": { + "codec": "Codec video", + "codec-desc": "h264 là codec phổ biến nhất", + "color-range": "Dải màu", + "color-range-desc": "Khuyến nghị dùng Limited để tương thích tốt hơn", + "color-range-full": "Đầy đủ", + "color-range-limited": "Giới hạn", + "frame-rate": "Tốc độ khung hình", + "frame-rate-custom": "Tùy chỉnh", + "frame-rate-desc": "Tốc độ khung hình mục tiêu khi ghi", + "custom-frame-rate": "Tốc độ khung hình tùy chỉnh", + "custom-frame-rate-desc": "Nhập giá trị FPS tùy chỉnh", + "quality": "Chất lượng video", + "quality-desc": "Chất lượng cao hơn sẽ tạo tệp lớn hơn", + "quality-high": "Cao", + "quality-medium": "Trung bình", + "quality-ultra": "Siêu cao", + "quality-very-high": "Rất cao", + "resolution": "Độ phân giải", + "resolution-desc": "Giới hạn độ phân giải đầu ra. Mặc định dùng độ phân giải gốc", + "resolution-original": "Mặc định", + "source": "Nguồn video", + "source-desc": "Khuyến nghị dùng Portal, nếu lỗi hiển thị thì thử Screen", + "sources-portal": "Portal", + "sources-screen": "Màn hình", + "sources-focused-monitor": "Màn hình đang focus (Hyprland)", + "title": "Cài đặt video" + } + } +} diff --git a/mx-screen-recorder/i18n/zh-CN.json b/mx-screen-recorder/i18n/zh-CN.json new file mode 100644 index 0000000..0d6ad73 --- /dev/null +++ b/mx-screen-recorder/i18n/zh-CN.json @@ -0,0 +1,99 @@ +{ + "description": "具有可自定义视频和音频设置的硬件加速屏幕录制", + "messages": { + "failed-general": "录制器出错退出。", + "failed-gpu": "gpu-screen-recorder 意外退出。", + "failed-start": "无法开始录制。", + "no-portals": "桌面门户未运行。", + "no-portals-desc": "启动 xdg-desktop-portal 和一个合成器门户 (wlr/hyprland/gnome/kde)。", + "not-installed": "gpu-screen-recorder 未安装。", + "not-installed-desc": "请安装 gpu-screen-recorder 以使用屏幕录制功能。", + "saved": "已保存录像。", + "start-recording": "屏幕录像(开始录制)", + "started": "已开始录制。", + "stop-recording": "屏幕录像(停止录制)", + "stopping": "停止录制…", + "open-file": "打开文件", + "monitor-not-found": "无法检测到光标下的显示器。", + "replay-saved": "回放已保存。", + "replay-started": "回放缓冲已启动。", + "replay-stopped": "回放缓冲已停止。", + "replay-failed": "启动回放缓冲失败。", + "replay-active": "屏幕录像机(回放活动中)", + "save-replay": "保存回放缓冲", + "start-replay": "启动回放缓冲", + "stop-replay": "停止回放缓冲" + }, + "name": "屏幕录制器", + "settings": { + "audio": { + "audio-sources-both": "系统输出 + 麦克风输入", + "audio-sources-microphone-input": "麦克风输入", + "audio-sources-none": "无音频", + "audio-sources-system-output": "系统输出", + "codec": "音频编解码器", + "codec-desc": "建议使用 Opus 以获得最佳性能和最小音频大小", + "source": "音频源", + "source-desc": "录制期间要捕获的音频源", + "title": "音频设置" + }, + "filename-pattern": { + "description": "使用日期/时间代码的文件名模式 (例如,recording_yyyyMMdd_HHmmss)", + "label": "文件名模式" + }, + "general": { + "copy-to-clipboard": "复制到剪贴板", + "copy-to-clipboard-description": "录制结束后将文件复制到剪贴板。", + "output-folder": "输出文件夹", + "output-folder-description": "屏幕录像保存的文件夹", + "restore-portal-session": "恢复门户会话", + "restore-portal-session-description": "自动恢复之前的门户会话以用于后续录制(禁用选择提示)", + "show-cursor": "显示光标", + "show-cursor-description": "在视频中录制鼠标光标", + "hide-when-inactive": "非活动时隐藏", + "hide-when-inactive-description": "未录制时隐藏栏指示器", + "title": "常规" + }, + "replay": { + "enable": "启用回放缓冲", + "enable-desc": "保持最近屏幕活动的滚动缓冲,可根据需要保存", + "duration": "回放时长", + "duration-desc": "回放缓冲的长度(秒)", + "custom-duration": "自定义回放时长", + "custom-duration-desc": "输入自定义回放缓冲时长(秒)", + "storage": "回放存储", + "storage-desc": "回放缓冲存储位置", + "storage-ram": "内存 (推荐)", + "storage-disk": "磁盘" + }, + "title": "屏幕录制器设置", + "video": { + "codec": "视频编解码器", + "codec-desc": "h264 是最常见的编解码器", + "color-range": "色彩范围", + "color-range-desc": "建议使用“有限”以获得更好的兼容性", + "color-range-full": "全范围", + "color-range-limited": "有限", + "frame-rate": "帧率", + "frame-rate-custom": "自定义", + "frame-rate-desc": "屏幕录制的目标帧率", + "custom-frame-rate": "自定义帧率", + "custom-frame-rate-desc": "输入自定义帧率值(FPS)", + "quality": "视频质量", + "quality-desc": "更高的质量会导致更大的文件大小", + "quality-high": "高", + "quality-medium": "中等", + "quality-ultra": "极高", + "quality-very-high": "非常高", + "resolution": "分辨率", + "resolution-desc": "限制输出分辨率。默认使用原始屏幕分辨率", + "resolution-original": "默认", + "source": "视频源", + "source-desc": "推荐使用桌面门户 (Portal),如果出现画面异常请尝试屏幕", + "sources-portal": "桌面门户", + "sources-screen": "屏幕", + "title": "视频设置", + "sources-focused-monitor": "Focused monitor (Hyprland)" + } + } +} diff --git a/mx-screen-recorder/manifest.json b/mx-screen-recorder/manifest.json new file mode 100644 index 0000000..4d03e31 --- /dev/null +++ b/mx-screen-recorder/manifest.json @@ -0,0 +1,47 @@ +{ + "id": "mx-screen-recorder", + "name": "Screen Recorder (mx)", + "version": "1.3.7", + "minNoctaliaVersion": "3.6.0", + "author": "mx (fork of Noctalia Team screen-recorder)", + "official": false, + "license": "MIT", + "repository": "https://github.com/noctalia-dev/noctalia-plugins", + "description": "Fork of the Noctalia screen-recorder plugin: always captures DP-5, replay autostarts, right-click-only controls", + "tags": [ + "Bar", + "Utility" + ], + "entryPoints": { + "main": "Main.qml", + "barWidget": "BarWidget.qml", + "controlCenterWidget": "ControlCenterWidget.qml", + "settings": "Settings.qml" + }, + "dependencies": { + "plugins": [] + }, + "metadata": { + "defaultSettings": { + "hideInactive": false, + "iconColor": "primary", + "directory": "", + "filenamePattern": "recording_yyyyMMdd_HHmmss", + "frameRate": "60", + "audioCodec": "opus", + "videoCodec": "h264", + "quality": "very_high", + "colorRange": "limited", + "showCursor": true, + "copyToClipboard": false, + "audioSource": "default_output", + "videoSource": "DP-5", + "resolution": "2560x1440", + "replayEnabled": true, + "replayDuration": "120", + "customReplayDuration": "30", + "replayStorage": "ram", + "restorePortalSession": false + } + } +} diff --git a/mx-screen-recorder/preview.png b/mx-screen-recorder/preview.png new file mode 100644 index 0000000..cfc3b20 Binary files /dev/null and b/mx-screen-recorder/preview.png differ