#!/bin/bash echo "Setting up the stuff..." if [[ "$(cat /etc/os-release)" == *"Ubuntu"* ]] then echo "Updating Ubuntu" sudo apt update && sudo apt upgrade echo "Installing tools/utils" sudo apt install ripgrep fd-find make stow tmux lxsession thunar power-profiles-daemon playerctl network-manager-gnome volumeicon-alsa picom autorandr arandr echo "Installing arc-icon-theme" mkdir -p ~/git git clone https://github.com/horst3180/arc-icon-theme --depth 1 ~/git/arc-icon-theme && cd ~/git/arc-icon-theme ./autogen.sh --prefix=/usr sudo make install else echo "Updating Arch" sudo pacman -Syyu echo "Installing tools/utils" sudo pacman -S ripgrep fd neovim make stow tmux sudo pacman -S ripgrep fd neovim make stow tmux dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 power-profiles-daemon thermald acpi arc-icon-theme playerctl bspwm sxhkd polybar sudo systemctl enable --now power-profiles-daemon sudo thermald --systemd sudo power-profiles-daemon set performance fi # tmux plugin manager and theme echo "Installing tmux plugin manager... Don't forget to press in a new tmux session later" git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm add_to_file() { if grep -Fxq "$1" $2 then echo "Found existing line '$1' in file '$2'" else echo "Adding line \"$1\" to file \"$2\"" echo "$1" >> $2 fi } nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' # Add aliases to zshrc add_to_file "alias nv='nvim'" "$HOME/.zshrc"