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.

209 lines
5.8 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
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. username=$(whoami)
  3. # Install packages
  4. echo "Running update"
  5. sudo pacman --noconfirm -Syu
  6. sudo pacman --noconfirm --needed -S $(cat ~/.dotfiles/arch-setup/nonAUR.txt)
  7. yay -S --noconfirm --needed $(cat ~/.dotfiles/arch-setup/AUR.txt)
  8. # Initial cleanup
  9. echo "Backing up your previous dotfiles to ~/.dotfiles_backup"
  10. mkdir -p ~/.local/share
  11. mkdir -p ~/.dotfiles_backup
  12. mkdir -p ~/.config
  13. mkdir -p ~/.dotfiles_backup/.config
  14. rsync --remove-source-files -avzh --ignore-errors \
  15. ~/.completions \
  16. ~/.aliases \
  17. ~/.cmds \
  18. ~/.zshrc \
  19. ~/.Xresources \
  20. ~/.xmodmap \
  21. ~/.xinitrc \
  22. ~/.tmux.conf \
  23. ~/.surf \
  24. ~/.scripts \
  25. ~/.keyboard \
  26. ~/.fzf.zsh \
  27. ~/.themes \
  28. ~/.vim \
  29. ~/.vimrc \
  30. ~/.dotfiles_backup 2> /dev/null > /dev/null
  31. rsync --remove-source-files -avzh --ignore-errors \
  32. ~/.config/htop \
  33. ~/.config/.profile \
  34. ~/.config/.nvim \
  35. ~/.config/systemd \
  36. ~/.config/termite \
  37. ~/.config/zathura \
  38. ~/.config/dunst \
  39. ~/.config/gtk-4.0 \
  40. ~/.config/gtk-3.0 \
  41. ~/.config/gtk-2.0 \
  42. ~/.config/antibody \
  43. ~/.config/suckless \
  44. ~/.config/neofetch \
  45. ~/.dotfiles_backup/.config 2> /dev/null > /dev/null
  46. rm -rf \
  47. ~/.completions \
  48. ~/.aliases \
  49. ~/.cmds \
  50. ~/.zshrc \
  51. ~/.Xresources \
  52. ~/.xmodmap \
  53. ~/.xinitrc \
  54. ~/.tmux.conf \
  55. ~/.surf \
  56. ~/.scripts \
  57. ~/.keyboard \
  58. ~/.fzf.zsh \
  59. ~/.themes \
  60. ~/.vim \
  61. ~/.vimrc \
  62. ~/.config/htop \
  63. ~/.config/.profile \
  64. ~/.config/systemd \
  65. ~/.config/termite \
  66. ~/.config/zathura \
  67. ~/.config/neofetch \
  68. ~/.config/dunst \
  69. ~/.config/gtk-4.0 \
  70. ~/.config/gtk-3.0 \
  71. ~/.config/gtk-2.0 \
  72. ~/.config/antibody \
  73. ~/.config/suckless
  74. # Vim
  75. ln -s ~/.dotfiles/vim/vimrc ~/.vimrc
  76. ln -s ~/.dotfiles/vim/vim ~/.vim
  77. ln -s ~/.dotfiles/vim/nvim ~/.config/nvim
  78. # GTK
  79. ln -s ~/.dotfiles/theming/themes ~/.themes
  80. ln -s ~/.dotfiles/theming/qt5ct ~/.config/qt5ct
  81. ln -s ~/.dotfiles/theming/gtkrc-2.0 ~/.gtkrc-2.0
  82. ln -s ~/.dotfiles/theming/gtk-3.0 ~/.config/gtk-2.0
  83. ln -s ~/.dotfiles/theming/gtk-3.0 ~/.config/gtk-3.0
  84. ln -s ~/.dotfiles/theming/gtk-4.0 ~/.config/gtk-4.0
  85. ~/.dotfiles/theming/Tela-icon-theme/install.sh
  86. # Miscellaneous
  87. ln -s ~/.dotfiles/misc/dunst ~/.config/dunst
  88. ln -s ~/.dotfiles/misc/zathura ~/.config/zathura
  89. ln -s ~/.dotfiles/misc/termite/ ~/.config/termite
  90. ln -s ~/.dotfiles/misc/vdirsyncer ~/.vdirsyncer
  91. ln -s ~/.dotfiles/misc/systemd ~/.config/systemd
  92. ln -s ~/.dotfiles/misc/ranger ~/.config/ranger
  93. ln -s ~/.dotfiles/misc/neofetch ~/.config/neofetch
  94. ln -s ~/.dotfiles/misc/profile ~/.config/.profile
  95. ln -s ~/.dotfiles/misc/htop ~/.config/htop
  96. ln -s ~/.dotfiles/misc/.fzf.zsh ~/.fzf.zsh
  97. ln -s ~/.dotfiles/misc/keyboard ~/.keyboard
  98. ln -s ~/.dotfiles/misc/mimeapps.list ~/.config/mimeapps.list
  99. ln -s ~/.dotfiles/misc/wakatime.cfg ~/.wakatime.cfg
  100. ln -s ~/.dotfiles/misc/BetterDiscord ~/.config/BetterDiscord
  101. ln -s ~/.dotfiles/misc/nextcloud ~/.nextcloud
  102. ln -s ~/.dotfiles/misc/calcurse ~/.calcurse
  103. mkdir -p ~/.config/spotifyd
  104. ln -s ~/.dotfiles/misc/spotifyd.conf ~/.config/spotifyd/spotifyd.conf
  105. ln -s ~/.dotfiles/fonts ~/.fonts
  106. fc-cache
  107. # Applications
  108. for d in ~/.dotfiles/applications/* ; do
  109. ln -s $d ~/.local/share/applications/
  110. done
  111. # Scripts
  112. ln -s ~/.dotfiles/scripts ~/.scripts
  113. # Suckless
  114. ln -s ~/.dotfiles/suckless ~/.config/suckless
  115. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  116. yay --noconfirm -S xsel clipnotify
  117. yay --noconfirm -S ttf-symbola
  118. (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh)
  119. # Tmux
  120. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  121. # Xorg
  122. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  123. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  124. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  125. # Zsh
  126. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  127. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  128. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  129. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  130. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  131. ln -s ~/.dotfiles/zsh/completions ~/.completions
  132. ln -s ~/.dotfiles/zsh/profile ~/.profile
  133. # Mail
  134. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  135. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  136. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  137. if [ ! -f "/var/spool/cron$username" ]; then
  138. sudo touch "/var/spool/cron/$username"
  139. sudo chown yigit:yigit "/var/spool/cron/$username"
  140. sudo chmod 755 "/var/spool/cron/$username"
  141. fi
  142. echo "COMMAND firefox-developer-edition" > ~/.urlview
  143. echo "*/8 * * * * /home/$username/.scripts/mailsync" >> /var/spool/cron/yigit
  144. echo "*/15 * * * * /home/$username/.scripts/nextcloud-sync" >> /var/spool/cron/yigit
  145. echo "*/30 * * * * calcurse-caldav" >> /var/spool/cron/yigit
  146. echo "*/30 * * * * vdirsyncer sync" >> /var/spool/cron/yigit
  147. # Root
  148. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  149. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  150. # Config
  151. cp ~/.dotfiles/config.env.def ~/.config.env
  152. # Firefox
  153. firefox-developer-edition -CreateProfile "yeet"
  154. cp -r ~/.dotfiles/firefox/flyingfox/* ~/.mozilla/firefox/*.yeet
  155. cp -r ~/.dotfiles/firefox/extensions ~/.mozilla/firefox/*.yeet
  156. cp ~/.dotfiles/firefox/extensions.json ~/.mozilla/firefox/*.yeet
  157. ~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)
  158. # Install vim and tmux plugins
  159. mkdir -p ~/.tmux/plugins
  160. vim -c ':PlugInstall'
  161. betterlockscreen -u ~/.dotfiles/backgrounds/lock.jpg
  162. # Install mconnect
  163. git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect
  164. prev=$(pwd)
  165. cd /tmp/mconnect
  166. mkdir -p build
  167. cd build
  168. meson ..
  169. ninja
  170. sudo ninja install
  171. cd $prev
  172. mkdir -p ~/Downloads/mconnect
  173. sudo git clone https://github.com/theFr1nge/bitwarden-dmenu.git /usr/share/bwdmenu
  174. cd /usr/share/bwdmenu
  175. sudo npm install
  176. sudo npm i -g
  177. cd $prev
  178. # Install simcrop
  179. sudo pacman --needed --noconfirm -S opencv
  180. git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop
  181. cd /tmp/simcrop
  182. sudo make install
  183. cd $prev
  184. if [ ! "$username" = "yigit" ]; then
  185. find /home/$username/.dotfiles -type f | xargs sed -i "s/\/home\/yigit/\/home\/$username/g"
  186. fi