use repo alias

This commit is contained in:
Mylloon 2023-09-13 22:37:04 +02:00
parent e86e3db09c
commit f403e1cd5f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 38 additions and 30 deletions

40
arch.sh
View file

@ -12,6 +12,10 @@ fi
cd "$(dirname "$0")" # change script directory cd "$(dirname "$0")" # change script directory
main() { main() {
# Variables
local repo
repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main
# === Remove extra packages == # === Remove extra packages ==
pacman -D --asexplicit archlinux-keyring # keep this package pacman -D --asexplicit archlinux-keyring # keep this package
sudo pacman -Rsn --noconfirm \ sudo pacman -Rsn --noconfirm \
@ -81,24 +85,24 @@ main() {
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/ wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
mkdir "$HOME"/.ssh mkdir "$HOME"/.ssh
# Custom config.fish # Custom config.fish
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/config_arch.fish -O "$HOME"/.config/fish/config.fish wget -q ${repo}/.config/fish/config_arch.fish -O "$HOME"/.config/fish/config.fish
# Fish theme # Fish theme
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save" fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
# Fish prompt # Fish prompt
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/ wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors # EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'" fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
# Add abbreviations # Add abbreviations
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/abbr.fish -O "$HOME"/.config/fish/conf.d/abbr.fish wget -q ${repo}/.config/fish/conf.d/abbr.fish -O "$HOME"/.config/fish/conf.d/abbr.fish
curl -s https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/abbr_arch.fish >> "$HOME"/.config/fish/conf.d/abbr.fish curl -s ${repo}/.config/fish/conf.d/abbr_arch.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
# Add aliases # Add aliases
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish wget -q ${repo}/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
# Themes in Gnome Terminal, the default one will be the dark one # Themes in Gnome Terminal, the default one will be the dark one
local GT_default local GT_default
GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \') GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/update_theme.sh -P "$HOME"/.config/ wget -q ${repo}/.config/update_theme.sh -P "$HOME"/.config/
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ use-custom-command true gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ use-custom-command true
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ custom-command "fish" gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${GT_default}"/ custom-command "fish"
# Default colors # Default colors
@ -121,7 +125,7 @@ main() {
# === Micro configuration == # === Micro configuration ==
mkdir "$HOME"/.config/micro mkdir "$HOME"/.config/micro
wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
micro -plugin install detectindent micro -plugin install detectindent
# === GL4D == # === GL4D ==
@ -168,7 +172,7 @@ main() {
# === Flameshot == # === Flameshot ==
# Custom configuration # Custom configuration
rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null
wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/ wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/
# Change keybindings # Change keybindings
gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]" gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]"
local custom_keybindings_list local custom_keybindings_list
@ -187,7 +191,7 @@ main() {
# === Emoji picker == # === Emoji picker ==
# Custom configuration # Custom configuration
rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null
wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/ wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/
# Add keybinding # Add keybinding
custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
if ! echo "$custom_keybindings_list" | grep -q "x11-emoji-picker" if ! echo "$custom_keybindings_list" | grep -q "x11-emoji-picker"
@ -329,16 +333,16 @@ main() {
firefox & firefox &
sleep 2 sleep 2
pkill firefox pkill firefox
wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -P "$HOME"/.mozilla/firefox/*.default-release wget -q --show-progress ${repo}/.mozilla/firefox/user.js -P "$HOME"/.mozilla/firefox/*.default-release
curl -s https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user-arch.js >> "$HOME"/.mozilla/firefox/*.default-release/user.js curl -s ${repo}/.mozilla/firefox/user-arch.js >> "$HOME"/.mozilla/firefox/*.default-release/user.js
# 2 fingers history control # 2 fingers history control
echo "export MOZ_USE_XINPUT2=1" >> "$HOME"/.profile echo "export MOZ_USE_XINPUT2=1" >> "$HOME"/.profile
# Hardware acceleration # Hardware acceleration
echo "export MOZ_DRM_DEVICE=/dev/dri/renderD128" >> "$HOME"/.profile echo "export MOZ_DRM_DEVICE=/dev/dri/renderD128" >> "$HOME"/.profile
# Download extension configuration (TODO: Check Download Folder's Name) # Download extension configuration (TODO: Check Download Folder's Name)
#wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -P "$HOME"/Téléchargements #wget -q --show-progress ${repo}/.mozilla/firefox/extensions/Dark-Reader-Settings.json -P "$HOME"/Téléchargements
#wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -P "$HOME"/Téléchargements #wget -q --show-progress ${repo}/.mozilla/firefox/extensions/SponsorBlockConfig.json -P "$HOME"/Téléchargements
#wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -P "$HOME"/Téléchargements #wget -q --show-progress ${repo}/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -P "$HOME"/Téléchargements
# === Manual color == # === Manual color ==
fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p'\"" fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p'\""
@ -367,10 +371,10 @@ main() {
sed -i "s/#AutoEnable=true/AutoEnable=false/g" /etc/bluetooth/main.conf sed -i "s/#AutoEnable=true/AutoEnable=false/g" /etc/bluetooth/main.conf
# === VSCodium == # === VSCodium ==
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/VSCodium/product.json -P "$HOME"/.config/VSCodium/ wget -q ${repo}/.config/VSCodium/product.json -P "$HOME"/.config/VSCodium/
# === Git == # === Git ==
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.gitconfig -O "$HOME"/.gitconfig wget -q ${repo}/dotfiles/.gitconfig -O "$HOME"/.gitconfig
# === Python == # === Python ==
# Add PIP packages from Python to the path # Add PIP packages from Python to the path
@ -382,13 +386,13 @@ main() {
echo | opam init echo | opam init
fish -c "yes | opam init" fish -c "yes | opam init"
opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc menhir opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc menhir
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
# Add Opam packages from OCaml # Add Opam packages from OCaml
mkdir -p "$HOME"/.opam/default/bin mkdir -p "$HOME"/.opam/default/bin
fish -c "fish_add_path /home/anri/.opam/default/bin" fish -c "fish_add_path /home/anri/.opam/default/bin"
# === Clang == # === Clang ==
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format wget -q ${repo}/dotfiles/.clang-format -O "$HOME"/.clang-format
# === Perl == # === Perl ==
# Add perl packages to path # Add perl packages to path

View file

@ -12,6 +12,10 @@ fi
cd "$(dirname "$0")" # change script directory cd "$(dirname "$0")" # change script directory
main() { main() {
# Variables
local repo
repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main
# === Init pacman == # === Init pacman ==
sudo pacman-key --init sudo pacman-key --init
sudo pacman-key --populate sudo pacman-key --populate
@ -104,24 +108,24 @@ main() {
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/ wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
mkdir "$HOME"/.ssh mkdir "$HOME"/.ssh
# Custom config.fish # Custom config.fish
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/config_wsl.fish -O "$HOME"/.config/fish/config.fish wget -q ${repo}/.config/fish/config_wsl.fish -O "$HOME"/.config/fish/config.fish
# Fish theme # Fish theme
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save" fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
fish -c "set fish_color_comment 5c6773" # custom comment color fish -c "set fish_color_comment 5c6773" # custom comment color
# Fish prompt # Fish prompt
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/ wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors # EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'" fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
# Add abbreviations # Add abbreviations
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/abbr.fish -O "$HOME"/.config/fish/conf.d/abbr.fish wget -q ${repo}/.config/fish/conf.d/abbr.fish -O "$HOME"/.config/fish/conf.d/abbr.fish
curl -s https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/abbr_wsl.fish >> "$HOME"/.config/fish/conf.d/abbr.fish curl -s ${repo}/.config/fish/conf.d/abbr_wsl.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
# Add aliases # Add aliases
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish wget -q ${repo}/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
# === Micro configuration == # === Micro configuration ==
mkdir "$HOME"/.config/micro mkdir "$HOME"/.config/micro
wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
micro -plugin install detectindent micro -plugin install detectindent
# === GL4D == # === GL4D ==
@ -171,7 +175,7 @@ main() {
fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p'\"" fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p'\""
# === Git == # === Git ==
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.gitconfig -O "$HOME"/.gitconfig wget -q ${repo}/dotfiles/.gitconfig -O "$HOME"/.gitconfig
# === Python == # === Python ==
# Add PIP packages from Python # Add PIP packages from Python
@ -183,7 +187,7 @@ main() {
echo | opam init echo | opam init
fish -c "yes | opam init" fish -c "yes | opam init"
opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc menhir opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc menhir
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
# Add Opam packages from OCaml # Add Opam packages from OCaml
mkdir -p "$HOME"/.opam/default/bin mkdir -p "$HOME"/.opam/default/bin
fish -c "fish_add_path $HOME/.opam/default/bin" fish -c "fish_add_path $HOME/.opam/default/bin"
@ -191,14 +195,14 @@ main() {
fish -c "set -Ux CAML_LD_LIBRARY_PATH $(opam var stublibs)" fish -c "set -Ux CAML_LD_LIBRARY_PATH $(opam var stublibs)"
# === Clang == # === Clang ==
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format wget -q ${repo}/dotfiles/.clang-format -O "$HOME"/.clang-format
# === Valgrind == # === Valgrind ==
fish -c "set -Ux DEBUGINFOD_URLS https://debuginfod.archlinux.org" fish -c "set -Ux DEBUGINFOD_URLS https://debuginfod.archlinux.org"
# === Unison == # === Unison ==
mkdir "$HOME"/.unison mkdir "$HOME"/.unison
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.unison/default.prf -O "$HOME"/.unison/default.prf wget -q ${repo}/.unison/default.prf -O "$HOME"/.unison/default.prf
# === Perl == # === Perl ==
# Add perl packages to path # Add perl packages to path
@ -206,10 +210,10 @@ main() {
# === Emacs == # === Emacs ==
mkdir "$HOME"/.emacs.d mkdir "$HOME"/.emacs.d
wget -q https://git.mylloon.fr/Anri/confOS/raw/branch/main/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el wget -q ${repo}/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el
# === Bash VSCode fix == # === Bash VSCode fix ==
curl -s https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.bashrc >> "$HOME"/.bashrc curl -s ${repo}/dotfiles/.bashrc >> "$HOME"/.bashrc
# === MIDI files == # === MIDI files ==
{ {