🔧 Where my dotfiles lives in harmony and peace, most of the time

✨ Add config.toml for Codex settings and improve yt2srt script argument validation

+13 -3
+9
codex/config.toml
··· 1 + model_reasoning_effort = "high" 2 + notify = ["notify-send", "-a", "Codex", "Task Completed"] 3 + 4 + [projects."/home/david/projects/dotfiles"] 5 + trust_level = "trusted" 6 + 7 + [tools] 8 + # Enable web search tool (expects a boolean, not a table) 9 + web_search = true
+4 -3
scripts/yt2srt
··· 1 1 #!/usr/bin/env bash 2 - set -euo pipefail 2 + set -e -o pipefail 3 3 4 - # Check if URL argument is provided 5 - if [ -z "$1" ]; then 4 + # Check if URL argument is provided before enabling set -u 5 + if [[ $# -eq 0 ]]; then 6 6 echo "Usage: yt2srt <youtube-url>" 7 7 exit 1 8 8 fi 9 9 10 + set -u 10 11 url="$1" 11 12 12 13 # Fetch subtitles and process them