Advertisement
Guest User

Untitled

a guest
Oct 13th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. set -vx
  3. if [ $# == 1 ]
  4. then
  5. if [ "$1" == "full" ]
  6. then
  7. curl -v -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"videoscreen.resolution","value":16},"id":1}' http://localhost:8080/jsonrpc
  8. else
  9. curl -v -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"videoscreen.resolution","value":15},"id":1}' http://localhost:8080/jsonrpc
  10. fi
  11. else
  12. echo "usage: $0 <full|win>"
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement