Skip to content

Instantly share code, notes, and snippets.

@alexng353
Last active January 29, 2024 08:08
Show Gist options
  • Save alexng353/943663453997e285252666036be31355 to your computer and use it in GitHub Desktop.
Save alexng353/943663453997e285252666036be31355 to your computer and use it in GitHub Desktop.
scuffed dotfiles
[font]
# size = 12
normal = { family = "Monaspace Neon", style = "Regular" }
italic = { family = "Monaspace Radon", style = "Italic" }
[shell]
program = "/bin/zsh"
if [ "$SHELL" != "/usr/bin/zsh" ]; then
echo "Changing shell to zsh..."
sudo pacman -Syu zsh
chsh /usr/bin/zsh
echo "please re-run this script in zsh, now that it is installed."
fi
sudo pacman -Syu git base-devel curl go
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
echo "Installing yay..."
mkdir -p $HOME/.tmp
cd .tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd
sudo pacman -Syu unzip gcc tar spotifyd neovim ripgrep lazygit alacritty neofetch docker docker-compose docker-buildx
yay -S spotify-tui
mkdir -p $HOME/.config/systemd/user/
curl -L https://gist.githubusercontent.com/alexng353/943663453997e285252666036be31355/raw/8f835157f999ce25773c8d75423f65e269435f8d/spotifyd.service > $HOME/.config/systemd/user/spotifyd.service
systemctl --user daemon-reload
systemctl --user enable spotifyd.service
systemctl --user start spotifyd.service
echo "Installing Neovim..."
mkdir -p $HOME/.config/nvim
git clone --depth 1 https://github.com/alexng353/init.lua $HOME/.config/nvim
echo "Installing Monaspace"
mkdir -p .tmp
cd .tmp
curl -L https://github.com/githubnext/monaspace/releases/download/v1.000/monaspace-v1.000.zip > monaspace-v1.000.zip
unzip monaspace-v1.000.zip
mkdir -p ~/.local/share/fonts/Monaspace
mv monaspace-v1.000/fonts/otf/*.otf ~/.local/share/fonts/Monaspace/
fc-cache -v
cd
mkdir -p $HOME/.config/alacritty
curl -L https://gist.githubusercontent.com/alexng353/943663453997e285252666036be31355/raw/9282f73a81980c3bbdd756bac2ac26b92013d9b3/alacritty.toml > $HOME/alacritty/alacritty.toml
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
echo "alias ls='ls --color=auto'" >> ~/.zshrc
echo "alias grep='grep --color=auto'" >> ~/.zshrc
echo "export GPG_TTY=$(tty)" >> ~/.zshrc
[Unit]
Description=A spotify playing daemon
Documentation=https://github.com/Spotifyd/spotifyd
Wants=sound.target
After=sound.target
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/spotifyd --no-daemon
Restart=always
RestartSec=12
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment