2021-02-13 11:28:59 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-03-13 10:34:45 -05:00
|
|
|
echo "Shell (bash/zsh/fish): " | tr -d '\n'
|
2021-02-13 11:28:59 -05:00
|
|
|
read -r shell
|
|
|
|
if [ -z "${shell}" ]
|
|
|
|
then exit
|
|
|
|
fi
|
|
|
|
|
2021-03-13 10:34:45 -05:00
|
|
|
echo "Display server (wayland/x11): " | tr -d '\n'
|
2021-02-13 11:28:59 -05:00
|
|
|
read -r server
|
|
|
|
if [ -z "${server}" ]
|
|
|
|
then exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "
|
|
|
|
~~~ Installing shell config ~~~
|
|
|
|
"
|
|
|
|
case ${shell} in
|
|
|
|
bash)
|
2021-05-02 19:12:01 -04:00
|
|
|
cp -rfv ./home/.bashrc-bloated ~/.bashrc
|
|
|
|
cp -rfv ./home/.bash_profile ~/.bash_profile
|
|
|
|
cp -rfv ./home/.local/share/bash/ ~/.local/share/bash/
|
2021-02-13 11:28:59 -05:00
|
|
|
;;
|
|
|
|
zsh)
|
|
|
|
cp -rfv ./home/.bashrc ~/.bashrc
|
|
|
|
cp -rfv ./home/.config/zsh/ ~/.config/zsh/
|
|
|
|
cp -rfv ./home/.local/share/zsh/ ~/.local/share/zsh/
|
|
|
|
;;
|
|
|
|
fish)
|
|
|
|
cp -rfv ./home/.bashrc ~/.bashrc
|
|
|
|
cp -rfv ./home/.config/fish/ ~/.config/fish/
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "
|
|
|
|
~~~ Installing ${server} specified config ~~~
|
|
|
|
"
|
|
|
|
case ${server} in
|
|
|
|
wayland)
|
|
|
|
cp -rfv ./home/.config/foot/ ~/.config/foot/
|
|
|
|
cp -rfv ./home/.config/hikari/ ~/.config/hikari/
|
2021-02-24 21:55:12 -05:00
|
|
|
# Dunst is Wayland native too, since 1.6.0
|
|
|
|
if command -v dunst >/dev/null
|
|
|
|
then
|
|
|
|
cp -rfv ./home/.config/dunst/ ~/.config/dunst/
|
|
|
|
else
|
|
|
|
cp -rfv ./home/.config/mako/ ~/.config/mako/
|
|
|
|
fi
|
2021-02-13 11:28:59 -05:00
|
|
|
cp -rfv ./home/.config/nwg-launchers/ ~/.config/nwg-launchers/
|
|
|
|
cp -rfv ./home/.config/river/ ~/.config/river/
|
|
|
|
cp -rfv ./home/.config/sway/ ~/.config/sway/
|
|
|
|
cp -rfv ./home/.config/swaylock/ ~/.config/swaylock/
|
|
|
|
cp -rfv ./home/.config/waybar/ ~/.config/waybar/
|
|
|
|
cp -rfv ./home/.config/wofi/ ~/.config/wofi/
|
2021-04-04 00:33:26 -04:00
|
|
|
# qimgv is preferable
|
2021-03-06 03:57:49 -05:00
|
|
|
# cp -rfv ./home/.config/imv/ ~/.config/imv/
|
2021-04-04 00:33:26 -04:00
|
|
|
# cp -rfv ./home/.config/pqivrc ~/.config/pqivrc
|
2021-02-13 11:28:59 -05:00
|
|
|
cp -rfv ./home/.config/wayfire.ini ~/.config/wayfire.ini
|
|
|
|
;;
|
|
|
|
x11)
|
2021-05-02 19:12:01 -04:00
|
|
|
cp -rfv ./home/.config/bsp-layout/ ~/.config/bsp-layout/
|
|
|
|
cp -rfv ./home/.config/bspwm/ ~/.config/bspwm/
|
|
|
|
cp -rfv ./home/.config/dunst/ ~/.config/dunst/
|
|
|
|
cp -rfv ./home/.config/kitty/ ~/.config/kitty/
|
|
|
|
cp -rfv ./home/.config/polybar/ ~/.config/polybar/
|
|
|
|
cp -rfv ./home/.config/rofi/ ~/.config/rofi/
|
|
|
|
cp -rfv ./home/.config/spectrwm/ ~/.config/spectrwm/
|
|
|
|
cp -rfv ./home/.config/sxhkd/ ~/.config/sxhkd/
|
|
|
|
cp -rfv ./home/.config/X11/ ~/.config/X11/
|
|
|
|
cp -rfv ./home/.config/greenclip.toml ~/.config/greenclip.toml
|
|
|
|
cp -rfv ./home/.config/picom.conf ~/.config/picom.conf
|
2021-02-13 11:28:59 -05:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "
|
|
|
|
~~~ Installing standard config ~~~
|
|
|
|
"
|
|
|
|
# Assests
|
|
|
|
mkdir -pv ~/Pictures
|
2021-06-05 15:00:25 -04:00
|
|
|
cp -rfv ./home/Pictures/Animated/ ~/Pictures/Animated/
|
|
|
|
cp -rfv ./home/Pictures/Wallpapers/ ~/Pictures/Wallpapers/
|
2021-02-13 11:28:59 -05:00
|
|
|
cp -rfv ./home/.local/share/fonts/ ~/.local/share/fonts/
|
|
|
|
# Scripts
|
|
|
|
cp -rfv ./home/.local/bin/ ~/.local/bin/
|
|
|
|
# The bloated dotfiles itself
|
2021-03-14 21:41:03 -04:00
|
|
|
cp -rfv ./home/.mbsyncrc ~/.mbsyncrc
|
2021-02-25 19:52:18 -05:00
|
|
|
cp -rfv ./home/.rtorrent.rc ~/.rtorrent.rc
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/alacritty/ ~/.config/alacritty/
|
|
|
|
cp -rfv ./home/.config/amfora/ ~/.config/amfora/
|
|
|
|
cp -rfv ./home/.config/anime-downloader/ ~/.config/anime-downloader/
|
2021-02-22 21:30:23 -05:00
|
|
|
cp -rfv ./home/.config/aria2/ ~/.config/aria2/
|
2021-03-13 23:47:45 -05:00
|
|
|
cp -rfv ./home/.config/bat/ ~/.config/bat/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/bottom/ ~/.config/bottom/
|
|
|
|
cp -rfv ./home/.config/cava/ ~/.config/cava/
|
2021-05-25 09:39:15 -04:00
|
|
|
cp -rfv ./home/.config/chemacs/ ~/.config/chemacs/
|
2021-05-08 15:42:09 -04:00
|
|
|
cp -rfv ./home/.config/cht.sh/ ~/.config/cht.sh/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/cointop/ ~/.config/cointop/
|
|
|
|
cp -rfv ./home/.config/doom/ ~/.config/doom/
|
2021-05-20 13:56:53 -04:00
|
|
|
cp -rfv ./home/.config/Element/ ~/.config/Element/
|
2021-05-16 03:42:12 -04:00
|
|
|
cp -rfv ./home/.config/fontconfig/ ~/.config/fontconfig/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/gallery-dl/ ~/.config/gallery-dl/
|
|
|
|
cp -rfv ./home/.config/GIMP/ ~/.config/GIMP/
|
|
|
|
cp -rfv ./home/.config/git/ ~/.config/git/
|
|
|
|
cp -rfv ./home/.config/gtk-3.0/ ~/.config/gtk-3.0/
|
2021-05-19 17:52:46 -04:00
|
|
|
# cp -rfv ./home/.config/lazygit/ ~/.config/lazygit/
|
2021-05-18 18:15:47 -04:00
|
|
|
# cp -rfv ./home/.config/lite-xl/ ~/.config/lite-xl/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/mpd/ ~/.config/mpd/
|
|
|
|
cp -rfv ./home/.config/mpDris2/ ~/.config/mpDris2/
|
2021-04-07 09:37:12 -04:00
|
|
|
cp -rfv ./home/.config/mpv/ ~/.config/mpv/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/ncmpcpp/ ~/.config/ncmpcpp/
|
2021-04-12 12:00:49 -04:00
|
|
|
# cp -rfv ./home/.config/neofetch/ ~/.config/neofetch/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/newsboat/ ~/.config/newsboat/
|
2021-03-18 17:54:05 -04:00
|
|
|
cp -rfv ./home/.config/nnn/ ~/.config/nnn/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/npm/ ~/.config/npm/
|
|
|
|
cp -rfv ./home/.config/nvim/ ~/.config/nvim/
|
2021-03-14 16:42:45 -04:00
|
|
|
cp -rfv ./home/.config/pipe-viewer/ ~/.config/pipe-viewer/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/qutebrowser/ ~/.config/qutebrowser/
|
|
|
|
cp -rfv ./home/.config/ranger/ ~/.config/ranger/
|
2021-06-05 15:00:25 -04:00
|
|
|
# cp -rfv ./home/.config/tg/ ~/.config/tg/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/tmux/ ~/.config/tmux/
|
|
|
|
cp -rfv ./home/.config/translate-shell/ ~/.config/translate-shell/
|
2021-03-14 21:41:03 -04:00
|
|
|
# cp -rfv ./home/.config/tridactyl/ ~/.config/tridactyl/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/vifm/ ~/.config/vifm/
|
2021-05-19 17:52:46 -04:00
|
|
|
cp -rfv ./home/.config/weechat/ ~/.config/weechat/
|
2021-04-17 08:40:45 -04:00
|
|
|
cp -rfv ./home/.config/wget/ ~/.config/wget/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/youtube-dl/ ~/.config/youtube-dl/
|
2021-02-21 09:40:18 -05:00
|
|
|
cp -rfv ./home/.config/ytmdl/ ~/.config/ytmdl/
|
2021-02-20 11:13:12 -05:00
|
|
|
cp -rfv ./home/.config/zathura/ ~/.config/zathura/
|
|
|
|
cp -rfv ./home/.config/mimeapps.list ~/.config/mimeapps.list
|
|
|
|
cp -rfv ./home/.config/pulsemixer.cfg ~/.config/pulsemixer.cfg
|
|
|
|
cp -rfv ./home/.config/starship.toml ~/.config/starship.toml
|
2021-02-22 21:30:23 -05:00
|
|
|
# gpg
|
|
|
|
cp -rfv ./home/.local/share/gnupg/ ~/.local/share/gnupg/
|
2021-02-13 11:28:59 -05:00
|
|
|
|
|
|
|
echo "
|
|
|
|
~~~ Cloning submodules ~~~
|
|
|
|
"
|
2021-05-25 09:39:15 -04:00
|
|
|
[ -d ~/.config/emacs ] || git clone https://github.com/plexus/chemacs2 ~/.config/emacs
|
|
|
|
[ -d ~/.config/emacs-config/doom ] || git clone https://github.com/hlissner/doom-emacs ~/.config/emacs-config/doom
|
2021-02-13 11:28:59 -05:00
|
|
|
[ -d ~/.config/tmux/plugins/tpm ] || git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
|
|
|
[ -d ~/.config/ranger/plugins/ranger_devicons ] || git clone https://github.com/FollieHiyuki/ranger_devicons ~/.config/ranger/plugins/ranger_devicons
|
|
|
|
|
2021-02-22 21:30:23 -05:00
|
|
|
echo "
|
|
|
|
~~~ Post deployment ~~~
|
|
|
|
"
|
|
|
|
# Needed data dirs
|
2021-02-13 11:28:59 -05:00
|
|
|
mkdir -pv ~/.local/share/bash
|
|
|
|
mkdir -pv ~/.local/share/mpd/playlists
|
|
|
|
mkdir -pv ~/.local/share/gallery-dl
|
2021-03-22 11:01:49 -04:00
|
|
|
|
2021-02-22 21:30:23 -05:00
|
|
|
# tridactyl needs `tridactylrc` to work
|
2021-03-14 21:41:03 -04:00
|
|
|
# touch ~/.config/tridactyl/tridactylrc
|
2021-03-22 11:01:49 -04:00
|
|
|
|
|
|
|
# Strict permissions
|
2021-02-13 11:28:59 -05:00
|
|
|
chmod -v 700 ~/.local/share/gnupg
|
|
|
|
chmod -v 600 ~/.local/share/gnupg/*
|
2021-02-22 21:30:23 -05:00
|
|
|
chmod -v 600 ~/.config/aria2/aria2.conf
|
2021-02-13 11:28:59 -05:00
|
|
|
|
|
|
|
# chsh -s /usr/bin/${shell} ${USER}
|
|
|
|
|
|
|
|
echo "
|
|
|
|
~~~ Finished ~~~"
|