wget changes

This commit is contained in:
Mylloon 2024-10-06 21:19:47 +02:00
parent 3395d99593
commit fffd781bd2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 20 additions and 25 deletions

22
arch.sh
View file

@ -79,7 +79,7 @@ function main {
# 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 ${repo}/.config/update_theme.sh -P "$HOME"/.config/ wget -q ${repo}/.config/update_theme.sh -O "$HOME"/.config/update_theme.sh
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
@ -114,8 +114,7 @@ function main {
# === Flameshot == # === Flameshot ==
# Custom configuration # Custom configuration
rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null ||: wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -O "$HOME"/.config/flameshot/flameshot.ini
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 flameshot_shortcuts local custom_keybindings_list flameshot_shortcuts
@ -140,8 +139,7 @@ function main {
# === Emoji picker == # === Emoji picker ==
# Custom configuration # Custom configuration
rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null ||: wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -O "$HOME"/.config/gazatu.xyz/emoji-picker.ini
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 ${gs_mediakey} custom-keybindings) custom_keybindings_list=$(gsettings get ${gs_mediakey} custom-keybindings)
if ! echo "$custom_keybindings_list" | grep -q "x11-emoji-picker" if ! echo "$custom_keybindings_list" | grep -q "x11-emoji-picker"
@ -240,7 +238,7 @@ function main {
gsettings set org.gnome.TextEditor show-line-numbers true gsettings set org.gnome.TextEditor show-line-numbers true
# Configuration Blackbox # Configuration Blackbox
wget -q --show-progress ${repo}/.local/share/blackbox/user-keymap.json -P "$HOME"/.local/share/blackbox/ # keymap # TODO: Quid de mkdir avant? est-ce que un fichier existe pas déjà ?? wget -q --show-progress ${repo}/.local/share/blackbox/user-keymap.json -O "$HOME"/.local/share/blackbox/user-keymap.json # keymap # TODO: Quid de mkdir avant?
gsettings set com.raggesilver.BlackBox use-custom-command true # custom shell gsettings set com.raggesilver.BlackBox use-custom-command true # custom shell
gsettings set com.raggesilver.BlackBox custom-shell-command "fish" # use fish as default gsettings set com.raggesilver.BlackBox custom-shell-command "fish" # use fish as default
gsettings set com.raggesilver.BlackBox easy-copy-paste true # allow ^C and ^V gsettings set com.raggesilver.BlackBox easy-copy-paste true # allow ^C and ^V
@ -299,9 +297,9 @@ function main {
# 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 ${repo}/.mozilla/firefox/extensions/Dark-Reader-Settings.json -P "$HOME"/Téléchargements #wget -q --show-progress ${repo}/.mozilla/firefox/extensions/Dark-Reader-Settings.json -O "$HOME"/Téléchargements/Dark-Reader-Settings.json
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/SponsorBlockConfig.json -P "$HOME"/Téléchargements #wget -q --show-progress ${repo}/.mozilla/firefox/extensions/SponsorBlockConfig.json -O "$HOME"/Téléchargements/SponsorBlockConfig.json
#wget -q --show-progress ${repo}/.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 -O "$HOME"/Téléchargements/auto-tab-discard-preferences.json
# === Docker == # === Docker ==
@ -331,7 +329,7 @@ function main {
# === VSCodium == # === VSCodium ==
wget -q ${repo}/.config/VSCodium/product.json -P "$HOME"/.config/VSCodium/ wget -q ${repo}/.config/VSCodium/product.json -O "$HOME"/.config/VSCodium/product.json
# === Discord == # === Discord ==
@ -366,7 +364,7 @@ function main {
# === s-tui == # === s-tui ==
# Configuration # Configuration
wget -q --show-progress ${repo}/.config/s-tui/s-tui.conf -P "$HOME"/.config/s-tui/ wget -q --show-progress ${repo}/.config/s-tui/s-tui.conf -O "$HOME"/.config/s-tui/s-tui.conf
# === ClamAV == # === ClamAV ==
@ -380,7 +378,7 @@ function main {
# === GPU Screen recorder == # === GPU Screen recorder ==
# Configuration # Configuration
wget -q --show-progress ${repo}/.config/gpu-screen-recorder.env -P "$HOME"/.config/ wget -q --show-progress ${repo}/.config/gpu-screen-recorder.env -O "$HOME"/.config/gpu-screen-recorder.env
# Enable # Enable
systemctl enable --now --user gpu-screen-recorder systemctl enable --now --user gpu-screen-recorder
# Keybind # Keybind

18
meta.sh
View file

@ -68,14 +68,13 @@ function main {
fish -c "fisher install jethrokuan/fzf" fish -c "fisher install jethrokuan/fzf"
fish -c "fisher install jorgebucaran/autopair.fish" fish -c "fisher install jorgebucaran/autopair.fish"
# SSH # SSH
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 -O "$HOME"/.config/fish/functions/fish_ssh_agent.fish
mkdir -p "$HOME"/.ssh mkdir -p "$HOME"/.ssh
# 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 ||: wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -O "$HOME"/.config/fish/functions/fish_prompt.fish
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 configuration # Add configuration
@ -85,13 +84,12 @@ function main {
# Add aliases # Add aliases
wget -q "${repo}"/.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
# Add functions # Add functions
wget -q "${repo}"/.config/fish/functions/catall.fish -P "$HOME"/.config/fish/functions/ functions=("catall" "latex-color" "makeaway" "ssh-export" "ssh-import" "ugc"
wget -q "${repo}"/.config/fish/functions/latex-color.fish -P "$HOME"/.config/fish/functions/ "update-theme")
wget -q "${repo}"/.config/fish/functions/makeaway.fish -P "$HOME"/.config/fish/functions/ for function in "${functions[@]}"
wget -q "${repo}"/.config/fish/functions/ssh-export.fish -P "$HOME"/.config/fish/functions/ do
wget -q "${repo}"/.config/fish/functions/ssh-import.fish -P "$HOME"/.config/fish/functions/ wget -q "${repo}"/.config/fish/functions/"${function}".fish -O "$HOME"/.config/fish/functions/"${function}".fish
wget -q "${repo}"/.config/fish/functions/ugc.fish -P "$HOME"/.config/fish/functions/ done
wget -q "${repo}"/.config/fish/functions/update-theme.fish -P "$HOME"/.config/fish/functions/
# === Default editor == # === Default editor ==

View file

@ -39,8 +39,7 @@ function main {
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 ||: wget -q "${repo}"/.config/fish/functions/fish_prompt.fish -O "$HOME"/.config/fish/functions/fish_prompt.fish
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 configuration # Add configuration

2
wsl.sh
View file

@ -83,7 +83,7 @@ function main {
curl -s ${repo}/.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
curl -s ${repo}/.config/fish/conf.d/alias_wsl.fish >> "$HOME"/.config/fish/conf.d/alias.fish curl -s ${repo}/.config/fish/conf.d/alias_wsl.fish >> "$HOME"/.config/fish/conf.d/alias.fish
# Specific WSL functions # Specific WSL functions
#wget -q "${repo}"/.config/fish/functions/trash.fish -P "$HOME"/.config/fish/functions/ #wget -q "${repo}"/.config/fish/functions/trash.fish -O "$HOME"/.config/fish/functions/trash.fish
# === OCaml == # === OCaml ==