This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/setup

98 lines
3.5 KiB
Text
Raw Normal View History

2017-02-07 16:16:45 -06:00
#!/usr/bin/env bash
2018-11-08 09:34:17 -06:00
# TODO: ascii art header
2017-02-07 16:16:45 -06:00
dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/" && pwd)
2018-11-08 09:34:17 -06:00
source "${dfp}/scripts/setup_helpers.bash"
2017-02-07 16:16:45 -06:00
links=(
# desktop environment files
2018-11-08 07:32:36 -06:00
"$dfp/de/bspwm/bspwmrc" "$XDG_CONFIG_HOME/bspwm/bspwmrc"
2018-11-08 10:49:00 -06:00
"$dfp/de/bspwm/fehbg" "$HOME/.fehbg"
"$dfp/de/sway/config" "$XDG_CONFIG_HOME/sway/config"
2018-11-08 07:32:36 -06:00
"$dfp/de/sxhkd/sxhkdrc" "$XDG_CONFIG_HOME/sxhkd/sxhkdrc"
"$dfp/de/x/resources" "$HOME/.Xresources"
"$dfp/de/x/initrc" "$HOME/.xinitrc"
"$dfp/de/x/profile" "$HOME/.xprofile"
"$dfp/de/x/modmap" "$HOME/.xmodmap"
"$dfp/de/compton/compton.conf" "$XDG_CONFIG_HOME/compton.conf"
"$dfp/de/dunst/dunstrc" "$XDG_CONFIG_HOME/dunst/dunstrc"
2017-05-05 01:47:33 -05:00
"$dfp/scripts/colors/xresources" "$HOME/.Xresources.colors"
2017-02-07 16:16:45 -06:00
# shell files
2018-11-08 07:32:36 -06:00
"$dfp/shell/bash/bashrc" "$HOME/.bashrc"
"$dfp/shell/bash/bash_profile" "$HOME/.bash_profile"
"$dfp/shell/tmux/tmux.conf" "$HOME/.tmux.conf"
"$dfp/shell/tmux/layouts" "$HOME/.tmux/layouts"
# text editor files
2017-12-21 12:34:02 -06:00
"$dfp/apps/neovim/" "$XDG_CONFIG_HOME/nvim"
"$dfp/apps/neovim/" "$HOME/.vim"
2017-05-05 01:47:33 -05:00
"$dfp/apps/neovim/init.vim" "$HOME/.vimrc"
"$dfp/scripts/colors/vim" "$XDG_CONFIG_HOME/nvim/colors/base16-donokai.vim"
2017-02-08 14:22:10 -06:00
2017-04-03 15:45:21 -05:00
# gtk configuration files
2018-11-08 09:34:17 -06:00
"$dfp/de/gtk/2rc" "$HOME/.gtkrc-2.0"
"$dfp/de/gtk/2rc" "$HOME/.gtkrc"
"$dfp/de/gtk/3settings.ini" "$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
2017-04-03 15:45:21 -05:00
# irc files
2017-05-05 01:47:33 -05:00
"$dfp/apps/irssi/" "$HOME/.irssi"
"$dfp/apps/weechat/" "$HOME/.weechat"
# qutebrowser config files
"$dfp/apps/qutebrowser/qutebrowser.conf" "$XDG_CONFIG_HOME/qutebrowser/qutebrowser.conf"
"$dfp/apps/qutebrowser/keys.conf" "$XDG_CONFIG_HOME/qutebrowser/keys.conf"
2017-04-03 14:38:53 -05:00
2019-02-27 23:29:49 -06:00
# sc-im config files and scripts
"$dfp/apps/scim/rc" "$HOME/.scimrc"
"$dfp/apps/scim/lua" "$HOME/.scim/lua"
2018-08-09 09:40:14 -05:00
# document viewer
"$dfp/apps/zathura/" "$XDG_CONFIG_HOME/zathura"
# terminal emulator
2017-12-21 12:34:02 -06:00
"$dfp/apps/alacritty/" "$XDG_CONFIG_HOME/alacritty"
2019-03-06 12:20:34 -06:00
# kitty config
"$dfp/apps/kitty/" "$XDG_CONFIG_HOME/kitty"
# rofi config
2017-05-05 01:47:33 -05:00
"$dfp/apps/rofi/config" "$XDG_CONFIG_HOME/rofi/config"
2017-04-03 14:38:53 -05:00
# bar files
2017-05-05 01:47:33 -05:00
"$dfp/de/bar/polybar-config" "$XDG_CONFIG_HOME/polybar/config"
# ranger config
2017-12-21 12:34:02 -06:00
"$dfp/apps/ranger/" "$XDG_CONFIG_HOME/ranger"
2017-12-21 12:18:17 -06:00
# mutt config
"$dfp/apps/mutt/muttrc" "$XDG_CONFIG_HOME/.muttrc"
"$dfp/apps/mutt/muttrc" "$HOME/.muttrc"
2017-07-27 13:00:48 -05:00
# neofetch config
"$dfp/apps/neofetch/config" "$XDG_CONFIG_HOME/neofetch/config"
# git config
2017-05-05 01:47:33 -05:00
"$dfp/apps/git/config" "$HOME/.gitconfig"
# fontconfig
2017-12-21 12:34:02 -06:00
"$dfp/de/fontconfig/" "$XDG_CONFIG_HOME/fontconfig"
# XDG user directories
"$dfp/shell/user-dirs" "$XDG_CONFIG_HOME/user-dirs.dirs"
2017-02-07 16:16:45 -06:00
)
2018-11-08 09:34:17 -06:00
_dotfiles_setup_run_setup "$dfp/.agreed-to-erasing-files.lock" "${links[@]}"
echo -n -e "Do you want to run the sudo_setup script for changes to /etc"
echo -n -e "\nand other root directories?"
read -r -p " [y/N] " response
response=${response,,} # to lower case
if [[ $response =~ ^(yes|y)$ ]]; then
"$dfp/sudo_setup"
fi
echo -e "Dotfiles Installed! Running 'exec bash'...\n"
exec bash