dwm/patch

12 lines
329 B
Plaintext
Raw Normal View History

2024-09-01 13:41:17 -07:00
#!/bin/bash
2024-09-01 20:03:47 -07:00
order=("dwm-cursorwarp" "dwm-fullgaps" "dwm-torus")
2024-09-01 13:41:17 -07:00
for patch in ${order[@]}; do
patch_file=$(ls patches | grep $patch)
echo "applying patch $patch_file..."
2024-09-01 20:03:47 -07:00
git apply "patches/$patch_file" || patch < "patches/$patch_file" || echo "failed to patch $patch_file. it may've already been applied!"
2024-09-01 13:41:17 -07:00
done
2024-09-01 20:03:47 -07:00
rm *.orig