Skip to content

Instantly share code, notes, and snippets.

@stecman
Last active April 15, 2026 06:22
Show Gist options
  • Select an option

  • Save stecman/b475c7334f23a7d86fd892ed73a8b8d4 to your computer and use it in GitHub Desktop.

Select an option

Save stecman/b475c7334f23a7d86fd892ed73a8b8d4 to your computer and use it in GitHub Desktop.
Screen recording on Sway under Wayland Ubuntu 24.04

Screen recording in Sway (and other Wayland compositors)

Some notes on screen recording in Wayland / Sway on Ubuntu as I had issues getting a good result. This was using a machine with Intel Arc graphics.

Setup

Install wf-recorder:

sudo apt-get install wf-recorder 

Record a whole display

This records fullscreen of output eDP-1 at 30Hz without wierd or broken colours:

wf-recorder --output eDP-1 --buffrate 60 -r 30 -c h264_vaapi -d /dev/dri/renderD128 -p color_range=2 -f ~/Videos/screen-recording-$(date '+%s').mov

The extra arguments fix the recording being too low contrast / washed-out (borrowed from this issue)

To find your outputs use swaymsg -t get_outputs or something like wdisplays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment