FXMode which captures the screen and maps zones in it to LED strips.
In theory, everything supported by MSS should work. I only tested Linux wih X11 though.
Since this comes as a submodule for ImmersiveFX already, follow the installation steps over there to get it working. ^^
additionally to the config done in the ImmersiveFX README, the following keys can be set in config.json:
screenfx_presetcan be eitherlow,mediumorhigh. Higher values capture more area but are more expensive to calculate. Defaults tomedium. Only affects the provided cutouts below.screenfx_monitorpre-define used monitor for mss. Available options are shown at startup for selection if not or wrongly set. The expected value is 0 or bigger.screenfx_video_devicepre-define video device. Available options are shown at startup for selection if not or wrongly set. The expected value is 0 or bigger.
Additionally per device object, the following key must be set:
cutoutthe area of the screen mapped to the device, can be one of the following:left,right,bottom,top, which represent the according screen border.
ScreenFX (Video Capture) can be used to process Wayland screens. This needs some preparation though:
- install
v4l2loopback. The package name for Arch Linux isv4l2loopback-dkms - run
sudo modprobe v4l2loopback- hint: to persist it, create a file
/etc/modules-load.d/v4l2loopback.confwith the contentv4l2loopback
- hint: to persist it, create a file
- install
obs-studioand run it - You should be able to add a capture source named something like
Screen Capture (PipeWire) - (optional) In the bottom right corner under Settings > Video, you can scale down the output resolution which can greatly improve performance
- In the bottom left corner you can start the virtual webcam which is then available to ScreenFX (Video Device)