Files
mxandClaude Opus 5.5 30e98bac63 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 <noreply@anthropic.com>
2026-10-11 15:17:57 +02:00

23 lines
772 B
QML

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();
}
}
}