-
-
Notifications
You must be signed in to change notification settings - Fork 581
Description
Hello!
I usually switch from X11 to Wayland and from Wayland to X11. I often use @federico-terzi's Espanso. The problem is that I had to install two versions of Espanso, one designed for X11, another for Wayland.
I use Espanso-X11.AppImage when I switch to X11, and use /usr/bin/espanso compiled and built from a source without X11 when I switch to Wayland, the concern is that, I will always receive an inconvenient Espanso advice about incompatibility when I switch to a different graphic environment because of espanso.service that points to /usr/bin/espanso. I had to use espanso service start --unmanaged.
Imagine that I am switching to i3 that is an X11 window manager or to Sway that is a Wayland window manager, and writing the following code to the i3/Sway config file or on a global Bash/ZSH file):
VERIFY_ENVIRONMENT=$(echo $XDG_SESSION_TYPE)
if [[ $VERIFY_ENVIRONMENT == "x11"]]; then
~/Apps/Espanso-X11.AppImage
espanso service start --unmanaged
else
~/Apps/Espanso-Wayland.AppImage
espanso service start --unmanaged
fiIs it possible?