Files
noctalia-shell/Bin/dev/qmlfmt.sh
2025-10-16 13:36:44 -07:00

9 lines
284 B
Bash
Executable File

#!/usr/bin/env -S bash
# Uses: https://github.com/jesperhh/qmlfmt
# Can be installed from AUR "qmlfmt-git"
# Requires qt6-5compat
echo "Formatting $(find . -name "*.qml" | wc -l) files..."
find . -name "*.qml" -print0 | xargs -0 -P "$(nproc)" -I {} qmlfmt -e -b 360 -t 2 -i 2 -w {}