This is a simple script to extend your phone as a external monitor. Make sure you have the following apps installed
- x11vnc
- Android Debug Bridge (Optional)
Download the script files that you want then copy the file to /usr/local/bin
or your preferred location.
Then make the script executable by using chmod
chmod +x extend-monitor-right.sh
chmod +x extend-monitor-right-adb.sh
Make sure you have the script location in your path for your shell to gloablly access the script.
For full post refer to my medium Post.