mirrored 16 minutes ago
0
tsuky_chenminor fix 2f87aae
{
  "id": "3ef2b351-8a84-4ff2-8724-d86eae9b842e",
  "snapshot": "libreoffice_writer",
  "instruction": "Help me center align the heading in LibreOffice.",
  "source": "https://askubuntu.com/questions/1066351/how-do-you-center-align-in-libreoffice#:~:text=Ctrl%20%2B%20e%20will%20Center%20align%20the%20cursor%20for%20you.",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://drive.usercontent.google.com/download?id=1P8QodvDF-3S50rx6UmW4M2D4Kr-p_Q-h&export=download&authuser=0&confirm=t&uuid=eea70a33-4c3f-4e90-885d-dd3df0d605bc&at=APZUnTX7ISvBhOICNrPLoqK0m3G-:1704971931660",
            "path": "/home/user/Desktop/Constitution_Template_With_Guidelines.docx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "/home/user/Desktop/Constitution_Template_With_Guidelines.docx"
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "libreoffice_writer"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Constitution_Template_With_Guidelines.docx - LibreOffice Writer",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5); "
          ]
        }
      }
    ],
    "func": "is_first_line_centered",
    "result": {
      "type": "vm_file",
      "path": "/home/user/Desktop/Constitution_Template_With_Guidelines.docx",
      "dest": "Constitution_Template_With_Guidelines.docx"
    }
  }
}