Skip to content

Instantly share code, notes, and snippets.

@gmcabrita
Created November 3, 2023 09:28
Show Gist options
  • Save gmcabrita/77135087c5f4c02440c8102824ddf1a0 to your computer and use it in GitHub Desktop.
Save gmcabrita/77135087c5f4c02440c8102824ddf1a0 to your computer and use it in GitHub Desktop.
waydroid weston
#!/bin/bash
if [ "$(systemctl is-active waydroid-container.service)" == 'active' ];then
killall -9 weston
sudo systemctl stop waydroid-container.service
exit
fi
killall -9 weston
sudo systemctl restart waydroid-container.service
if [ -z "$(pgrep weston)" ]; then
weston --xwayland &> /dev/null &
fi
sleep 2 &&
export XDG_SESSION_TYPE='wayland'
export DISPLAY=':1'
/usr/bin/waydroid show-full-ui &
while [ -n "$(pgrep weston)" ];do
sleep 1
done
sudo systemctl stop waydroid-container.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment