.dotfiles/dotman

74 lines
2.2 KiB
Plaintext
Raw Normal View History

2020-03-08 11:37:23 +01:00
#!/usr/bin/zsh
greeter() {
cat <<EOF
_ _
__| | ___ | |_ _ __ ___ __ _ _ __
/ _\` |/ _ \\| __| '_ \` _ \ / _\` | '_ \
| (_| | (_) | |_| | | | | | (_| | | | |
\__,_|\___/ \__|_| |_| |_|\__,_|_| |_|
EOF
}
greeter
# install git
2020-03-08 20:01:24 +01:00
sudo pacman -S --noconfirm git
# install yay
2020-03-08 20:01:24 +01:00
mkdir -p ~/.cache/dotfiles/
cd ~/.cache/dotfiles/
git clone https://aur.archlinux.org/yay.git
cd yay
2020-03-08 20:01:24 +01:00
makepkg -si --noconfirm
# install all dependencies and packages
2020-03-08 20:01:24 +01:00
yay -S --noconfirm neovim qutebrowser telegram-desktop minecraft-launcher dunst bspwm sxhkd htop mpd ncmpcpp picom ranger rofi transmission-cli vlc zsh youtube-dl grc curl wget dmenu xclip figlet w3m xorg-server xorg-xinit ttf-font-awesome ttf-dejavu vifm feh xorg-xsetroot lxappearance python-pip alsa-utils tmux networkmanager maim fzf exfat-utils fuse2 udiskie udisks2 imagemagick i3lock-color man checkupdates+aur pacman-contrib polybar ccls clang eslint python-pylsl flake8 shellcheck clang-format-linter-git prettier python-black
pip3 install --user -U pynvim msgpack
# build and install st
2020-03-08 20:01:24 +01:00
cd ~/.cache/dotfiles/
git clone https://gitlab.com/samedamci/st
cd st
sudo make clean install
# copy configs
2020-03-08 19:37:00 +01:00
cd ~/Dotfiles/botfiles/.config
cp -r * ~/.config/
2020-03-08 11:37:23 +01:00
if [ "$HOST" = "pc" ]; then
echo "Use pc config"
mv ~/.config/polybar/config.pc ~/.config/polybar/config
2020-03-08 19:41:18 +01:00
elif [ "$HOST" = "laptop" ]; then
2020-03-08 11:37:23 +01:00
echo "Use laptop config..."
mv ~/.config/polybar/config.laptop ~/.config/polybar/config
fi
2020-03-08 20:01:24 +01:00
cd ~/Dotfiles/botfiles
mkdir -p ~/.local/share/TelegramDesktop/tdata/
2020-03-08 20:01:24 +01:00
cp shortcuts-custom.json ~/.local/share/TelegramDesktop/tdata
2020-03-08 20:01:24 +01:00
cp .zshrc .aliases .zprofile .Xresources .xinitrc ~/
cp -r .scripts ~/
chmod +x ~/.scripts/*
chsh -s /usr/bin/zsh
cd ~/.config/zsh
2020-03-08 20:01:24 +01:00
rm -rf plugins
mkdir plugins
cd plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions
# udisk config
sudo mkdir /media
su root -c "echo 'ENV{ID_FS_USAGE}==\"filesystem|other|crypto\", ENV{UDISKS_FILESYSTEM_SHARED}=\"1\"' > /etc/udev/rules.d/99-udisks2.rules && echo 'D /media 0755 root root 0 -' > /etc/tmpfiles.d/media.conf"
# manual configuration
clear
echo "Please edit /etc/pacman.conf and uncomment 'Colors' and write 'ILoveCandy'."