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.

190 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
  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. mkdir -p ~/.config/spotifyd
  94. ln -s ~/.dotfiles/misc/spotifyd.conf ~/.config/spotifyd/spotifyd.conf
  95. ln -s ~/.dotfiles/fonts ~/.fonts
  96. fc-cache
  97. # Applications
  98. for d in ~/.dotfiles/applications/* ; do
  99. ln -s $d ~/.local/share/applications/
  100. done
  101. # Scripts
  102. ln -s ~/.dotfiles/scripts ~/.scripts
  103. # Suckless
  104. ln -s ~/.dotfiles/suckless ~/.config/suckless
  105. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  106. yay --noconfirm -S xsel clipnotify
  107. yay --noconfirm -S ttf-symbola
  108. (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh)
  109. # Tmux
  110. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  111. # Xorg
  112. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  113. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  114. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  115. # Zsh
  116. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  117. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  118. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  119. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  120. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  121. ln -s ~/.dotfiles/zsh/completions ~/.completions
  122. ln -s ~/.dotfiles/zsh/profile ~/.profile
  123. # Mail
  124. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  125. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  126. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  127. if [ ! -f "/var/spool/cron/yigit"]; then
  128. sudo touch /var/spool/cron/yigit
  129. sudo chown yigit:yigit /var/spool/cron/yigit
  130. fi
  131. echo "*/8 * * * * /home/$(whoami)/.scripts/mailsync" >> /var/spool/cron/yigit
  132. # Root
  133. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  134. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  135. # Config
  136. cp ~/.dotfiles/config.env.def ~/.config.env
  137. # Firefox
  138. firefox-developer-edition -CreateProfile "yeet"
  139. cp -r ~/.dotfiles/firefox/flyingfox/* ~/.mozilla/firefox/*.yeet
  140. cp -r ~/.dotfiles/firefox/extensions ~/.mozilla/firefox/*.yeet
  141. cp ~/.dotfiles/firefox/extensions.json ~/.mozilla/firefox/*.yeet
  142. ~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)
  143. # Install vim and tmux plugins
  144. mkdir -p ~/.tmux/plugins
  145. vim -c ':PlugInstall'
  146. betterlockscreen -u ~/.dotfiles/backgrounds/lock.jpg
  147. # Install mconnect
  148. git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect
  149. prev=$(pwd)
  150. cd /tmp/mconnect
  151. mkdir -p build
  152. cd build
  153. meson ..
  154. ninja
  155. sudo ninja install
  156. cd $prev
  157. mkdir -p ~/Downloads/mconnect
  158. sudo git clone https://github.com/theFr1nge/bitwarden-dmenu.git /usr/share/bwdmenu
  159. cd /usr/share/bwdmenu
  160. sudo npm install
  161. sudo npm i -g
  162. cd $prev
  163. # Install simcrop
  164. sudo pacman -S opencv
  165. git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop
  166. cd /tmp/simcrop
  167. sudo make install
  168. cd $prev