#!/usr/bin/env bash

. ~/scripts/activate_ve 've'

op_script=$HOME/tmp_results/shells/python_return_command.sh
if [ -f "$op_script" ]; then
  rm $op_script
fi


{
  chafa "$HOME/code/machineconfig/assets/aafire.webp" --speed 1 --duration 1 --symbols ascii
} || {
  echo "An error occurred while executing the script."
}

# timeout 0.5s aafire  #  -driver slang
# clear

# python $(dirname $(dirname $0))/python/fire_jobs.py "$@"
python -m machineconfig.scripts.python.fire_jobs "$@"

if [ -f "$op_script" ]; then
  chmod +x $op_script
  set --  # clear all positional parameters
  source $op_script  # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it contains activate_ve and it doesn't understand first.sh arguments.
fi


deactivate || true

