66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
{
|
|
"id": "b148e375-fe0b-4bec-90e7-38632b0d73c2",
|
|
"snapshot": "gimp",
|
|
"instruction": "Could you assist me in adding a new layer and naming it 'Square'?",
|
|
"source": "https://www.quora.com/How-do-I-add-layers-in-GIMP",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?export=download&id=1CqcNw_8O0VeLuD0VkVTgDHOoUMFQNOXN",
|
|
"path": "/home/user/Desktop/white_background.xcf"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"gimp",
|
|
"/home/user/Desktop/white_background.xcf"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"gimp"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey([\"ctrl\", \"q\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "check_config_status",
|
|
"expected": {
|
|
"type": "rule",
|
|
"rules": {
|
|
"type:": "key-value",
|
|
"key": "layer-new-name",
|
|
"value": "\"Square\""
|
|
}
|
|
},
|
|
"result": {
|
|
"type": "gimp_config_file",
|
|
"file_name": "gimprc",
|
|
"dest": "gimprc"
|
|
}
|
|
}
|
|
} |