Files
glassMxrph-plugins/mx-screen-recorder/README.md
T
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

5.2 KiB

mx fork of the Noctalia screen-recorder 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.

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:

    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:

# 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:

# 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:

# 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