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.

175 lines
4.4 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
  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. ~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)
  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
  31. rsync --remove-source-files -avzh --ignore-errors \
  32. ~/.config/htop \
  33. ~/.config/.profile \
  34. ~/.config/systemd \
  35. ~/.config/termite \
  36. ~/.config/zathura \
  37. ~/.config/dunst \
  38. ~/.config/gtk-4.0 \
  39. ~/.config/gtk-3.0 \
  40. ~/.config/gtk-2.0 \
  41. ~/.config/antibody \
  42. ~/.config/suckless \
  43. ~/.dotfiles_backup/.config
  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/dunst \
  66. ~/.config/gtk-4.0 \
  67. ~/.config/gtk-3.0 \
  68. ~/.config/gtk-2.0 \
  69. ~/.config/antibody \
  70. ~/.config/suckless
  71. # Vim
  72. ln -s ~/.dotfiles/vim/vimrc ~/.vimrc
  73. ln -s ~/.dotfiles/vim/vim ~/.vim
  74. # GTK
  75. ln -s ~/.dotfiles/gtk/themes ~/.themes
  76. ln -s ~/.dotfiles/gtk/gtk-2.0 ~/.config/gtk-2.0
  77. ln -s ~/.dotfiles/gtk/gtk-3.0 ~/.config/gtk-3.0
  78. ln -s ~/.dotfiles/gtk/gtk-4.0 ~/.config/gtk-4.0
  79. ~/.dotfiles/gtk/Tela-icon-theme/install.sh
  80. # Miscellaneous
  81. ln -s ~/.dotfiles/misc/dunst ~/.config/dunst
  82. ln -s ~/.dotfiles/misc/zathura ~/.config/zathura
  83. ln -s ~/.dotfiles/misc/termite/ ~/.config/termite
  84. ln -s ~/.dotfiles/misc/systemd ~/.config/systemd
  85. ln -s ~/.dotfiles/misc/neofetch ~/.config/neofetch
  86. ln -s ~/.dotfiles/misc/profile ~/.config/.profile
  87. ln -s ~/.dotfiles/misc/htop ~/.config/htop
  88. ln -s ~/.dotfiles/misc/.fzf.zsh ~/.fzf.zsh
  89. ln -s ~/.dotfiles/misc/keyboard ~/.keyboard
  90. ln -s ~/.dotfiles/misc/mimeapps.list ~/.config/mimeapps.list
  91. mkdir ~/.config/spotifyd
  92. ln -s ~/.dotfiles/misc/spotifyd.conf ~/.config/spotifyd/spotifyd.conf
  93. ln -s ~/.dotfiles/fonts ~/.fonts
  94. sudo npm i -g yigitcolakoglu/bitwarden-dmenu
  95. fc-cache
  96. # Applications
  97. for d in ~/.dotfiles/applications/* ; do
  98. ln -s $d ~/.local/share/applications/
  99. done
  100. # Scripts
  101. ln -s ~/.dotfiles/scripts ~/.scripts
  102. # Suckless
  103. ln -s ~/.dotfiles/suckless ~/.config/suckless
  104. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  105. yay --noconfirm -S xsel clipnotify
  106. yay --noconfirm -S ttf-symbola
  107. (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh)
  108. # Tmux
  109. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  110. # Xorg
  111. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  112. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  113. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  114. # Zsh
  115. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  116. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  117. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  118. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  119. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  120. ln -s ~/.dotfiles/zsh/completions ~/.completions
  121. # Mail
  122. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  123. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  124. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  125. echo "*/30 * * * * /home/$(whoami)/.scripts/mailsync" >> /var/spool/cron/yigit
  126. # Root
  127. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  128. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  129. # Config
  130. cp ~/.dotfiles/config.env.def ~/.config.env
  131. # Firefox
  132. firefox-developer-edition -CreateProfile "yeet"
  133. cp -r ~/.dotfiles/firefox/flyingfox/* ~/.mozilla/firefox/*.yeet
  134. cp -r ~/.dotfiles/firefox/extensions ~/.mozilla/firefox/*.yeet
  135. cp ~/.dotfiles/firefox/extensions.json ~/.mozilla/firefox/*.yeet
  136. # Install vim and tmux plugins
  137. mkdir -p ~/.tmux/plugins
  138. vim -c ':PlugInstall'
  139. betterlockscreen -u ~/.dotfiles/backgrounds/lock.jpg
  140. # Install mconnect
  141. git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect
  142. prev=$(pwd)
  143. cd /tmp/mconnect
  144. mkdir build
  145. cd build
  146. meson ..
  147. ninja
  148. sudo ninja install
  149. cd $prev
  150. # Installl simcrop
  151. git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop
  152. cd /tmp/simcrop
  153. sudo make install
  154. cd $prev