Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Desabilitar as animations do Ubuntu novo..
- #########################################
- disable_animations_gsettings() {
- gsettings set org.gnome.desktop.interface enable-animations false
- gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
- }
- install_package_if_missing() {
- if ! dpkg -l | grep -q $1; then
- sudo apt-get update && sudo apt-get install -y $1
- fi
- }
- disable_animations_dconf() {
- dconf write /org/gnome/desktop/interface/enable-animations false
- }
- main() {
- install_package_if_missing gnome-tweaks
- install_package_if_missing dconf-editor
- # Desativa as animações
- disable_animations_gsettings
- disable_animations_dconf
- echo "As animações foram desativadas. Por favor, reinicie o sistema para que as alterações tenham efeito."
- }
- main
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement