Created
December 19, 2023 18:41
-
-
Save tonybenoy/16891c09125fecd5afd72a1d4a3d12d2 to your computer and use it in GitHub Desktop.
A simple script that uses Weylus to create a nother virtual monitor and use it as a second screen from linux. Requires Weylus and nohup.
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
| xrandr --newmode $(gtf 1920 1080 60 | grep -o '"1920x1080_60.00" .*' | sed 's/^\(.*\)"\(.*\)" \(.*\)$/\2 \1 \3/') && xrandr --addmode VIRTUAL1 "1920x1080_60.00" && xrandr --output VIRTUAL1 --mode "1920x1080_60.00" | |
| nohup weylus --no-gui & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment