Last active
March 2, 2020 22:48
-
-
Save rafaelribeiroo/900ca0a58474f1a5c09898dd87217ed6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleep 0.1s; echo -e ${c[2]}"[ 03 ]"${c[6]}${c[0]}" ELEMENTARY THEME ${e[3]}"${c[6]} | |
#======================# | |
elementary() { | |
module='docky' | |
if [[ $(dpkg -l | awk "/${module}/ {print }"|wc -l) -ge 1 ]]; then | |
printf "\n${c[3]}%s${c[6]} ${c[0]}%s [INSTALLED]${c[6]}\n\n" ${module} "${line:${#module}}" | |
read -p $'\033[1;37m\nSIR, SHOULD I UNINSTALL? \n[Y/N] R: \033[m' opcao | |
for (( ; ; )); do | |
if [[ "${opcao:0:1}" = @(s|S|y|Y) ]] ; then | |
echo -e ${c[0]}"\n${c[2]}U${c[0]}NINSTALLING ${c[2]}${module^^}${c[0]} AND ${c[2]}DEPENDENCIES${c[0]}!\n"${c[6]} | |
sudo apt remove --purge -y docky gconf-editor synapse nautilus | |
# Remove pacotes órfãos desnecessários | |
sudo apt autoremove -y &> /dev/null | |
# Remove arquivos desnecessários de instalações | |
sudo apt autoclean &> /dev/null | |
escreva "INITIALIZING CONFIGS..." 1 | |
sudo rm -f ~/.config/autostart/docky.desktop | |
# Reseta tudão | |
gsettings list-schemas | xargs -n 1 gsettings reset-recursively | |
# Sobrescreve arquivo de imagem do iniciar | |
DIRECTORY=/usr/share/icons/hicolor/scalable/apps/ | |
mv "${DIRECTORY}bkp.svg" "${DIRECTORY}linuxmint-logo-filled-ring.svg" | |
# Não mostra pop-up de boas-vindas | |
gsettings set com.linuxmint.updates show-welcome-page false | |
# Oculta ícones nativos do desktop | |
gsettings set org.nemo.desktop desktop-layout "false::false" | |
# Exibe arquivos ocultos | |
gsettings set org.nemo.preferences show-hidden-files true | |
escreva "OPERATION COMPLETED SUCCESSFULLY, ${name[random]}!" | |
retorna_menu && break | |
elif [[ "${opcao:0:1}" = @(N|n) ]] ; then | |
break | |
else | |
echo -ne ${c[2]}"\n${e[20]} SOME MEN JUST WANT TO WATCH THE WORLD BURN ${e[20]}\n\t\t${c[0]}PLEASE, ONLY Y OR N!\n\nSR. SHOULD I UNINSTALL?${c[6]}\n${c[0]}[Y/N] R: "${c[6]} | |
read opcao | |
fi | |
done | |
else | |
install_packages docky gconf-editor synapse | |
fi | |
( nohup docky & ) > /dev/null 2>&1 | |
escreva "INITIALIZING CONFIGS..." | |
checar_ativo=$(gconftool-2 --get /apps/docky-2/Docky/DockController/ActiveDocks | sed 's/.*\[\([^]]*\)\].*/\1/g') | |
key=( | |
"/apps/docky-2/Docky/Items/DockyItem" | |
"/apps/docky-2/Docky/Interface/DockPreferences/${checar_ativo}" | |
"/apps/docky-2/Docky/Services/ThemeService" | |
"org.cinnamon" | |
"com.linuxmint.mintmenu" | |
"org.cinnamon.desktop.wm.preferences" | |
"org.cinnamon.desktop.interface" | |
"org.cinnamon.theme" | |
) | |
FILE=~/.config/autostart/docky.desktop | |
[[ ! -e "${FILE}" || $(grep -L "Docky" ${FILE}) ]] \ | |
&& echo '[Desktop Entry] | |
Name=Docky | |
Type=Application | |
Exec=docky | |
Terminal=false | |
Icon=docky | |
Comment[pt_BR]=O melhor dock que dinheiro algum pode comprar. | |
NoDisplay=false | |
Categories=Utility; | |
Hidden=false' | sudo tee "${FILE}" 1>/dev/null | |
[[ $(gconftool --all-entries ${key[0]} | head -n1 | awk '{print $3}') = true ]] \ | |
&& gconftool --type bool --set ${key[0]}/ShowDockyItem False \ | |
&& gconftool --type string --set ${key[1]}/Autohide 'UniversalIntellihide' \ | |
&& gconftool --type bool --set ${key[1]}/FadeOnHide True \ | |
&& gconftool --type float --set ${key[1]}/FadeOpacity 1 \ | |
&& gconftool --type string --set ${key[2]}/Theme 'Smoke' \ | |
&& gconftool --type bool --set ${key[1]}/ThreeDimensional True \ | |
&& gconftool --type bool --set ${key[1]}/ZoomEnabled True \ | |
&& gconftool --type int --set ${key[1]}/ZoomPercent 2 \ | |
&& gconftool --type int --set ${key[1]}/IconSize 50 \ | |
&& gconftool --type list --list-type string --set ${key[1]}/Plugins '[Clippy,Clock]' \ | |
&& gconftool --type string --set ${key[1]}/Position 'Bottom' | |
[[ $(gsettings get ${key[3]} panels-enabled) =~ ['1:0:bottom'] ]] \ | |
&& gsettings set ${key[3]} panels-enabled "['1:0:top']" \ | |
&& gsettings set ${key[3]} panels-height "['1:30']" \ | |
&& gsettings set ${key[3]} enabled-applets ['panel1:left:0:[email protected]:0', 'panel1:left:1:[email protected]:1', 'panel1:right:0:[email protected]:3', 'panel1:right:1:[email protected]:4', 'panel1:right:2:[email protected]:5', 'panel1:right:3:[email protected]:6', 'panel1:right:4:[email protected]:7', 'panel1:right:5:[email protected]:8', 'panel1:right:6:[email protected]:9', 'panel1:right:7:[email protected]:10', 'panel1:right:8:[email protected]:11', 'panel1:right:9:[email protected]:12'] | |
DIRECTORY=/usr/share/icons/hicolor/scalable/apps/ | |
[[ ! -e "${DIRECTORY}bkp.svg" ]] \ | |
&& sudo chown $USER:$USER -R ${DIRECTORY} \ | |
&& cp "${DIRECTORY}linuxmint-logo-filled-ring.svg" "${DIRECTORY}bkp.svg" \ | |
&& curl -so "${DIRECTORY}linuxmint-logo-filled-ring.svg" --create-dirs "${l[4]}" > /dev/null | |
[[ $(gsettings get ${key[5]} button-layout) = "':minimize,maximize,close'" ]] \ | |
&& gsettings set ${key[5]} button-layout "'close,minimize,maximize:'" | |
DIRECTORY=~/.themes/ | |
[[ ! -d ${DIRECTORY}/macOS-Arc-White ]] \ | |
&& escreva "DOWNLOADING..." 1 \ | |
&& git clone -q "${l[5]}" "${DIRECTORY}/macOS-Arc-White" \ | |
&& git clone -q "${l[6]}" "${DIRECTORY}/la-capitaine-icon-theme" | |
# Setando os temas | |
# theme: Bordas da janela | |
# icon-theme: Ícones | |
# gtk-theme: Controles | |
# cursor-theme: Ponteiro do mouse | |
# name: Área de trabalho | |
[[ $(gsettings get ${key[6]} icon-theme) = "'Mint-Y'" ]] \ | |
&& gsettings set ${key[5]} theme "'Mint-Y'" \ | |
&& gsettings set ${key[6]} icon-theme "'la-capitaine-icon-theme'" \ | |
&& gsettings set ${key[6]} gtk-theme "'Mint-Y-Dark-Aqua'" \ | |
&& gsettings set ${key[6]} cursor-theme "'DMZ-White'" \ | |
&& gsettings set ${key[7]} name "'macOS-Arc-White'" | |
read -p $'\033[1;37mSIR, SHOULD I RESTART TO UPGRADE YOUR GUI? \n[Y/N] R: \033[m' opcao | |
for (( ; ; )); do | |
if [[ "${opcao:0:1}" = @(s|S|y|Y) ]]; then | |
sudo reboot -f | |
break | |
elif [[ "${opcao:0:1}" = @(N|n) ]]; then | |
retorna_menu && break | |
else | |
echo -ne ${c[2]}"\n${e[20]} SOME MEN JUST WANT TO WATCH THE WORLD BURN ${e[20]}\n\t\t${c[0]}PLEASE, ONLY Y OR N!\n\nSR. WANT YOU AUTHENTICATE?${c[6]}\n${c[0]}[Y/N] R: "${c[6]} | |
read opcao | |
fi | |
done | |
} | |
#======================# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment