turn some simple quotes to double quotes
This commit is contained in:
parent
97440911f8
commit
e802894bf7
2 changed files with 25 additions and 25 deletions
38
arch.sh
38
arch.sh
|
@ -8,7 +8,7 @@ then
|
||||||
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos, parental control, contacts, vidéos, dependencies
|
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos, parental control, contacts, vidéos, dependencies
|
||||||
|
|
||||||
# === Colors package manager ==
|
# === Colors package manager ==
|
||||||
sed -i 's/#Color/Color/g' /etc/pacman.conf
|
sed -i "s/#Color/Color/g" /etc/pacman.conf
|
||||||
|
|
||||||
# === Yay ==
|
# === Yay ==
|
||||||
git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git
|
||||||
|
@ -24,10 +24,10 @@ then
|
||||||
yay -S --noconfirm spotify obsidian parsec-bin onlyoffice-bin x11-emoji-picker-git gnome-shell-extension-dash-to-dock gnome-shell-extension-desktop-icons-ng dracula-gtk-theme dracula-icons-git vscodium-bin ttf-symbola gnome-shell-extension-appindicator-git touchegg gnome-shell-extension-x11gestures gnome-shell-extension-no-overview nerd-fonts-meslo gnome-shell-extension-gsconnect betterdiscord-installer spim-svn gnome-shell-extension-rounded-window-corners gnome-shell-extension-alphabetical-grid-extension
|
yay -S --noconfirm spotify obsidian parsec-bin onlyoffice-bin x11-emoji-picker-git gnome-shell-extension-dash-to-dock gnome-shell-extension-desktop-icons-ng dracula-gtk-theme dracula-icons-git vscodium-bin ttf-symbola gnome-shell-extension-appindicator-git touchegg gnome-shell-extension-x11gestures gnome-shell-extension-no-overview nerd-fonts-meslo gnome-shell-extension-gsconnect betterdiscord-installer spim-svn gnome-shell-extension-rounded-window-corners gnome-shell-extension-alphabetical-grid-extension
|
||||||
|
|
||||||
# === Disable wayland ==
|
# === Disable wayland ==
|
||||||
sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
|
sed -i "s/#Wayland/Wayland/g" /etc/gdm/custom.conf
|
||||||
|
|
||||||
# === Locales ==
|
# === Locales ==
|
||||||
sed -i 's/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
|
sed -i "s/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g" /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
localectl set-locale fr_FR.UTF-8
|
localectl set-locale fr_FR.UTF-8
|
||||||
|
|
||||||
|
@ -122,11 +122,11 @@ then
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil:2:-2}"/ font "MesloLGM Nerd Font 12"
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil:2:-2}"/ font "MesloLGM Nerd Font 12"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil:2:-2}"/ use-system-font false
|
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil:2:-2}"/ use-system-font false
|
||||||
# Keybinds
|
# Keybinds
|
||||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ close-tab '<Control>w'
|
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ close-tab "<Control>w"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ new-tab '<Control>t'
|
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ new-tab "<Control>t"
|
||||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ zoom-in '<Control>equal' # ctrl++
|
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ zoom-in "<Control>equal" # ctrl++
|
||||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ zoom-normal '<Control>agrave' # ctrl+0
|
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ zoom-normal "<Control>agrave" # ctrl+0
|
||||||
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Control>tab' # ctrl+tab
|
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab "<Control>tab" # ctrl+tab
|
||||||
|
|
||||||
# === Micro configuration ==
|
# === Micro configuration ==
|
||||||
git config --global core.editor "micro"
|
git config --global core.editor "micro"
|
||||||
|
@ -153,7 +153,7 @@ then
|
||||||
git config --global commit.gpgsign true
|
git config --global commit.gpgsign true
|
||||||
|
|
||||||
# === Rust ==
|
# === Rust ==
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
source "$HOME"/.cargo/env
|
source "$HOME"/.cargo/env
|
||||||
# Dev tools
|
# Dev tools
|
||||||
rustup component add rust-analysis
|
rustup component add rust-analysis
|
||||||
|
@ -164,7 +164,7 @@ then
|
||||||
tldr --update
|
tldr --update
|
||||||
# Fish completion
|
# Fish completion
|
||||||
latest=$(wget -qO- https://api.github.com/repos/dbrgn/tealdeer/releases/latest)
|
latest=$(wget -qO- https://api.github.com/repos/dbrgn/tealdeer/releases/latest)
|
||||||
url=$(grep 'browser_download_url": ".*/completions_fish"' <<< "$latest" | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }')
|
url=$(grep 'browser_download_url": ".*/completions_fish"' <<< "$latest" | awk "{ print substr ($0, 32 ) }" | awk "{ print substr( $0, 1, length($0)-1 ) }")
|
||||||
wget -q --show-progress "$url" -O completions_fish
|
wget -q --show-progress "$url" -O completions_fish
|
||||||
mv completions_fish ~/.config/fish/completions/tldr.fish
|
mv completions_fish ~/.config/fish/completions/tldr.fish
|
||||||
|
|
||||||
|
@ -178,8 +178,8 @@ then
|
||||||
# Remove banner and upgrade button
|
# Remove banner and upgrade button
|
||||||
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps || exit # absolute path to Spotify
|
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps || exit # absolute path to Spotify
|
||||||
unzip xpui.spa xpui.js -d .
|
unzip xpui.spa xpui.js -d .
|
||||||
sed -i 's/adsEnabled:!0/adsEnabled:!1/' xpui.js # disable empty ad block (banner)
|
sed -i "s/adsEnabled:!0/adsEnabled:!1/" xpui.js # disable empty ad block (banner)
|
||||||
sed -i 's/.\>\=1024/ 1!=1 /' xpui.js # disable Upgrade Buton
|
sed -i "s/.\>\=1024/ 1!=1 /" xpui.js # disable Upgrade Buton
|
||||||
sed -i "s/((?:\"a\"))\S+noopener nofollow.+?,.)/\$1/" xpui.js # disable Premium NavLink button
|
sed -i "s/((?:\"a\"))\S+noopener nofollow.+?,.)/\$1/" xpui.js # disable Premium NavLink button
|
||||||
zip --update xpui.spa xpui.js
|
zip --update xpui.spa xpui.js
|
||||||
rm xpui.js
|
rm xpui.js
|
||||||
|
@ -221,7 +221,7 @@ then
|
||||||
then
|
then
|
||||||
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/']"
|
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/']"
|
||||||
else # if already existing, adding our new element
|
else # if already existing, adding our new element
|
||||||
CUSTOM_KEYBINDINGS_LIST=$(echo "$CUSTOM_KEYBINDINGS_LIST" | sed 's/\[//' | sed 's/\]//')
|
CUSTOM_KEYBINDINGS_LIST=$(echo "$CUSTOM_KEYBINDINGS_LIST" | sed "s/\[//" | sed "s/\]//")
|
||||||
CUSTOM_KEYBINDINGS_LIST="[$CUSTOM_KEYBINDINGS_LIST, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/']"
|
CUSTOM_KEYBINDINGS_LIST="[$CUSTOM_KEYBINDINGS_LIST, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/x11-emoji-picker/']"
|
||||||
fi
|
fi
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # update the list
|
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # update the list
|
||||||
|
@ -267,8 +267,8 @@ then
|
||||||
gsettings set org.gnome.desktop.interface show-battery-percentage true # show battery poucentage
|
gsettings set org.gnome.desktop.interface show-battery-percentage true # show battery poucentage
|
||||||
gsettings set org.gnome.desktop.interface enable-hot-corners false # disable top-right corner "activities"
|
gsettings set org.gnome.desktop.interface enable-hot-corners false # disable top-right corner "activities"
|
||||||
gsettings set org.gnome.desktop.background show-desktop-icons true # show icons on desktop
|
gsettings set org.gnome.desktop.background show-desktop-icons true # show icons on desktop
|
||||||
gsettings set org.gnome.nautilus.preferences show-image-thumbnails 'always' # thumbnails nautilus
|
gsettings set org.gnome.nautilus.preferences show-image-thumbnails "always" # thumbnails nautilus
|
||||||
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' # no sleep on AC
|
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type "nothing" # no sleep on AC
|
||||||
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true # mode "nuit" (lumière bleue)
|
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true # mode "nuit" (lumière bleue)
|
||||||
gsettings set org.gnome.desktop.peripherals.touchpad click-method areas # right click on laptop
|
gsettings set org.gnome.desktop.peripherals.touchpad click-method areas # right click on laptop
|
||||||
gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed
|
gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed
|
||||||
|
@ -300,7 +300,7 @@ then
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/ binding "<Super>V" # set shortcut
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clipboard-shortcut/ binding "<Super>V" # set shortcut
|
||||||
copyq > /dev/null & disown
|
copyq > /dev/null & disown
|
||||||
copyq config autostart true
|
copyq config autostart true
|
||||||
echo 'style_main_window=true' >> /usr/share/copyq/themes/dark.ini
|
echo "style_main_window=true" >> /usr/share/copyq/themes/dark.ini
|
||||||
copyq loadTheme /usr/share/copyq/themes/dark.ini
|
copyq loadTheme /usr/share/copyq/themes/dark.ini
|
||||||
|
|
||||||
# === Power plan ==
|
# === Power plan ==
|
||||||
|
@ -313,9 +313,9 @@ then
|
||||||
source "$HOME/.sdkman/bin/sdkman-init.sh"
|
source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
if [ -x "$HOME"/.config/fish ] ; then
|
if [ -x "$HOME"/.config/fish ] ; then
|
||||||
if [ ! -f "$HOME"/.config/fish/functions/fisher.fish ] ; then # install fisher if not already installed
|
if [ ! -f "$HOME"/.config/fish/functions/fisher.fish ] ; then # install fisher if not already installed
|
||||||
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
|
curl -sL https://git.io/fisher | fish -c "source && fisher install jorgebucaran/fisher"
|
||||||
fi
|
fi
|
||||||
fish -c 'fisher install reitzig/sdkman-for-fish'
|
fish -c "fisher install reitzig/sdkman-for-fish"
|
||||||
fi
|
fi
|
||||||
sdk install java 17.0.4-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
sdk install java 17.0.4-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
||||||
yes | sdk upgrade java
|
yes | sdk upgrade java
|
||||||
|
@ -350,7 +350,7 @@ then
|
||||||
# === Enable Bluetooth ==
|
# === Enable Bluetooth ==
|
||||||
systemctl enable bluetooth.service
|
systemctl enable bluetooth.service
|
||||||
systemctl start bluetooth.service
|
systemctl start bluetooth.service
|
||||||
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.kennel.ml/Anri/confOS/raw/branch/main/.config/VSCodium/product.json -P "$HOME"/.config/VSCodium/
|
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/.config/VSCodium/product.json -P "$HOME"/.config/VSCodium/
|
||||||
|
|
12
arch_wsl.sh
12
arch_wsl.sh
|
@ -17,7 +17,7 @@ then
|
||||||
pacman -S --noconfirm git wget zip openssh bat base-devel make python-pygments micro git-lfs npm sdl2_image nodejs fish autoconf valgrind automake python-virtualenv gdb tk sdl2_mixer exa texlive-most fzf glu man-pages-fr neofetch python-pip opam pacman-contrib cpanminus
|
pacman -S --noconfirm git wget zip openssh bat base-devel make python-pygments micro git-lfs npm sdl2_image nodejs fish autoconf valgrind automake python-virtualenv gdb tk sdl2_mixer exa texlive-most fzf glu man-pages-fr neofetch python-pip opam pacman-contrib cpanminus
|
||||||
|
|
||||||
# === Colors package manager ==
|
# === Colors package manager ==
|
||||||
sed -i 's/#Color/Color/g' /etc/pacman.conf
|
sed -i "s/#Color/Color/g" /etc/pacman.conf
|
||||||
|
|
||||||
# === Remove SU password ==
|
# === Remove SU password ==
|
||||||
echo -e "# Disable password for specific user\nanri ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
echo -e "# Disable password for specific user\nanri ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||||
|
@ -36,7 +36,7 @@ then
|
||||||
yay -S --noconfirm spim-svn
|
yay -S --noconfirm spim-svn
|
||||||
|
|
||||||
# === Rust ==
|
# === Rust ==
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
source "$HOME"/.cargo/env
|
source "$HOME"/.cargo/env
|
||||||
# Dev tools
|
# Dev tools
|
||||||
rustup component add rust-analysis rls
|
rustup component add rust-analysis rls
|
||||||
|
@ -51,7 +51,7 @@ then
|
||||||
subsystemctl start
|
subsystemctl start
|
||||||
|
|
||||||
# === Locales ==
|
# === Locales ==
|
||||||
sed -i 's/#fr_FR.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
|
sed -i "s/#fr_FR.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g" /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
subsystemctl exec sudo localectl set-locale fr_FR.UTF-8
|
subsystemctl exec sudo localectl set-locale fr_FR.UTF-8
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ then
|
||||||
tldr --update
|
tldr --update
|
||||||
# Fish completion
|
# Fish completion
|
||||||
latest_tldr=$(wget -qO- https://api.github.com/repos/dbrgn/tealdeer/releases/latest)
|
latest_tldr=$(wget -qO- https://api.github.com/repos/dbrgn/tealdeer/releases/latest)
|
||||||
url_tldr=$(grep 'browser_download_url": ".*/completions_fish"' <<< "$latest_tldr" | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }')
|
url_tldr=$(grep 'browser_download_url": ".*/completions_fish"' <<< "$latest_tldr" | awk "{ print substr ($0, 32 ) }" | awk "{ print substr( $0, 1, length($0)-1 ) }")
|
||||||
wget -q --show-progress "$url_tldr" -O completions_fish
|
wget -q --show-progress "$url_tldr" -O completions_fish
|
||||||
mv completions_fish ~/.config/fish/completions/tldr.fish
|
mv completions_fish ~/.config/fish/completions/tldr.fish
|
||||||
|
|
||||||
|
@ -169,9 +169,9 @@ then
|
||||||
source "$HOME/.sdkman/bin/sdkman-init.sh"
|
source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
if [ -x "$HOME"/.config/fish ] ; then
|
if [ -x "$HOME"/.config/fish ] ; then
|
||||||
if [ ! -f "$HOME"/.config/fish/functions/fisher.fish ] ; then # install fisher if not already installed
|
if [ ! -f "$HOME"/.config/fish/functions/fisher.fish ] ; then # install fisher if not already installed
|
||||||
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
|
curl -sL https://git.io/fisher | fish -c "source && fisher install jorgebucaran/fisher"
|
||||||
fi
|
fi
|
||||||
fish -c 'fisher install reitzig/sdkman-for-fish'
|
fish -c "fisher install reitzig/sdkman-for-fish"
|
||||||
fi
|
fi
|
||||||
sdk install java 17.0.4.1-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
sdk install java 17.0.4.1-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
||||||
yes | sdk upgrade java
|
yes | sdk upgrade java
|
||||||
|
|
Loading…
Reference in a new issue