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.

191 lines
4.9 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
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 2> /dev/null > /dev/null
  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. ~/.config/neofetch \
  43. ~/.dotfiles_backup/.config 2> /dev/null > /dev/null
  44. rm -rf \
  45. ~/.completions \
  46. ~/.aliases \
  47. ~/.cmds \
  48. ~/.zshrc \
  49. ~/.Xresources \
  50. ~/.xmodmap \
  51. ~/.xinitrc \
  52. ~/.tmux.conf \
  53. ~/.surf \
  54. ~/.scripts \
  55. ~/.keyboard \
  56. ~/.fzf.zsh \
  57. ~/.themes \
  58. ~/.vim \
  59. ~/.vimrc \
  60. ~/.config/htop \
  61. ~/.config/.profile \
  62. ~/.config/systemd \
  63. ~/.config/termite \
  64. ~/.config/zathura \
  65. ~/.config/neofetch \
  66. ~/.config/dunst \
  67. ~/.config/gtk-4.0 \
  68. ~/.config/gtk-3.0 \
  69. ~/.config/gtk-2.0 \
  70. ~/.config/antibody \
  71. ~/.config/suckless
  72. # Vim
  73. ln -s ~/.dotfiles/vim/vimrc ~/.vimrc
  74. ln -s ~/.dotfiles/vim/vim ~/.vim
  75. # GTK
  76. ln -s ~/.dotfiles/gtk/themes ~/.themes
  77. ln -s ~/.dotfiles/gtk/gtk-2.0 ~/.config/gtk-2.0
  78. ln -s ~/.dotfiles/gtk/gtk-3.0 ~/.config/gtk-3.0
  79. ln -s ~/.dotfiles/gtk/gtk-4.0 ~/.config/gtk-4.0
  80. ~/.dotfiles/gtk/Tela-icon-theme/install.sh
  81. # Miscellaneous
  82. ln -s ~/.dotfiles/misc/dunst ~/.config/dunst
  83. ln -s ~/.dotfiles/misc/zathura ~/.config/zathura
  84. ln -s ~/.dotfiles/misc/termite/ ~/.config/termite
  85. ln -s ~/.dotfiles/misc/systemd ~/.config/systemd
  86. ln -s ~/.dotfiles/misc/neofetch ~/.config/neofetch
  87. ln -s ~/.dotfiles/misc/profile ~/.config/.profile
  88. ln -s ~/.dotfiles/misc/htop ~/.config/htop
  89. ln -s ~/.dotfiles/misc/.fzf.zsh ~/.fzf.zsh
  90. ln -s ~/.dotfiles/misc/keyboard ~/.keyboard
  91. ln -s ~/.dotfiles/misc/mimeapps.list ~/.config/mimeapps.list
  92. ln -s ~/.dotfiles/misc/wakatime.cfg ~/.wakatime.cfg
  93. ln -s ~/.dotfiles/misc/BetterDiscord ~/.config/BetterDiscord
  94. mkdir -p ~/.config/spotifyd
  95. ln -s ~/.dotfiles/misc/spotifyd.conf ~/.config/spotifyd/spotifyd.conf
  96. ln -s ~/.dotfiles/fonts ~/.fonts
  97. fc-cache
  98. # Applications
  99. for d in ~/.dotfiles/applications/* ; do
  100. ln -s $d ~/.local/share/applications/
  101. done
  102. # Scripts
  103. ln -s ~/.dotfiles/scripts ~/.scripts
  104. # Suckless
  105. ln -s ~/.dotfiles/suckless ~/.config/suckless
  106. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  107. yay --noconfirm -S xsel clipnotify
  108. yay --noconfirm -S ttf-symbola
  109. (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh)
  110. # Tmux
  111. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  112. # Xorg
  113. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  114. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  115. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  116. # Zsh
  117. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  118. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  119. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  120. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  121. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  122. ln -s ~/.dotfiles/zsh/completions ~/.completions
  123. ln -s ~/.dotfiles/zsh/profile ~/.profile
  124. # Mail
  125. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  126. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  127. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  128. if [ ! -f "/var/spool/cron/yigit"]; then
  129. sudo touch /var/spool/cron/yigit
  130. sudo chown yigit:yigit /var/spool/cron/yigit
  131. fi
  132. echo "*/8 * * * * /home/$(whoami)/.scripts/mailsync" >> /var/spool/cron/yigit
  133. # Root
  134. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  135. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  136. # Config
  137. cp ~/.dotfiles/config.env.def ~/.config.env
  138. # Firefox
  139. firefox-developer-edition -CreateProfile "yeet"
  140. cp -r ~/.dotfiles/firefox/flyingfox/* ~/.mozilla/firefox/*.yeet
  141. cp -r ~/.dotfiles/firefox/extensions ~/.mozilla/firefox/*.yeet
  142. cp ~/.dotfiles/firefox/extensions.json ~/.mozilla/firefox/*.yeet
  143. ~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)
  144. # Install vim and tmux plugins
  145. mkdir -p ~/.tmux/plugins
  146. vim -c ':PlugInstall'
  147. betterlockscreen -u ~/.dotfiles/backgrounds/lock.jpg
  148. # Install mconnect
  149. git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect
  150. prev=$(pwd)
  151. cd /tmp/mconnect
  152. mkdir -p build
  153. cd build
  154. meson ..
  155. ninja
  156. sudo ninja install
  157. cd $prev
  158. mkdir -p ~/Downloads/mconnect
  159. sudo git clone https://github.com/theFr1nge/bitwarden-dmenu.git /usr/share/bwdmenu
  160. cd /usr/share/bwdmenu
  161. sudo npm install
  162. sudo npm i -g
  163. cd $prev
  164. # Install simcrop
  165. sudo pacman -S opencv
  166. git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop
  167. cd /tmp/simcrop
  168. sudo make install
  169. cd $prev