Skip to content

Instantly share code, notes, and snippets.

@tonybenoy
Created December 19, 2023 18:41
Show Gist options
  • Select an option

  • Save tonybenoy/16891c09125fecd5afd72a1d4a3d12d2 to your computer and use it in GitHub Desktop.

Select an option

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.
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