I use the following script to check Compositor on Bookworm.
I don't use x11. and haven't for ages, but if neither you could probably assume X11
Code:
#! /bin/sh# Check Desktop Compositorcheckcompositor () {RES=$(ps axc | grep -w $1)if [ -n "$RES" ]; thenecho $1 'Active'fi}checkcompositor 'labwc'checkcompositor 'wayland'Statistics: Posted by Milliways — Fri Jan 31, 2025 2:44 am