The latest Mir development version has support for the Wayland extensions used by screenshotting tools like grim. These need to be enabled in the egmde configuration:
At the time of writing, the waybar version packaged in the egmde snap comes from the 20.04 archive and fails to run on 22.04. This isn’t hard to work around:
install the current version of waybar sudo apt install waybar
change the shell-components line in ~/.config/egmde.config to use waybar directly, not waybar.launcher sed -i s#/snap/egmde/current/bin/waybar.launcher#waybar# ~/.config/egmde.config
swaybg
I wanted to use the recent image of Sgt A* as a background. This also needed a bit of workaround.
Set the swaybg.image line in in ~/.config/egmde.config to: swaybg.image=/home/alan/Downloads/eso2208-eht-mwa.jpg
If you log into egmde with this configuration the image will be stretched to fit your screen. I didn’t want this, but the launch script didn’t all me to change that. So…
Copy the launch script from to your personal bin directory (I assume you already have a ~/bin) cp /snap/egmde/current/bin/swaybg.launcher ~/bin
Edit this to add -m fit to the end of the line starting GDK_BACKEND.
Change the shell-components line in ~/.config/egmde.config to my swaybg.launcher sed -i s#/snap/egmde/current/bin/swaybg.launcher#swaybg.launcher# ~/.config/egmde.config
Mir 2.8
Mir 2.8 (currently in testing and on the egmde beta channel) supports some new features.
To use these before the 2.8 release of Mir update egmde: snap refresh --beta egmde
Enabling screenshotting with, for example grim
Install grim sudo apt install grim
Enable the necessary Wayland extensions: echo add-wayland-extensions=zwlr_screencopy_manager_v1:zxdg_output_manager_v1 >> ~/.config/egmde.config
Now you can take a screenshot with grim screenshot.png
Changing the “Mir on X” window title
Supply the title echo x11-window-title=egmde >> ~/.config/egmde.config
Turning off the screen after a timeout
Supply the timeout echo idle-timeout=600 >> ~/.config/egmde.config