Created
November 3, 2023 09:28
-
-
Save gmcabrita/77135087c5f4c02440c8102824ddf1a0 to your computer and use it in GitHub Desktop.
waydroid weston
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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