Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
3.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/bash
  2. # Install packages
  3. echo "Running update"
  4. sudo pacman -Syu
  5. sudo pacman --noconfirm --needed -S $(cat ~/.dotfiles/chroot/nonAUR.txt)
  6. yay -S --noconfirm --needed $(cat ~/.dotfiles/chroot/AUR.txt)
  7. # Initial cleanup
  8. echo "Backing up your previous dotfiles to ~/.dotfiles_backup"
  9. mkdir -p ~/.local/share
  10. mkdir -p ~/.dotfiles_backup
  11. mkdir -p ~/.config
  12. mkdir -p ~/.dotfiles_backup/.config
  13. rsync --remove-source-files -avzh --ignore-errors \
  14. ~/.completions \
  15. ~/.aliases \
  16. ~/.cmds \
  17. ~/.zshrc \
  18. ~/.Xresources \
  19. ~/.xmodmap \
  20. ~/.xinitrc \
  21. ~/.tmux.conf \
  22. ~/.surf \
  23. ~/.scripts \
  24. ~/.keyboard \
  25. ~/.fzf.zsh \
  26. ~/.themes \
  27. ~/.vim \
  28. ~/.vimrc \
  29. ~/.dotfiles_backup
  30. rsync --remove-source-files -avzh --ignore-errors \
  31. ~/.config/htop \
  32. ~/.config/.profile \
  33. ~/.config/systemd \
  34. ~/.config/termite \
  35. ~/.config/zathura \
  36. ~/.config/dunst \
  37. ~/.config/gtk-4.0 \
  38. ~/.config/gtk-3.0 \
  39. ~/.config/gtk-2.0 \
  40. ~/.config/antibody \
  41. ~/.config/suckless \
  42. ~/.dotfiles_backup/.config
  43. rm -rf \
  44. ~/.completions \
  45. ~/.aliases \
  46. ~/.cmds \
  47. ~/.zshrc \
  48. ~/.Xresources \
  49. ~/.xmodmap \
  50. ~/.xinitrc \
  51. ~/.tmux.conf \
  52. ~/.surf \
  53. ~/.scripts \
  54. ~/.keyboard \
  55. ~/.fzf.zsh \
  56. ~/.themes \
  57. ~/.vim \
  58. ~/.vimrc \
  59. ~/.config/htop \
  60. ~/.config/.profile \
  61. ~/.config/systemd \
  62. ~/.config/termite \
  63. ~/.config/zathura \
  64. ~/.config/dunst \
  65. ~/.config/gtk-4.0 \
  66. ~/.config/gtk-3.0 \
  67. ~/.config/gtk-2.0 \
  68. ~/.config/antibody \
  69. ~/.config/suckless
  70. # Vim
  71. ln -s ~/.dotfiles/vim/vimrc ~/.vimrc
  72. ln -s ~/.dotfiles/vim/vim ~/.vim
  73. # GTK
  74. ln -s ~/.dotfiles/gtk/themes ~/.themes
  75. ln -s ~/.dotfiles/gtk/gtk-2.0 ~/.config/gtk-2.0
  76. ln -s ~/.dotfiles/gtk/gtk-3.0 ~/.config/gtk-3.0
  77. ln -s ~/.dotfiles/gtk/gtk-4.0 ~/.config/gtk-4.0
  78. # Miscellaneous
  79. ln -s ~/.dotfiles/misc/dunst ~/.config/dunst
  80. ln -s ~/.dotfiles/misc/zathura ~/.config/zathura
  81. ln -s ~/.dotfiles/misc/termite/ ~/.config/termite
  82. ln -s ~/.dotfiles/misc/systemd ~/.config/systemd
  83. ln -s ~/.dotfiles/misc/neofetch ~/.config/neofetch
  84. ln -s ~/.dotfiles/misc/profile ~/.config/.profile
  85. ln -s ~/.dotfiles/misc/htop ~/.config/htop
  86. ln -s ~/.dotfiles/misc/.fzf.zsh ~/.fzf.zsh
  87. ln -s ~/.dotfiles/misc/keyboard ~/.keyboard
  88. ln -s ~/.dotfiles/misc/mimeapps.list ~/.config/mimeapps.list
  89. ln -s ~/.dotfiles/fonts ~/.fonts
  90. fc-cache
  91. # Applications
  92. for d in ~/.dotfiles/applications/* ; do
  93. ln -s $d ~/.local/share/applications/
  94. done
  95. # Scripts
  96. ln -s ~/.dotfiles/scripts ~/.scripts
  97. # Suckless
  98. ln -s ~/.dotfiles/suckless ~/.config/suckless
  99. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  100. yay -S xsel clipnotify
  101. yay -S ttf-symbola
  102. ~/.dotfiles/suckless/build.sh
  103. # Tmux
  104. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  105. # Xorg
  106. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  107. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  108. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  109. # Zsh
  110. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  111. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  112. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  113. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  114. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  115. ln -s ~/.dotfiles/zsh/completions ~/.completions
  116. # Mail
  117. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  118. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  119. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  120. echo "*/30 * * * * /home/yigit/.scripts/mailsync" >> /var/spool/cron/yigit
  121. # Root
  122. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  123. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  124. # Config
  125. cp ~/.dotfiles/config.env.def ~/.config.env
  126. # Install vim and tmux plugins
  127. mkdir -p ~/.tmux/plugins
  128. vim -c ':PlugInstall'