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.

147 lines
3.6 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
4 years ago
4 years ago
  1. #!/bin/bash
  2. # Install packages
  3. echo "Running update"
  4. sudo pacman --noconfirm -Syu
  5. sudo pacman --noconfirm --needed -S $(cat ~/.dotfiles/arch-setup/nonAUR.txt)
  6. yay -S --noconfirm --needed $(cat ~/.dotfiles/arch-setup/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. sudo npm i -g yigitcolakoglu/bitwarden-dmenu
  91. fc-cache
  92. # Applications
  93. for d in ~/.dotfiles/applications/* ; do
  94. ln -s $d ~/.local/share/applications/
  95. done
  96. # Scripts
  97. ln -s ~/.dotfiles/scripts ~/.scripts
  98. # Suckless
  99. ln -s ~/.dotfiles/suckless ~/.config/suckless
  100. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  101. yay --noconfirm -S xsel clipnotify
  102. yay --noconfirm -S ttf-symbola
  103. (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh)
  104. # Tmux
  105. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  106. # Xorg
  107. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  108. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  109. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  110. # Zsh
  111. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  112. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  113. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  114. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  115. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  116. ln -s ~/.dotfiles/zsh/completions ~/.completions
  117. # Mail
  118. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  119. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  120. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  121. echo "*/30 * * * * /home/yigit/.scripts/mailsync" >> /var/spool/cron/yigit
  122. # Root
  123. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  124. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  125. # Config
  126. cp ~/.dotfiles/config.env.def ~/.config.env
  127. # Install vim and tmux plugins
  128. mkdir -p ~/.tmux/plugins
  129. vim -c ':PlugInstall'
  130. betterlockscreen -u ~/.dotfiles/backgrounds/lock.jpg