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 #!/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) username=$(whoami)
prev=$(pwd) prev=$(pwd)
verbose=0 verbose=0
rm -rf "~/dots_backup"
while getopts "v" OPTION while getopts "v" OPTION
do do
case $OPTION in case $OPTION in
@ -49,7 +51,7 @@ IFS="
info "Backing up your old dotfiles" info "Backing up your old dotfiles"
## Backup eveything in the git tree ## Backup eveything in the git tree
mkdir "$HOME/dots_backup" mkdir "$HOME/dots_backup"
for i in $(dots ls-files); do
for i in $(bash -c "$dots ls-files"); do
if [ -f "$i" ]; then if [ -f "$i" ]; then
debug "$i" debug "$i"
mkdir -p "$HOME/dots_backup/$(echo "$i" | sed "s/\/[^\/]*$//g")" 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 ln -s ~/.dotfiles/local/share/icons ~/.icons
info "Checking out dotfiles" info "Checking out dotfiles"
dots checkout
bash -c "$dots checkout"
# Configuring for your username # Configuring for your username
if [ ! "$username" = "yigit" ]; then if [ ! "$username" = "yigit" ]; then
info "Replacing the occurences of /home/yigit with /home/$username" info "Replacing the occurences of /home/yigit with /home/$username"
echo "Setting up the dotfiles according to your 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 fi
info "Setting up sudo so that you won't be prompted for a password for the next of the script" 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=" IFS="
" "
for i in $(cat "$HOME/.local/root/mappings"); do 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 mkdir -p "$(echo "$dest" | sed "s/\/[^\/]*$//g")"
sudo cp "$HOME/.local/root/$src" "$dest" sudo cp "$HOME/.local/root/$src" "$dest"
done done
@ -133,7 +135,7 @@ cp ~/.config/config.env.default ~/.config/config.env
##Fonts ##Fonts
info "Downloading assets" info "Downloading assets"
debug "Downloading minio binary" 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" chmod +x "$HOME/.local/bin/mc"
alias mc="$HOME/.local/bin/mc --config-dir=$XDG_CONFIG_HOME/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 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/ mc cp -r fr1nge/dotfiles/fonts/ ~/.local/share/fonts/
debug "Downloading fonts" debug "Downloading fonts"
mc cp -r fr1nge/dotfiles/backgrounds/ ~/.local/backgrounds/ mc cp -r fr1nge/dotfiles/backgrounds/ ~/.local/backgrounds/
fc-cache
debug "Downloading the GTK theme" debug "Downloading the GTK theme"
git clone https://github.com/material-ocean/Gtk-Theme.git "$XDG_DATA_HOME/themes/material-ocean" git clone https://github.com/material-ocean/Gtk-Theme.git "$XDG_DATA_HOME/themes/material-ocean"
debug "Downloading the icon set" debug "Downloading the icon set"
git clone https://github.com/vinceliuice/Tela-icon-theme.git /tmp/tela git clone https://github.com/vinceliuice/Tela-icon-theme.git /tmp/tela
fc-cache
# Setup Crontab # Setup Crontab
if [ ! -f "/var/spool/cron/$username" ]; then if [ ! -f "/var/spool/cron/$username" ]; then
@ -206,7 +208,7 @@ cd $prev
mkdir -p ~/.tmux/plugins mkdir -p ~/.tmux/plugins
vim +PlugInstall +qall vim +PlugInstall +qall
cd ~/.config/coc/extensions cd ~/.config/coc/extensions
yarn
yarn install
cd $prev cd $prev
# Install mconnect # Install mconnect
@ -236,8 +238,8 @@ rm -rf ~/.dotfiles/.git/hooks/*
rm -rf ~/install.sh rm -rf ~/install.sh
rm -rf ~/README.md rm -rf ~/README.md
rm -rf ~/pkg.list 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 sudo rm -rf /etc/urlview/system.urlview
echo "I am now restarting your system so that the configurations changes apply" echo "I am now restarting your system so that the configurations changes apply"
sleep 5 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 yajl
webkit2gtk webkit2gtk
surfraw surfraw
@ -8,25 +20,19 @@ antibody
direnv direnv
tmux tmux
lf lf
bitwarden-cli
wallabag-client
spotify-tui
spotifyd-full-git
zathura zathura
notmuch notmuch
msmtp msmtp
isync isync
pass pass
pass-otp pass-otp
newsboat
pam-gnupg pam-gnupg
libgee libgee
calcurse calcurse
neomutt neomutt
nvim
neovim
mpd mpd
mpc mpc
mpc-mpris
libxfixes libxfixes
libxi libxi
libxt libxt


Loading…
Cancel
Save