Advertisement
Rnery

Disable animations...

Oct 23rd, 2023 (edited)
1,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.85 KB | Source Code | 0 0
  1. #!/usr/bin/env bash
  2. # Desabilitar as animations do Ubuntu novo..
  3. #########################################
  4.  
  5. disable_animations_gsettings() {
  6.   gsettings set org.gnome.desktop.interface enable-animations false
  7.   gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
  8. }
  9.  
  10. install_package_if_missing() {
  11.   if ! dpkg -l | grep -q $1; then
  12.     sudo apt-get update && sudo apt-get install -y $1
  13.   fi
  14. }
  15.  
  16. disable_animations_dconf() {
  17.   dconf write /org/gnome/desktop/interface/enable-animations false
  18. }
  19.  
  20. main() {
  21.   install_package_if_missing gnome-tweaks
  22.   install_package_if_missing dconf-editor
  23.  
  24.   # Desativa as animações
  25.   disable_animations_gsettings
  26.   disable_animations_dconf
  27.  
  28.   echo "As animações foram desativadas. Por favor, reinicie o sistema para que as alterações tenham efeito."
  29. }
  30.  
  31. main
  32.  
  33. exit 0
  34.  
Tags: BASH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement