Zentheme-Install - Instala e desinstala temas usando interface gráfica
Publicado por Felipe Ruiz Peixoto (última atualização em 06/11/2013)
[ Hits: 3.135 ]
Homepage: https://www.ubuntu.com/
Mais um script que acabou de "sair do forno". ;)
Precisa ter o Zenity instalado para rodar, e utiliza apenas temas empacotados em .tar.gz.
Para baixar pelo SourceForge a versão mais atual utilize este link:
http://sourceforge.net/projects/zenthemeinstall/
#!/bin/bash # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. # # Created by Felipe Ruiz Peixoto feliperuiz.sax.eletronic@gmail.com # Testing Zenity zenity --info --title="Zentheme Install" --text="This script help you to install themes. The theme file must be in .tar.gz format. Need superuser permissions." --display :0 || (echo "PLEASE INSTALL ZENITY" ; read ; exit 1) typeoffile=`zenity --list --title="Zentheme Install - file selection" --text="Select the method" --width=480 --height=200 --column="Method" --column="Description" "1" "Install desktop environment theme" "2" "Install icons theme" "3" "Uninstall desktop environment theme" "4" "Uninstall icons theme"` case $? in 0) echo "\"$typeoffile\" selected.";; 1) zenity --error --text="No method." ; exit 1 ;; -1) zenity --error --text="No method." ; exit 1 ;; esac case $typeoffile in 1) filepac=`zenity --file-selection --title="Select the theme package"` ; (tar -zxvf "$filepac" -C /usr/share/themes/) | zenity --progress --title="Zentheme Install - Installing theme" --text="Installing theme, please wait..." --percentage=0 ;; 2) filepac=`zenity --file-selection --title="Select the theme package"` ; (tar -zxvf "$filepac" -C /usr/share/icons/) | zenity --progress --title="Zentheme Install - Installing theme" --text="Installing theme, please wait..." --percentage=0 ;; 3) filepac=`zenity --file-selection --title="Select the theme package"` ; (tmpdirparse=${filepac##*/} ; tmpdirparse=${tmpdirparse%%.*} ; rm -r -f "/usr/share/icons/$tmpdirparse") | zenity --progress --title="Zentheme Install - Uninstalling theme" --text="Uninstalling theme, please wait..." --percentage=0 ;; 4) filepac=`zenity --file-selection --title="Select the theme package"` ; (tmpdirparse=${filepac##*/} ; tmpdirparse=${tmpdirparse%%.*} ; rm -r -f "/usr/share/icons/$tmpdirparse") | zenity --progress --title="Zentheme Install - Uninstalling theme" --text="Uninstalling theme, please wait..." --percentage=0 ;; *) zenity --error --text="The method dont exists." ; exit 1 ;; esac zenity --info --title="Zentheme Install" --text="Finished !" --display :0 exit 0
Dicionário e tradutor baseado no Michaelis
Script - Realizando relatório do servidor
Backup-Script2.0 -- Modo Gráfico sem precisar de X
Script para acertar hora e data do sistema no linux.
Nenhum comentário foi encontrado.
Atenção a quem posta conteúdo de dicas, scripts e tal (1)
Manutenção de sistemas Linux Debian e derivados com apt-get, apt, aptitude e dpkg
Melhorando o tempo de boot do Fedora e outras distribuições
Como instalar as extensões Dash To Dock e Hide Top Bar no Gnome 45/46
Instalar Google Chrome no Debian e derivados
Consertando o erro do Sushi e Wayland no Opensuse Leap 15
Instalar a última versão do PostgreSQL no Lunix mantendo atualizado
Flathub na sua distribuição Linux e comandos básicos de gerenciamento
[Shell Script] Script para desinstalar pacotes desnecessários no OpenSuse
[Shell Script] Script para criar certificados de forma automatizada no OpenVpn
[Shell Script] Conversor de vídeo com opção de legenda
[C/C++] BRT - Bulk Renaming Tool
[Shell Script] Criação de Usuarios , Grupo e instalação do servidor de arquivos samba