mirror of
https://github.com/phaleixo/after_install_debian_12.git
synced 2025-12-05 21:49:44 -03:00
modified: README.md
new file: install_extensions.sh modified: pos_install_complete.sh
This commit is contained in:
parent
9670ddeddf
commit
e8481975e9
13
README.md
13
README.md
@ -59,6 +59,19 @@ Font corrections:
|
||||
```
|
||||
curl -o font_corrections.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/font_corrections.sh && chmod +x font_corrections.sh && ./font_corrections.sh && rm font_corrections.sh
|
||||
```
|
||||
|
||||
Install Gnome-extensions:''places-status-indicator
|
||||
appindicator-support
|
||||
auto-activities
|
||||
quick-settings-tweaker
|
||||
dash-to-dock
|
||||
tophat
|
||||
tiling-assistant
|
||||
''
|
||||
```
|
||||
curl -o install_extensions.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/install_extensions.sh && chmod +x install_extensions.sh && ./install_extensions.sh && rm install_extensions.sh
|
||||
```
|
||||
|
||||
Unnecessary Apps Remover:
|
||||
`
|
||||
fcitx*
|
||||
|
||||
68
install_extensions.sh
Normal file
68
install_extensions.sh
Normal file
@ -0,0 +1,68 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
### Initial message
|
||||
echo -e "\n ############################################################"
|
||||
echo -e " # Install and configure Fonts #"
|
||||
echo -e " ############################################################ \n"
|
||||
echo "For more information, visit the project link:"
|
||||
echo "https://github.com/phaleixo/after_install_debian_12"
|
||||
|
||||
### Confirm script execution
|
||||
read -p "Do you want to proceed? (y/n): " response
|
||||
[[ "$response" != "y" ]] && inform "Operation canceled by the user." && exit 0
|
||||
|
||||
### check if the distribution is compatible
|
||||
if [[ $(lsb_release -cs) = "bookworm" ]]
|
||||
then
|
||||
echo ""
|
||||
echo -e "\e[32;1mDebian 12 Distribution.\e[m"
|
||||
echo ""
|
||||
echo "Continuing with the script..."
|
||||
echo ""
|
||||
else
|
||||
echo -e "\e[31;1mDistribution not approved for use with this script.\e[m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
### check if there is an internet connection.
|
||||
if ping -q -c 3 -W 1 1.1.1.1 >/dev/null;
|
||||
then
|
||||
echo ""
|
||||
echo -e "\e[32;1mInternet connection OK.\e[m"
|
||||
echo ""
|
||||
echo "Continuing with the script..."
|
||||
echo ""
|
||||
else
|
||||
echo -e "\e[31;1mYou are not connected to the internet. Check your network or Wi-Fi connection before proceeding.\e[m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
### Install Extensions
|
||||
|
||||
array=(
|
||||
https://extensions.gnome.org/extension/8/places-status-indicator/
|
||||
https://extensions.gnome.org/extension/615/appindicator-support/
|
||||
https://extensions.gnome.org/extension/5500/auto-activities/
|
||||
https://extensions.gnome.org/extension/5446/quick-settings-tweaker/
|
||||
https://extensions.gnome.org/extension/307/dash-to-dock/
|
||||
https://extensions.gnome.org/extension/5219/tophat/
|
||||
https://extensions.gnome.org/extension/3733/tiling-assistant/
|
||||
)
|
||||
|
||||
for i in "${array[@]}"
|
||||
do
|
||||
EXTENSION_ID=$(curl -s $i | grep -oP 'data-uuid="\K[^"]+')
|
||||
VERSION_TAG=$(curl -Lfs "https://extensions.gnome.org/extension-query/?search=$EXTENSION_ID" | jq '.extensions[0] | .shell_version_map | map(.pk) | max')
|
||||
wget -O ${EXTENSION_ID}.zip "https://extensions.gnome.org/download-extension/${EXTENSION_ID}.shell-extension.zip?version_tag=$VERSION_TAG"
|
||||
gnome-extensions install --force ${EXTENSION_ID}.zip
|
||||
if ! gnome-extensions list | grep --quiet ${EXTENSION_ID}; then
|
||||
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${EXTENSION_ID}
|
||||
fi
|
||||
gnome-extensions enable ${EXTENSION_ID}
|
||||
rm ${EXTENSION_ID}.zip
|
||||
done
|
||||
|
||||
echo -e "Extensions instaled"
|
||||
|
||||
exit 0
|
||||
|
||||
@ -284,6 +284,37 @@ echo -e "removed unnecessary apps"
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
|
||||
### Install Extensions
|
||||
|
||||
array=(
|
||||
https://extensions.gnome.org/extension/8/places-status-indicator/
|
||||
https://extensions.gnome.org/extension/615/appindicator-support/
|
||||
https://extensions.gnome.org/extension/5500/auto-activities/
|
||||
https://extensions.gnome.org/extension/5446/quick-settings-tweaker/
|
||||
https://extensions.gnome.org/extension/307/dash-to-dock/
|
||||
https://extensions.gnome.org/extension/5219/tophat/
|
||||
https://extensions.gnome.org/extension/3733/tiling-assistant/
|
||||
)
|
||||
|
||||
for i in "${array[@]}"
|
||||
do
|
||||
EXTENSION_ID=$(curl -s $i | grep -oP 'data-uuid="\K[^"]+')
|
||||
VERSION_TAG=$(curl -Lfs "https://extensions.gnome.org/extension-query/?search=$EXTENSION_ID" | jq '.extensions[0] | .shell_version_map | map(.pk) | max')
|
||||
wget -O ${EXTENSION_ID}.zip "https://extensions.gnome.org/download-extension/${EXTENSION_ID}.shell-extension.zip?version_tag=$VERSION_TAG"
|
||||
gnome-extensions install --force ${EXTENSION_ID}.zip
|
||||
if ! gnome-extensions list | grep --quiet ${EXTENSION_ID}; then
|
||||
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${EXTENSION_ID}
|
||||
fi
|
||||
gnome-extensions enable ${EXTENSION_ID}
|
||||
rm ${EXTENSION_ID}.zip
|
||||
done
|
||||
|
||||
echo -e "Extensions instaled"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
### Check video driver
|
||||
video_driver_info=$(lspci -k | grep amdgpu)
|
||||
video_card_info=$(lspci | grep VGA)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user