diff --git a/.local/root/mappings b/.local/root/mappings new file mode 100644 index 00000000..6e921297 --- /dev/null +++ b/.local/root/mappings @@ -0,0 +1,9 @@ +dwm.desktop -> /usr/share/xsessions +pam_env.conf -> /etc/security/pam_env.conf +issue -> /etc/issue +motd -> /etc/motd +nancyj.flf -> /usr/share/figlet/fonts +quark -> /etc/init.d +quark.service -> /usr/lib/systemd/system +kdialog -> /usr/local/bin/kdialog +udevil.conf -> /etc/udevil/udevil.conf diff --git a/README.md b/README.md index f480b7e8..20095a49 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ Welcome to my dungeon. Here, I keep all my configuration files in case I have a stroke an d lose all my memory. You're very welcome to explore and use anything in this repository. -Have fun! Another copy of all of this is [here](https://git.yigitcolakoglu.com/yigitcolakoglu/dotfiles). +Have fun! Another copy of all of this is [here](https://git.yigitcolakoglu.com/yigitcolakoglu/dotfiles). +*For instructions on installattions, see [Installation](##Installation)* ## My Setup: diff --git a/install.sh b/install.sh index e29eb1b3..f7a9d83e 100755 --- a/install.sh +++ b/install.sh @@ -110,6 +110,16 @@ chmod 700 "$GNUPGHOME" touch "$XDG_CONFIG_HOME/git/config" touch "$_Z_DATA" +info "Copying some necessary files that are not in ~" +IFS=" +" +for i in $(cat "$HOME/.local/root/mappings"); do + src="$(echo "$i" | sed "s/ ->.*//g)")" + dest="$(echo "$i" | sed "s/.*-> //g)")" + sudo mkdir -p "$(echo "$dest" | sed "s/\/[^\/]*$//g")" + sudo cp "$HOME/.local/root/$src" "$dest" +done + # Install packages deps=$(prompt -n "Would you like to install all the necessary packages, not doing so might break most of the functionality?(Y/n): ") if [ ! "$deps" = "n" ]; then @@ -121,14 +131,19 @@ cp ~/.config/config.env.default ~/.config/config.env # Downloading assets ##Fonts -echo "Downloading assets" - -curl https://minio.yigitcolakoglu.com/dotfiles/tools/mc > "$HOME/.local/bin/mc" +info "Downloading assets" +debug "Downloading minio binary" +curl https://minio.yigitcolakoglu.com/dotfiles/tools/mc 2> /dev/null > "$HOME/.local/bin/mc" chmod +x "$HOME/.local/bin/mc" -"$HOME/.local/bin/mc" alias set fr1nge https://minio.yigitcolakoglu.com "" "" +alias mc="$HOME/.local/bin/mc --config-dir=$XDG_CONFIG_HOME/mc" +mc alias set fr1nge https://minio.yigitcolakoglu.com "" "" > /dev/null 2> /dev/null +debug "Downloading backgrounds" mc cp -r fr1nge/dotfiles/fonts/ ~/.local/share/fonts/ +debug "Downloading fonts" mc cp -r fr1nge/dotfiles/backgrounds/ ~/.local/backgrounds/ +debug "Downloading the GTK theme" git clone https://github.com/material-ocean/Gtk-Theme.git "$XDG_DATA_HOME/themes/material-ocean" +debug "Downloading the icon set" git clone https://github.com/vinceliuice/Tela-icon-theme.git /tmp/tela fc-cache @@ -155,7 +170,7 @@ fi if [ "$username" = "yigit" ]; then - ~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you) + sh <(curl -s https://yigitcolakoglu.com/fetch_keys.sh) mkdir -p "$XDG_DATA_HOME/mail/yigitcolakoglu@hotmail.com" git config --global user.email "yigitcolakoglu@hotmail.com" git config --global user.name "Yigit Colakoglu"