Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -vx
- if [ $# == 1 ]
- then
- if [ "$1" == "full" ]
- then
- 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
- else
- 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
- fi
- else
- echo "usage: $0 <full|win>"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement