You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chroot-debian-live/root/srv/get_dotfiles.sh

50 lines
2.5 KiB

2 years ago
#!/bin/sh
set -e
cd "$HOME"
rm "$HOME/.profile"
mkdir -p "$HOME/.local/share/backgrounds"
cp /srv/background.jpg "$HOME/.local/share/backgrounds/"
mkdir -p "$HOME/.config"
printf "LANG=it_IT.UTF-8\nLANGUAGE=it_IT:en_US:en\n" > "$HOME/.config/locale.conf"
git clone https://gitlab.com/meliurwen/dotfiles.git .dotfiles
cd .dotfiles
# TODO: use dotvenv
2 years ago
cat ".mousepad/mousepad.dconf" | dbus-run-session dconf load "/org/xfce/mousepad/"
cat ".nemo/nemo.dconf" | dbus-run-session dconf load "/org/nemo/"
cat ".gnome/gnome.dconf" | dbus-run-session dconf load "/org/gnome/desktop/interface/"
cat ".cinnamon/cinnamon.dconf" | dbus-run-session dconf load "/org/cinnamon/desktop/applications/terminal/"
2 years ago
stow --restow --no-folding */
mkdir -p /tmp/deb-live/fonts
wget https://raw.githubusercontent.com/Keyamoon/IcoMoon-Free/master/Font/IcoMoon-Free.ttf -O /tmp/deb-live/fonts/IcoMoon-Free.ttf
wget https://raw.githubusercontent.com/google/material-design-icons/master/font/MaterialIcons-Regular.ttf -O /tmp/deb-live/fonts/MaterialIcons-Regular.ttf
wget https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/ProggyClean/SlashedZero/complete/ProggyCleanTTSZ%20Nerd%20Font%20Complete%20Mono.ttf -O "/tmp/deb-live/fonts/ProggyCleanTTSZ Nerd Font Complete Mono.ttf"
wget https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Ubuntu/Bold/complete/Ubuntu%20Bold%20Nerd%20Font%20Complete.ttf -O "/tmp/deb-live/fonts/Ubuntu Bold Nerd Font Complete.ttf"
wget https://fonts.google.com/download?family=Noto%20Emoji -O /tmp/deb-live/noto-emoji.zip && unzip -p /tmp/deb-live/noto-emoji.zip static/NotoEmoji-Regular.ttf > /tmp/deb-live/fonts/NotoEmoji-Regular.ttf
mkdir -p "$HOME/.local/share/fonts"
cp /tmp/deb-live/fonts/* "$HOME/.local/share/fonts/"
mkdir -p /tmp/deb-live/consolefonts
wget https://raw.githubusercontent.com/powerline/fonts/master/Terminus/PSF/ter-powerline-v12n.psf.gz -O "/tmp/deb-live/consolefonts/ter-powerline-v12n.psf.gz"
mkdir -p "$HOME/.local/share/consolefonts"
cp /tmp/deb-live/consolefonts/* "$HOME/.local/share/consolefonts/"
# Reload locally installed fonts
fc-cache -f -v
# Installing zsh plugins
ln -s /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh $HOME/.config/zsh/plugins/zsh-autosuggestions.zsh
ln -s /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh $HOME/.config/zsh/plugins/zsh-syntax-highlighting.zsh
# Enabling Pipewire
systemctl --user --now enable pipewire pipewire-pulse || echo "pipewire should be enabled now..."