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.

240 lines
7.1 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
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://minio.yigitcolakoglu.com/dotfiles/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete.otf > /dev/null 2> /dev/null
  113. wget https://minio.yigitcolakoglu.com/dotfiles/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete%20Mono.otf > /dev/null 2> /dev/null
  114. wget https://minio.yigitcolakoglu.com/dotfiles/Caskaydia%20Cove%20Bold%20Nerd%20Font%20Complete.otf > /dev/null 2> /dev/null
  115. wget https://minio.yigitcolakoglu.com/dotfiles/Caskaydia%20Cove%20Bold%20Nerd%20Font%20Complete%20Mono.otf > /dev/null 2> /dev/null
  116. cd ~/.dotfiles/backgrounds
  117. wget https://minio.yigitcolakoglu.com/dotfiles/lock.jpg > /dev/null 2> /dev/null
  118. wget https://minio.yigitcolakoglu.com/dotfiles/wallpaper-mountain.jpg > /dev/null 2> /dev/null
  119. wget https://minio.yigitcolakoglu.com/dotfiles/wallpaper-sea.jpg > /dev/null 2> /dev/null
  120. wget https://minio.yigitcolakoglu.com/dotfiles/wallpaper-shack.jpg > /dev/null 2> /dev/null
  121. cd $prev
  122. fc-cache
  123. # Applications
  124. for d in ~/.dotfiles/applications/* ; do
  125. ln -s $d ~/.local/share/applications/
  126. done
  127. # Scripts
  128. ln -s ~/.dotfiles/scripts ~/.scripts
  129. # Suckless
  130. ln -s ~/.dotfiles/suckless ~/.config/suckless
  131. ln -s ~/.dotfiles/suckless/dot_surf ~/.surf
  132. yay --noconfirm -S xsel clipnotify
  133. yay --noconfirm -S ttf-symbola
  134. (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh)
  135. # Tmux
  136. ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
  137. # Xorg
  138. ln -s ~/.dotfiles/xorg/xinitrc ~/.xinitrc
  139. ln -s ~/.dotfiles/xorg/xmodmap ~/.xmodmap
  140. ln -s ~/.dotfiles/xorg/Xresources ~/.Xresources
  141. # Zsh
  142. ln -s ~/.dotfiles/zsh/antibody ~/.config/antibody
  143. ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
  144. ln -s ~/.dotfiles/zsh/secret ~/.zsh_secret
  145. ln -s ~/.dotfiles/zsh/cmds ~/.cmds
  146. ln -s ~/.dotfiles/zsh/aliases ~/.aliases
  147. ln -s ~/.dotfiles/zsh/completions ~/.completions
  148. ln -s ~/.dotfiles/zsh/profile ~/.profile
  149. # Mail
  150. ln -s ~/.dotfiles/mail/mutt ~/.config/mutt
  151. ln -s ~/.dotfiles/mail/msmtp ~/.config/msmtp
  152. ln -s ~/.dotfiles/mail/mbsyncrc ~/.mbsyncrc
  153. if [ ! -f "/var/spool/cron$username" ]; then
  154. sudo touch "/var/spool/cron/$username"
  155. sudo chown yigit:yigit "/var/spool/cron/$username"
  156. sudo chmod 755 "/var/spool/cron/$username"
  157. fi
  158. echo "COMMAND brave" > ~/.urlview
  159. echo "*/8 * * * * /home/$username/.scripts/mailsync" >> /var/spool/cron/yigit
  160. echo "*/15 * * * * /home/$username/.scripts/nextcloud-sync" >> /var/spool/cron/yigit
  161. echo "*/30 * * * * calcurse-caldav" >> /var/spool/cron/yigit
  162. echo "*/30 * * * * vdirsyncer sync" >> /var/spool/cron/yigit
  163. # Root
  164. sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions
  165. sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts
  166. sudo cp ~/.dotfiles/root/quark.service /usr/lib/systemd/system
  167. sudo cp ~/.dotfiles/root/kdialog /usr/local/bin/kdialog
  168. sudo cp ~/.dotfiles/root/udevil.conf /etc/udevil/udevil.conf
  169. sudo chmod +x /usr/local/bin/kdialog
  170. sudo systemctl daemon-reload
  171. sudo systemctl enable quark
  172. # Config
  173. cp ~/.dotfiles/config.env.def ~/.config.env
  174. # Firefox
  175. firefox-developer-edition -CreateProfile "yeet"
  176. cp -r ~/.dotfiles/browser/flyingfox/* ~/.mozilla/firefox/*.yeet
  177. cp -r ~/.dotfiles/browser/extensions ~/.mozilla/firefox/*.yeet
  178. cp ~/.dotfiles/browser/extensions.json ~/.mozilla/firefox/*.yeet
  179. # Start page
  180. prev=$(pwd)
  181. cd ~/.dotfiles/browser/startpage
  182. npm install
  183. npm run build
  184. cd $prev
  185. ~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)
  186. # Install vim and tmux plugins
  187. mkdir -p ~/.tmux/plugins
  188. vim -c ':PlugInstall'
  189. betterlockscreen -u ~/.dotfiles/backgrounds/lock.jpg
  190. # Install mconnect
  191. git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect
  192. prev=$(pwd)
  193. cd /tmp/mconnect
  194. mkdir -p build
  195. cd build
  196. meson ..
  197. ninja
  198. sudo ninja install
  199. cd $prev
  200. mkdir -p ~/Downloads/mconnect
  201. sudo git clone https://github.com/theFr1nge/bitwarden-dmenu.git /usr/share/bwdmenu
  202. cd /usr/share/bwdmenu
  203. sudo npm install
  204. sudo npm i -g
  205. cd $prev
  206. # Install simcrop
  207. sudo pacman --needed --noconfirm -S opencv
  208. git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop
  209. cd /tmp/simcrop
  210. sudo make install
  211. cd $prev