install_suckless_tools.sh 784 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. cloneRepo() {
  7. mkdir -p ~/aur
  8. cd ~/aur || return
  9. if [ ! -d "$1" ]; then
  10. git clone https://aur.archlinux.org/"$1".git
  11. cd "$1" || return
  12. else
  13. cd "$1" || return
  14. git pull
  15. fi
  16. }
  17. cloneRepo slstatus-git
  18. makepkg -sic --noconfirm --skipinteg
  19. #cloneRepo surf
  20. #makepkg -sic --noconfirm --skipinteg
  21. cloneRepo st
  22. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/arch/aur/st/config.def.h"
  23. makepkg -sic --noconfirm --skipinteg
  24. #cloneRepo dwm
  25. #curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/arch/aur/dwm/config.h"
  26. #makepkg -sic --noconfirm --skipinteg
  27. cloneRepo cwm
  28. makepkg -sic --noconfirm --skipinteg
  29. cd || return
  30. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/arch/.cwmrc"