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.

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