lint
This commit is contained in:
parent
0168ec4e6a
commit
a74d49a54e
4 changed files with 43 additions and 43 deletions
|
@ -20,8 +20,8 @@ function main {
|
|||
|
||||
|
||||
# === Global OS configuration set-up ==
|
||||
curl ${repo}/meta.sh -s | bash -s -- ${repo}
|
||||
curl ${repo}/arch.sh -s | bash -s -- ${repo}
|
||||
curl $repo/meta.sh -s | bash -s -- $repo
|
||||
curl $repo/arch.sh -s | bash -s -- $repo
|
||||
|
||||
|
||||
# === Add pacman hooks ==
|
||||
|
@ -29,7 +29,7 @@ function main {
|
|||
hooks=("gnome-terminal-shortcut" "blackbox-shortcut" "honkai-shortcut" "vesktop")
|
||||
for hook in "${hooks[@]}"
|
||||
do
|
||||
sudo wget -q --show-progress ${repo}/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook
|
||||
sudo wget -q --show-progress $repo/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook
|
||||
done
|
||||
|
||||
|
||||
|
@ -67,13 +67,13 @@ function main {
|
|||
|
||||
# === Fish ==
|
||||
# Custom Arch configuration
|
||||
curl -s ${repo}/.config/fish/conf.d/abbr_gnome.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
|
||||
curl -s ${repo}/.config/fish/conf.d/alias_gnome.fish >> "$HOME"/.config/fish/conf.d/alias.fish
|
||||
curl -s $repo/.config/fish/conf.d/abbr_gnome.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
|
||||
curl -s $repo/.config/fish/conf.d/alias_gnome.fish >> "$HOME"/.config/fish/conf.d/alias.fish
|
||||
|
||||
# Themes in Gnome Terminal, the default one will be the dark one
|
||||
local GT_default
|
||||
GT_default=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
|
||||
wget -q ${repo}/.config/scripts/update_theme.sh -O "$HOME"/.config/update_theme.sh
|
||||
wget -q $repo/.config/scripts/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}"/ custom-command "fish"
|
||||
# Default colors
|
||||
|
@ -106,7 +106,7 @@ function main {
|
|||
|
||||
# === Flameshot ==
|
||||
# Custom configuration
|
||||
wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -O "$HOME"/.config/flameshot/flameshot.ini
|
||||
wget -q --show-progress $repo/.config/flameshot/flameshot.ini -O "$HOME"/.config/flameshot/flameshot.ini
|
||||
# Change keybindings
|
||||
gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]"
|
||||
local custom_keybindings_list flameshot_shortcuts
|
||||
|
@ -230,7 +230,7 @@ function main {
|
|||
gsettings set org.gnome.TextEditor show-line-numbers true
|
||||
|
||||
# Configuration Blackbox
|
||||
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?
|
||||
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 custom-shell-command "fish" # use fish as default
|
||||
gsettings set com.raggesilver.BlackBox easy-copy-paste true # allow ^C and ^V
|
||||
|
@ -279,7 +279,7 @@ function main {
|
|||
|
||||
|
||||
# === Firefox ==
|
||||
curl -s ${repo}/.mozilla/firefox/user-gnome.js >> "$HOME"/.mozilla/firefox/*.default-release/user.js
|
||||
curl -s $repo/.mozilla/firefox/user-gnome.js >> "$HOME"/.mozilla/firefox/*.default-release/user.js
|
||||
# 2 fingers history control
|
||||
echo "export MOZ_USE_XINPUT2=1" >> "$HOME"/.profile
|
||||
|
||||
|
@ -316,7 +316,7 @@ function main {
|
|||
|
||||
# === GPU Screen recorder ==
|
||||
# Configuration
|
||||
wget -q --show-progress ${repo}/.config/gpu-screen-recorder.env -O "$HOME"/.config/gpu-screen-recorder.env
|
||||
wget -q --show-progress $repo/.config/gpu-screen-recorder.env -O "$HOME"/.config/gpu-screen-recorder.env
|
||||
# Add service
|
||||
wget -q --show-progress https://git.dec05eba.com/gpu-screen-recorder/plain/extra/gpu-screen-recorder.service -O /etc/systemd/system/gpu-screen-recorder.service
|
||||
# Enable
|
||||
|
|
20
arch-kde.sh
20
arch-kde.sh
|
@ -19,12 +19,12 @@ function main {
|
|||
|
||||
# === Admin privileges ==
|
||||
sudo usermod -aG wheel "$USER"
|
||||
curl -s ${repo}/polkitrules/49-nopasswd_global.rules > /etc/polkit-1/rules.d/49-nopasswd_global.rules
|
||||
curl -s $repo/polkitrules/49-nopasswd_global.rules > /etc/polkit-1/rules.d/49-nopasswd_global.rules
|
||||
|
||||
|
||||
# === Global OS configuration set-up ==
|
||||
curl ${repo}/meta.sh -s | bash -s -- ${repo}
|
||||
curl ${repo}/arch.sh -s | bash -s -- ${repo}
|
||||
curl $repo/meta.sh -s | bash -s -- $repo
|
||||
curl $repo/arch.sh -s | bash -s -- $repo
|
||||
|
||||
|
||||
# === Add pacman hooks ==
|
||||
|
@ -32,7 +32,7 @@ function main {
|
|||
hooks=("honkai-shortcut" "genshin-shortcut" "zzz-shortcut" "vesktop")
|
||||
for hook in "${hooks[@]}"
|
||||
do
|
||||
sudo wget -q --show-progress ${repo}/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook
|
||||
sudo wget -q --show-progress $repo/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook
|
||||
done
|
||||
|
||||
|
||||
|
@ -51,16 +51,16 @@ function main {
|
|||
|
||||
# === Fish ==
|
||||
# Custom KDE configuration
|
||||
curl -s ${repo}/.config/fish/conf.d/abbr_kde.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
|
||||
curl -s ${repo}/.config/fish/conf.d/alias_kde.fish >> "$HOME"/.config/fish/conf.d/alias.fish
|
||||
curl -s $repo/.config/fish/conf.d/abbr_kde.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
|
||||
curl -s $repo/.config/fish/conf.d/alias_kde.fish >> "$HOME"/.config/fish/conf.d/alias.fish
|
||||
|
||||
|
||||
# === Theme ==
|
||||
mkdir -p "$HOME"/.local/share/konsole
|
||||
wget -q ${repo}/.local/share/konsole/dark.profile -O "$HOME"/.local/share/konsole/dark.profile
|
||||
wget -q ${repo}/.local/share/konsole/light.profile -O "$HOME"/.local/share/konsole/light.profile
|
||||
wget -q ${repo}/.config/scripts/turn_dark.sh -O "$HOME"/.config/turn_dark.sh
|
||||
wget -q ${repo}/.config/scripts/turn_light.sh -O "$HOME"/.config/turn_light.sh
|
||||
wget -q $repo/.local/share/konsole/dark.profile -O "$HOME"/.local/share/konsole/dark.profile
|
||||
wget -q $repo/.local/share/konsole/light.profile -O "$HOME"/.local/share/konsole/light.profile
|
||||
wget -q $repo/.config/scripts/turn_dark.sh -O "$HOME"/.config/turn_dark.sh
|
||||
wget -q $repo/.config/scripts/turn_light.sh -O "$HOME"/.config/turn_light.sh
|
||||
# use dark for the purpose of the installation since we need to choose one, doesn't really matter
|
||||
bash "$HOME"/.config/turn-dark.sh
|
||||
|
||||
|
|
22
arch.sh
22
arch.sh
|
@ -22,7 +22,7 @@ function main {
|
|||
|
||||
|
||||
# === Global OS configuration set-up ==
|
||||
curl ${repo}/meta.sh -s | bash -s -- ${repo}
|
||||
curl "$repo"/meta.sh -s | bash -s -- "$repo"
|
||||
|
||||
|
||||
# === Add pacman hooks ==
|
||||
|
@ -31,7 +31,7 @@ function main {
|
|||
hooks=("stop-wine-associations")
|
||||
for hook in "${hooks[@]}"
|
||||
do
|
||||
sudo wget -q --show-progress ${repo}/pacman.d/hooks/"$hook".hook \
|
||||
sudo wget -q --show-progress "$repo"/pacman.d/hooks/"$hook".hook \
|
||||
-O /etc/pacman.d/hooks/"$hook".hook
|
||||
done
|
||||
|
||||
|
@ -59,8 +59,8 @@ function main {
|
|||
|
||||
# === Fish ==
|
||||
# Custom Arch configuration
|
||||
curl -s ${repo}/.config/fish/conf.d/abbr_arch.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
|
||||
curl -s ${repo}/.config/fish/conf.d/alias_arch.fish >> "$HOME"/.config/fish/conf.d/alias.fish
|
||||
curl -s "$repo"/.config/fish/conf.d/abbr_arch.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
|
||||
curl -s "$repo"/.config/fish/conf.d/alias_arch.fish >> "$HOME"/.config/fish/conf.d/alias.fish
|
||||
|
||||
|
||||
# === Spotify ==
|
||||
|
@ -76,15 +76,15 @@ function main {
|
|||
firefox &
|
||||
sleep 2
|
||||
pkill firefox
|
||||
wget -q --show-progress ${repo}/.mozilla/firefox/user.js \
|
||||
wget -q --show-progress "$repo"/.mozilla/firefox/user.js \
|
||||
-P "$HOME"/.mozilla/firefox/*.default-release
|
||||
curl -s ${repo}/.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
|
||||
# Hardware acceleration
|
||||
echo "export MOZ_DRM_DEVICE=/dev/dri/renderD128" >> "$HOME"/.profile
|
||||
# Download extension configuration (TODO: Check Download Folder's Name)
|
||||
#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 -O "$HOME"/Téléchargements/SponsorBlockConfig.json
|
||||
#wget -q --show-progress ${repo}/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -O "$HOME"/Téléchargements/auto-tab-discard-preferences.json
|
||||
#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 -O "$HOME"/Téléchargements/SponsorBlockConfig.json
|
||||
#wget -q --show-progress "$repo"/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -O "$HOME"/Téléchargements/auto-tab-discard-preferences.json
|
||||
|
||||
|
||||
# === Enable Bluetooth ==
|
||||
|
@ -94,7 +94,7 @@ function main {
|
|||
|
||||
|
||||
# === VSCodium ==
|
||||
wget -q ${repo}/.config/VSCodium/product.json -O "$HOME"/.config/VSCodium/product.json
|
||||
wget -q "$repo"/.config/VSCodium/product.json -O "$HOME"/.config/VSCodium/product.json
|
||||
|
||||
|
||||
# === Printers ==
|
||||
|
@ -117,7 +117,7 @@ function main {
|
|||
|
||||
# === s-tui ==
|
||||
# Configuration
|
||||
wget -q --show-progress ${repo}/.config/s-tui/s-tui.conf -O "$HOME"/.config/s-tui/s-tui.conf
|
||||
wget -q --show-progress "$repo"/.config/s-tui/s-tui.conf -O "$HOME"/.config/s-tui/s-tui.conf
|
||||
|
||||
|
||||
# === ClamAV ==
|
||||
|
|
24
meta.sh
24
meta.sh
|
@ -74,21 +74,21 @@ function main {
|
|||
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
|
||||
fish -c "set fish_color_comment 5c6773" # custom comment color
|
||||
# Fish prompt
|
||||
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 -O "$HOME"/.config/fish/functions/fish_prompt.fish
|
||||
# EZA colors
|
||||
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
||||
# Add configuration
|
||||
wget -q "${repo}"/.config/fish/config.fish -O "$HOME"/.config/fish/config.fish
|
||||
wget -q "$repo"/.config/fish/config.fish -O "$HOME"/.config/fish/config.fish
|
||||
# Add abbreviations
|
||||
wget -q "${repo}"/.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
|
||||
# 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
|
||||
functions=("__fish_list_current_token" "catall" "latex-color" "makeaway"
|
||||
"remove-path" "ssh-export" "ssh-import" "ugc" "update-theme")
|
||||
for function in "${functions[@]}"
|
||||
do
|
||||
wget -q "${repo}"/.config/fish/functions/"${function}".fish -O "$HOME"/.config/fish/functions/"${function}".fish
|
||||
wget -q "$repo"/.config/fish/functions/"${function}".fish -O "$HOME"/.config/fish/functions/"${function}".fish
|
||||
done
|
||||
|
||||
|
||||
|
@ -98,7 +98,7 @@ function main {
|
|||
|
||||
# === Micro configuration ==
|
||||
mkdir -p "$HOME"/.config/micro
|
||||
wget -q --show-progress "${repo}"/.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
|
||||
|
||||
|
||||
|
@ -137,11 +137,11 @@ function main {
|
|||
|
||||
# === Bat config ==
|
||||
mkdir -p "$HOME"/.config/bat
|
||||
wget -q --show-progress "${repo}"/.config/bat/config -O "$HOME"/.config/bat/config
|
||||
wget -q --show-progress "$repo"/.config/bat/config -O "$HOME"/.config/bat/config
|
||||
|
||||
|
||||
# === Git ==
|
||||
wget -q "${repo}"/dotfiles/.gitconfig -O "$HOME"/.gitconfig
|
||||
wget -q "$repo"/dotfiles/.gitconfig -O "$HOME"/.gitconfig
|
||||
|
||||
|
||||
# === Python ==
|
||||
|
@ -157,14 +157,14 @@ function main {
|
|||
opam install --confirm-level="unsafe-yes" \
|
||||
utop ocaml-lsp-server ocamlformat core menhir pprint sexplib \
|
||||
ppx_sexp_conv cohttp-lwt-unix dotenv twostep lwt_ssl alcotest ppx_deriving
|
||||
wget -q "${repo}"/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
||||
wget -q "$repo"/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
||||
# Add Opam packages from OCaml
|
||||
mkdir -p "$HOME"/.opam/default/bin
|
||||
fish -c "fish_add_path $HOME/.opam/default/bin ||:"
|
||||
|
||||
|
||||
# === Clangd ==
|
||||
wget -q "${repo}"/dotfiles/.clang-format -O "$HOME"/.clang-format
|
||||
wget -q "$repo"/dotfiles/.clang-format -O "$HOME"/.clang-format
|
||||
|
||||
|
||||
# === Perl ==
|
||||
|
@ -174,7 +174,7 @@ function main {
|
|||
|
||||
# === Emacs ==
|
||||
# mkdir -p "$HOME"/.emacs.d
|
||||
# wget -q ${repo}/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el
|
||||
# wget -q $repo/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el
|
||||
|
||||
|
||||
# === MIDI files ==
|
||||
|
@ -191,7 +191,7 @@ function main {
|
|||
|
||||
|
||||
# === Topgrade ==
|
||||
wget -q "${repo}"/.config/topgrade/topgrade.toml -O "$HOME"/.config/topgrade.toml
|
||||
wget -q "$repo"/.config/topgrade/topgrade.toml -O "$HOME"/.config/topgrade.toml
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue