Skip to content

KSMaan45/waywes

Repository files navigation

waywes

waywes is a script made to ease the launch process of Waydroid in X11 by using Weston compositor with different window modes like fullscreen, windowed and mobile portrait.

Requirements

  • waydroid
  • weston
  • git

Install

  1. Clone the repo
git clone https://github.com/KSMaan45/waywes.git
  1. Change directory
cd waywes
  1. Make script executable
chmod +x waywes.sh
  1. Execute script
./waywes.sh

Launch from anywhere

Method 1.

With shell

alias waywes='/path/to/waywes.sh'

add above line in your default shell config file such as .bashrc for bash or .zshrc for zsh, restart your shell and now you can start script with just waywes from any directory

Method 2.

With $PATH directory

cp /path/to/waywes.sh $HOME/.local/bin

after copying to $HOME/.local/bin you can just run waywes.sh from any directory

Usage

Options Description
1 Start waydroid in 1366x768 resolution in fullscreen
2 Start waydroid in 1920x1080 resolution in fullscreen
3 Start waydroid with Edge to Edge width in windowed mode recommended for 720p display
4 Start waydroid with Edge to Edge width in windowed mode recommended for 1080p display
5 Start waydroid in tablet mode suitable for HD 720p display
6 Start waydroid in tablet mode suitable for Full HD 1080p display
7 Useful when some app force to be in portrait and look tilted or you just want to run waydroid like mobile recommended for HD 720p display
8 Useful when some app force to be in portrait and look tilted or you just want to run waydroid like mobile recommended for Full HD 1080p display
9 Custom resolution like 1280x720 just input in WIDTHxHEIGHT fields and type 1 for fullscreen or 0 for normal window

Add your own resolution

Since i can not add all the resolutions but the one widely used and tested by me are added in the script, if you want to add your own edit waywes.sh with any text editor and make changes to such as 1) RES="1366x768" FS="--fullscreen" ;; with your desire resolution, Example for 2560x1440 resolution it will be like 1) RES="2560x1440" FS="--fullscreen" ;; if you don't need fullscreen keep as FS="" also make changes in select resolution echo block accordingly.

Screenshots

Fullscreen

Windowed E2E

Tablet Mode

Mobile Portrait

Custom

About

Script to run waydroid inside weston compositor with different modes like windowed, fullscreen and mobile portrait

Resources

License

Stars

34 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages