Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. #DISPLAY=:0
  4. SIZE="1024x700"
  5. SCREEN_HEIGHT=`xrandr -q | grep '*' | head -1 | grep -o 'x[0-9]\+' | grep -o '[0-9]\+'`
  6. if [ "$SCREEN_HEIGHT" = "1024" ]; then
  7. SIZE="1280x1000"
  8. fi
  9. Xephyr -screen "$SIZE" :1 &
  10. sleep 3
  11. export DISPLAY=":1.0"
  12. fvwm &
  13. (DISPLAY=":1.0" sleep 5 && script -c matlab /dev/null ) &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement