Code cleanup
This commit is contained in:
parent
53403ba7da
commit
90c371e079
15 changed files with 62 additions and 31 deletions
|
@ -3,4 +3,5 @@ sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://b
|
||||||
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
|
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install brave-browser -y
|
sudo apt install brave-browser -y
|
||||||
|
|
||||||
echo -e "\nBrave installed! 🎉"
|
echo -e "\nBrave installed! 🎉"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install gnome-shell-extension-gpaste gnome-shell-extension-prefs -y
|
sudo apt install gnome-shell-extension-gpaste gnome-shell-extension-prefs -y
|
||||||
|
|
||||||
|
# Enable the extension
|
||||||
gnome-extensions enable GPaste@gnome-shell-extensions.gnome.org
|
gnome-extensions enable GPaste@gnome-shell-extensions.gnome.org
|
||||||
|
|
||||||
echo -e "\nClipboard history is now available! 🎉"
|
echo -e "\nClipboard history is now available! 🎉"
|
||||||
|
|
|
@ -1,23 +1,32 @@
|
||||||
# Adds the official Fish repository
|
# Adds the official Fish repository
|
||||||
sudo apt-add-repository ppa:fish-shell/release-3 -y
|
sudo apt-add-repository ppa:fish-shell/release-3 -y
|
||||||
|
|
||||||
# Updates the list
|
# Updates the list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
# Install Fish, fzf (for the reverse search), bat (for the colored manuals), procps (for the SSH), curl (for downloading scripts)
|
# Install Fish, fzf (for the reverse search), bat (for the colored manuals), procps (for the SSH), curl (for downloading scripts)
|
||||||
sudo apt install fish fzf bat procps curl -y
|
sudo apt install fish fzf bat procps curl -y
|
||||||
echo -e "\nFish installed!"
|
echo -e "\nFish installed!"
|
||||||
|
|
||||||
# Fish default shell
|
# Fish default shell
|
||||||
sudo chsh -s /usr/bin/fish $USER
|
sudo chsh -s /usr/bin/fish $USER
|
||||||
|
|
||||||
# Removing motd
|
# Removing motd
|
||||||
fish -c 'set -U fish_greeting'
|
fish -c 'set -U fish_greeting'
|
||||||
|
|
||||||
# Install ^R (reversed research)
|
# Install ^R (reversed research)
|
||||||
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'
|
||||||
fish -c 'fisher install jethrokuan/fzf'
|
fish -c 'fisher install jethrokuan/fzf'
|
||||||
|
|
||||||
# Install SSH
|
# Install SSH
|
||||||
rm $HOME/.config/fish/functions/fish_ssh_agent.fish 2>/dev/null; wget https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P $HOME/.config/fish/functions/
|
rm $HOME/.config/fish/functions/fish_ssh_agent.fish 2>/dev/null; wget https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P $HOME/.config/fish/functions/
|
||||||
|
|
||||||
# Update the fish config with mine (edit that once installed for you)
|
# Update the fish config with mine (edit that once installed for you)
|
||||||
rm $HOME/.config/fish/config.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/config.fish -P $HOME/.config/fish/
|
rm $HOME/.config/fish/config.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/config.fish -P $HOME/.config/fish/
|
||||||
|
|
||||||
# Update the prompt with mine
|
# Update the prompt with mine
|
||||||
rm $HOME/.config/fish/functions/fish_prompt.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/functions/fish_prompt.fish -P $HOME/.config/fish/functions/
|
rm $HOME/.config/fish/functions/fish_prompt.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/functions/fish_prompt.fish -P $HOME/.config/fish/functions/
|
||||||
|
|
||||||
# Updating color scheme (based on Base16 Eighties)
|
# Updating color scheme (based on Base16 Eighties)
|
||||||
fish -c 'set -U fish_color_normal normal'
|
fish -c 'set -U fish_color_normal normal'
|
||||||
fish -c 'set -U fish_color_command 99cc99'
|
fish -c 'set -U fish_color_command 99cc99'
|
||||||
|
@ -54,7 +63,7 @@ fish -c "abbr activate 'source bin/activate.fish'"
|
||||||
fish -c "abbr vs 'code .'"
|
fish -c "abbr vs 'code .'"
|
||||||
fish -c "abbr untgz 'tar -xvzf'"
|
fish -c "abbr untgz 'tar -xvzf'"
|
||||||
fish -c "abbr - 'cd -'"
|
fish -c "abbr - 'cd -'"
|
||||||
if grep "WSL" /proc/version > /dev/null; # Only for WSL
|
if grep "WSL" /proc/version > /dev/null; # only for WSL
|
||||||
then
|
then
|
||||||
fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo do-release-upgrade'"
|
fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo do-release-upgrade'"
|
||||||
fish -c "abbr d 'explorer.exe .'"
|
fish -c "abbr d 'explorer.exe .'"
|
||||||
|
@ -64,8 +73,7 @@ else # if regular distro (i.e. Ubuntu)
|
||||||
fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'"
|
fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Removal of Ubuntu icon
|
if grep "Ubuntu" /proc/version > /dev/null; # only for Ubuntu
|
||||||
if grep "Ubuntu" /proc/version > /dev/null;
|
|
||||||
then
|
then
|
||||||
# We remove the Ubuntu desktop shortcut only if it already exists
|
# We remove the Ubuntu desktop shortcut only if it already exists
|
||||||
if [ -f /usr/share/applications/fish.desktop ]
|
if [ -f /usr/share/applications/fish.desktop ]
|
||||||
|
|
|
@ -14,10 +14,10 @@ echo "Old ImprEcran shortcut removed!"
|
||||||
# Fetching customs keyboard shortcuts
|
# Fetching customs keyboard shortcuts
|
||||||
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 [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # Creating new list if not exists
|
if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists
|
||||||
then
|
then
|
||||||
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/']"
|
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/']"
|
||||||
else # If already existing, adding our new element
|
else # if already existing, adding our new element
|
||||||
CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/']"
|
CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/']"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ then
|
||||||
# Update of APT
|
# Update of APT
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
which git &> /dev/null || sudo apt install git -y # Install git if not already installed
|
which git &> /dev/null || sudo apt install git -y # install git if not already installed
|
||||||
|
|
||||||
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
|
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
|
||||||
cd myLinuxConfiguration
|
cd myLinuxConfiguration
|
||||||
|
@ -11,6 +11,7 @@ then
|
||||||
# Upgrade and clean already installed packages
|
# Upgrade and clean already installed packages
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
echo -e "\nUpgrading packages done! 🎉"
|
echo -e "\nUpgrading packages done! 🎉"
|
||||||
|
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
echo -e "\nCleaning unnecessary packages done! 🎉"
|
echo -e "\nCleaning unnecessary packages done! 🎉"
|
||||||
|
|
||||||
|
@ -89,7 +90,7 @@ then
|
||||||
# Install Signal
|
# Install Signal
|
||||||
bash installSignal.sh
|
bash installSignal.sh
|
||||||
|
|
||||||
# info
|
# Infos
|
||||||
echo -e "\n\nTake care, you may need to install manually some others stuff, check the README (and the logs) of"
|
echo -e "\n\nTake care, you may need to install manually some others stuff, check the README (and the logs) of"
|
||||||
echo "the project => https://git.kennel.ml/Anri/myLinuxConfiguration/src/branch/main/README.md"
|
echo "the project => https://git.kennel.ml/Anri/myLinuxConfiguration/src/branch/main/README.md"
|
||||||
else # WSL
|
else # WSL
|
||||||
|
@ -110,14 +111,14 @@ then
|
||||||
sudo apt autoremove --purge snapd -y
|
sudo apt autoremove --purge snapd -y
|
||||||
echo -e "\nSnap daemon removed! 🎉"
|
echo -e "\nSnap daemon removed! 🎉"
|
||||||
|
|
||||||
# info
|
# Infos
|
||||||
echo -e "\n\nTake care, by default the fish configuration is set for Ubuntu, you may need to uncomment"
|
echo -e "\n\nTake care, by default the fish configuration is set for Ubuntu, you may need to uncomment"
|
||||||
echo "some of the lines in $HOME/.config/fish/config.fish to enable custom network disks from Windows."
|
echo "some of the lines in $HOME/.config/fish/config.fish to enable custom network disks from Windows."
|
||||||
echo -e "\nYou may need to update your distro to the latest version"
|
echo -e "\nYou may need to update your distro to the latest version"
|
||||||
echo "Check this tutorial : https://git.kennel.ml/Anri/cat/wiki/Tuto-installation-WSL#%C3%A9tape-3-mise-%C3%A0-jour-de-ubuntu"
|
echo "Check this tutorial : https://git.kennel.ml/Anri/cat/wiki/Tuto-installation-WSL#%C3%A9tape-3-mise-%C3%A0-jour-de-ubuntu"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Supprime le repo
|
# Delete this repo
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf myLinuxConfiguration
|
rm -rf myLinuxConfiguration
|
||||||
else
|
else
|
||||||
|
|
|
@ -7,7 +7,7 @@ source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
|
|
||||||
# Adding Fish support if fish is installed
|
# Adding Fish support if fish is installed
|
||||||
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 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'
|
||||||
|
@ -17,6 +17,6 @@ echo -e "\nSDKMAN (Java install manager) installed!"
|
||||||
# Install Temurin build according with https://whichjdk.com/#adoptium-eclipse-temurin
|
# Install Temurin build according with https://whichjdk.com/#adoptium-eclipse-temurin
|
||||||
sdk install java 17.0.1-tem
|
sdk install java 17.0.1-tem
|
||||||
|
|
||||||
# upgrade to latest java version in case the version above isn't
|
# Upgrade to latest java version in case the version above isn't
|
||||||
sdk upgrade
|
sdk upgrade
|
||||||
echo -e "\nJava (Temurin) installed! 🎉"
|
echo -e "\nJava (Temurin) installed! 🎉"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# On récupère le lien vers la dernière version de MultiMC
|
# Fetching a link to get the latest version of MultiMC
|
||||||
echo "Retrieve the last package..."
|
echo "Retrieve the last package..."
|
||||||
latest=$(wget -qO- https://multimc.org/ | grep "Debian/Ubuntu") # récupération depuis le site
|
latest=$(wget -qO- https://multimc.org/ | grep "Debian/Ubuntu") # retrieving for the official website
|
||||||
pat='href="(.*)" ' # regex
|
pat='href="(.*)" ' # regex
|
||||||
[[ $latest =~ $pat ]] # utilisation du regex
|
[[ $latest =~ $pat ]] # Use of REGEX
|
||||||
|
|
||||||
# On télécharge le paquet
|
# Download the latest package
|
||||||
wget -q --show-progress -i ${BASH_REMATCH[1]} -O MultiMC.deb
|
wget -q --show-progress -i ${BASH_REMATCH[1]} -O MultiMC.deb
|
||||||
|
|
||||||
sudo apt install ./MultiMC.deb -y
|
sudo apt install ./MultiMC.deb -y
|
||||||
|
|
|
@ -3,11 +3,14 @@ wget -q https://api.github.com/repos/obsidianmd/obsidian-releases/releases/lates
|
||||||
echo "Retrieve the last package..."
|
echo "Retrieve the last package..."
|
||||||
grep 'browser_download_url": ".*.snap"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url
|
grep 'browser_download_url": ".*.snap"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url
|
||||||
rm latest
|
rm latest
|
||||||
|
|
||||||
# Downloading package
|
# Downloading package
|
||||||
wget -q --show-progress -i url -O obsidian.snap
|
wget -q --show-progress -i url -O obsidian.snap
|
||||||
rm url
|
rm url
|
||||||
|
|
||||||
# Installing
|
# Installing
|
||||||
sudo snap install --dangerous obsidian.snap
|
sudo snap install --dangerous obsidian.snap
|
||||||
|
|
||||||
# Removing package
|
# Removing package
|
||||||
rm obsidian.snap
|
rm obsidian.snap
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# Download package
|
# Download package
|
||||||
wget -q --show-progress https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb -O onlyoffice.deb
|
wget -q --show-progress https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb -O onlyoffice.deb
|
||||||
|
|
||||||
# Installing OnlyOffice
|
# Installing OnlyOffice
|
||||||
sudo apt install ./onlyoffice.deb -y
|
sudo apt install ./onlyoffice.deb -y
|
||||||
|
|
||||||
# Removing package
|
# Removing package
|
||||||
rm onlyoffice.deb
|
rm onlyoffice.deb
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# Downloading package
|
# Downloading package
|
||||||
wget -q --show-progress https://builds.parsec.app/package/parsec-linux.deb -O parsec.deb
|
wget -q --show-progress https://builds.parsec.app/package/parsec-linux.deb -O parsec.deb
|
||||||
|
|
||||||
# Installing Parsec
|
# Installing Parsec
|
||||||
sudo apt install ./parsec.deb -y
|
sudo apt install ./parsec.deb -y
|
||||||
|
|
||||||
# Removing package
|
# Removing package
|
||||||
rm parsec.deb
|
rm parsec.deb
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
wget -O- -q --show-progress https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
|
wget -O- -q --show-progress https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
|
||||||
cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
|
cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
|
||||||
|
|
||||||
# Remove the gpg key
|
# Remove the GPG key
|
||||||
rm signal-desktop-keyring.gpg
|
rm signal-desktop-keyring.gpg
|
||||||
|
|
||||||
# Add the repository to the list
|
# Add the repository to the list
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# We make sure that Snap and flatpak versions are uninstalled
|
# We make sure that Snap and flatpak versions are uninstalled
|
||||||
sudo snap remove spotify 2> /dev/null
|
sudo snap remove spotify 2> /dev/null
|
||||||
sudo flatpak uninstall com.spotify.Client 2> /dev/null
|
sudo flatpak uninstall com.spotify.Client 2> /dev/null
|
||||||
|
|
||||||
# We install the version from the official website
|
# We install the version from the official website
|
||||||
which curl &> /dev/null || sudo apt update && sudo apt install curl -y # Install curl if not already installed
|
which curl &> /dev/null || sudo apt update && sudo apt install curl -y # install curl if not already installed
|
||||||
echo "deb [trusted=yes] http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
|
echo "deb [trusted=yes] http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install spotify-client -y
|
sudo apt install spotify-client -y
|
||||||
|
@ -10,17 +11,21 @@ echo -e "\nSpotify installed!"
|
||||||
|
|
||||||
# We install the prerequisites to build and install the patch (Git and Rust will be installed and not removed)
|
# We install the prerequisites to build and install the patch (Git and Rust will be installed and not removed)
|
||||||
sudo apt install git make build-essential -y
|
sudo apt install git make build-essential -y
|
||||||
which rustc &> /dev/null || curl https://sh.rustup.rs -sSf | ( sh -s -- -y; source $HOME/.cargo/env ) # Install rust if not already installed
|
which rustc &> /dev/null || curl https://sh.rustup.rs -sSf | ( sh -s -- -y; source $HOME/.cargo/env ) # install rust if not already installed
|
||||||
|
|
||||||
# Download and build the patch
|
# Download and build the patch
|
||||||
git clone https://github.com/abba23/spotify-adblock.git
|
git clone https://github.com/abba23/spotify-adblock.git
|
||||||
cd spotify-adblock
|
cd spotify-adblock
|
||||||
make
|
make
|
||||||
|
|
||||||
# Install the patch
|
# Install the patch
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
# Removing sourcecode folder
|
# Removing sourcecode folder
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf spotify-adblock
|
rm -rf spotify-adblock
|
||||||
# We replace the Ubuntu desktop shortcut
|
|
||||||
|
# We replace the Ubuntu desktop shortcut if needed
|
||||||
if [ -f /usr/share/applications/spotify.desktop ] ; then
|
if [ -f /usr/share/applications/spotify.desktop ] ; then
|
||||||
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
|
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# We add the official deposit of Syncthing
|
# We add the official deposit of Syncthing
|
||||||
which curl &> /dev/null || sudo apt update && sudo apt install curl -y # Install curl if not already installed
|
which curl &> /dev/null || sudo apt update && sudo apt install curl -y # install curl if not already installed
|
||||||
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
|
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
|
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
|
||||||
|
|
||||||
# Install Syncthing
|
# Install Syncthing
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install syncthing -y
|
sudo apt install syncthing -y
|
||||||
|
|
|
@ -1,24 +1,28 @@
|
||||||
# Installing depedencies
|
# Installing depedencies
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install libsdl2-dev git pkg-config automake make autoconf libtool -y
|
sudo apt install libsdl2-dev git pkg-config automake make autoconf libtool -y
|
||||||
|
|
||||||
# Downloading and building GL4D
|
# Downloading and building GL4D
|
||||||
git clone https://github.com/noalien/GL4Dummies.git
|
git clone https://github.com/noalien/GL4Dummies.git
|
||||||
cd GL4Dummies
|
cd GL4Dummies
|
||||||
make -f Makefile.autotools
|
make -f Makefile.autotools
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
|
|
||||||
# Installing GL4D
|
# Installing GL4D
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
# Removing sourcecode
|
# Removing sourcecode
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf GL4Dummies
|
rm -rf GL4Dummies
|
||||||
|
|
||||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
# changing env variables path and ld_library_path
|
# Changing env variables path and ld_library_path
|
||||||
# to correct locations to all the shell installed
|
# To correct locations to all the shell installed
|
||||||
|
|
||||||
# to .bashrc if exists
|
# To .bashrc if exists
|
||||||
if [ -f $HOME/.bashrc ] ; then
|
if [ -f $HOME/.bashrc ] ; then
|
||||||
echo "" >> $HOME/.bashrc
|
echo "" >> $HOME/.bashrc
|
||||||
echo "# GL4Dummies" >> $HOME/.bashrc
|
echo "# GL4Dummies" >> $HOME/.bashrc
|
||||||
|
@ -27,7 +31,7 @@ if [ -f $HOME/.bashrc ] ; then
|
||||||
echo "" >> $HOME/.bashrc
|
echo "" >> $HOME/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# to .zshrc if exists
|
# To .zshrc if exists
|
||||||
if [ -f $HOME/.zshrc ] ; then
|
if [ -f $HOME/.zshrc ] ; then
|
||||||
echo "" >> $HOME/.zshrc
|
echo "" >> $HOME/.zshrc
|
||||||
echo "# GL4Dummies" >> $HOME/.zshrc
|
echo "# GL4Dummies" >> $HOME/.zshrc
|
||||||
|
@ -36,7 +40,7 @@ if [ -f $HOME/.zshrc ] ; then
|
||||||
echo "" >> $HOME/.zshrc
|
echo "" >> $HOME/.zshrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if config.fish exists
|
# If config.fish exists
|
||||||
if [ -f $HOME/.config/fish/config.fish ] ; then
|
if [ -f $HOME/.config/fish/config.fish ] ; then
|
||||||
echo "" >> $HOME/.config/fish/config.fish
|
echo "" >> $HOME/.config/fish/config.fish
|
||||||
echo "# GL4Dummies" >> $HOME/.config/fish/config.fish
|
echo "# GL4Dummies" >> $HOME/.config/fish/config.fish
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
# Nautilus
|
# Nautilus
|
||||||
# Fetching customs keyboard shortcuts
|
# Fetching customs keyboard shortcuts
|
||||||
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 [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # Creating new list if not exists
|
if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists
|
||||||
then
|
then
|
||||||
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/']"
|
CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/']"
|
||||||
else # If already existing, adding our new element
|
else # if already existing, adding our new element
|
||||||
CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/']"
|
CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/']"
|
||||||
fi
|
fi
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # Updating the list
|
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # updating the list
|
||||||
|
|
||||||
# Naming it
|
# Naming it
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ name 'Nautilus' # Set name
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ name 'Nautilus' # set name
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command 'nautilus -w' # Set command
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command 'nautilus -w' # set command
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding '<Super>E' # Set shortcut
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding '<Super>E' # set shortcut
|
||||||
|
|
||||||
echo -e "\nNautilus shortcut added (Super+E)!"
|
echo -e "\nNautilus shortcut added (Super+E)!"
|
||||||
|
|
||||||
# Desktop modifications
|
# Desktop modifications
|
||||||
|
|
Reference in a new issue