Browse Source

Updated install script and package list

main
Fr1nge 3 years ago
parent
commit
65e012e7a9
2 changed files with 26 additions and 18 deletions
  1. +13
    -11
      install.sh
  2. +13
    -7
      pkg.list

+ 13
- 11
install.sh View File

@ -1,10 +1,12 @@
#!/bin/bash
alias dots="git --git-dir=\$HOME/.dotfiles.git/ --work-tree=\$HOME"
dots="git --git-dir=\$HOME/.dotfiles.git/ --work-tree=\$HOME"
username=$(whoami)
prev=$(pwd)
verbose=0
rm -rf "~/dots_backup"
while getopts "v" OPTION
do
case $OPTION in
@ -49,7 +51,7 @@ IFS="
info "Backing up your old dotfiles"
## Backup eveything in the git tree
mkdir "$HOME/dots_backup"
for i in $(dots ls-files); do
for i in $(bash -c "$dots ls-files"); do
if [ -f "$i" ]; then
debug "$i"
mkdir -p "$HOME/dots_backup/$(echo "$i" | sed "s/\/[^\/]*$//g")"
@ -64,13 +66,13 @@ mvie ~/.icons ~/.dotfiles_backup/icons
ln -s ~/.dotfiles/local/share/icons ~/.icons
info "Checking out dotfiles"
dots checkout
bash -c "$dots checkout"
# Configuring for your username
if [ ! "$username" = "yigit" ]; then
info "Replacing the occurences of /home/yigit with /home/$username"
echo "Setting up the dotfiles according to your username"
dots ls-files | xargs -L 1 sed -i "s/\/home\/yigit/\/home\/$username/g"
bash -c "$dots ls-files | xargs -L 1 sed -i \"s/\/home\/yigit/\/home\/$username/g\""
fi
info "Setting up sudo so that you won't be prompted for a password for the next of the script"
@ -114,8 +116,8 @@ 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)")"
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
@ -133,7 +135,7 @@ cp ~/.config/config.env.default ~/.config/config.env
##Fonts
info "Downloading assets"
debug "Downloading minio binary"
curl https://minio.yigitcolakoglu.com/dotfiles/tools/mc 2> /dev/null > "$HOME/.local/bin/mc"
wget https://minio.yigitcolakoglu.com/dotfiles/tools/mc > "$HOME/.local/bin/mc"
chmod +x "$HOME/.local/bin/mc"
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
@ -141,11 +143,11 @@ debug "Downloading backgrounds"
mc cp -r fr1nge/dotfiles/fonts/ ~/.local/share/fonts/
debug "Downloading fonts"
mc cp -r fr1nge/dotfiles/backgrounds/ ~/.local/backgrounds/
fc-cache
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
# Setup Crontab
if [ ! -f "/var/spool/cron/$username" ]; then
@ -206,7 +208,7 @@ cd $prev
mkdir -p ~/.tmux/plugins
vim +PlugInstall +qall
cd ~/.config/coc/extensions
yarn
yarn install
cd $prev
# Install mconnect
@ -236,8 +238,8 @@ rm -rf ~/.dotfiles/.git/hooks/*
rm -rf ~/install.sh
rm -rf ~/README.md
rm -rf ~/pkg.list
dots update-index --assume-unchanged {pkg.list,install.sh,README.md}
dots config --local status.showUntrackedFiles no
bash -c "$dots update-index --assume-unchanged {pkg.list,install.sh,README.md}"
bash -c "$dots config --local status.showUntrackedFiles no"
sudo rm -rf /etc/urlview/system.urlview
echo "I am now restarting your system so that the configurations changes apply"
sleep 5


+ 13
- 7
pkg.list View File

@ -1,3 +1,15 @@
ripgrep
xclip
python-pynvim
ctags
xkb-switch
mpdris2
nodejs
npm
xss-lock
picom
cronie
wget
yajl
webkit2gtk
surfraw
@ -8,25 +20,19 @@ antibody
direnv
tmux
lf
bitwarden-cli
wallabag-client
spotify-tui
spotifyd-full-git
zathura
notmuch
msmtp
isync
pass
pass-otp
newsboat
pam-gnupg
libgee
calcurse
neomutt
nvim
neovim
mpd
mpc
mpc-mpris
libxfixes
libxi
libxt


Loading…
Cancel
Save