SHARE
TWEET

How I Restore Mint Settings

Linux-Advocate Jul 9th, 2019 98 in 321 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo " "
  2. echo "Setting up the Cinnamon Desktop Environment ..."
  3. echo " "
  4. sleep 1
  5. # Copy over Nemo bookmarks.
  6. cp /$MP/$DV/mint-custom/bookmarks ~/.config/gtk-3.0/
  7. #
  8. # Copy over GTK override for GNOME applications header bar sizes.
  9. cp /$MP/$DV/mint-custom/cinnamon/gtk.css ~/.config/gtk-3.0/
  10. #
  11. # Copy over additional start menu items for scripts, applications with
  12. # pointers to other Mint-Y icons and start menu locations.
  13. mkdir ~/.local/share/applications
  14. cp \
  15. /$MP/$DV/mint-custom/applications/*.desktop \
  16. ~/.local/share/applications/
  17. #
  18. # Remove this for Mint 19.1 Traditional Desktop Layout.
  19. rm ~/.cinnamon/configs/grouped-window-list@cinnamon.org/3.json
  20. #
  21. # Copy over auto start items.
  22. if [ ! -e "/$HOME/.config/autostart/" ]
  23. then
  24.   mkdir ~/.config/autostart
  25. fi
  26. cp /$MP/$DV/mint-custom/autostart/*.desktop ~/.config/autostart/
  27. #
  28. # Copy over default mime applications, open files with list.
  29. cp /$MP/$DV/mint-custom/mimeapps.list ~/.config/
  30. #
  31. # Copy over included and excluded cinnamon-applications menu file.
  32. # This file customizes the start menu, where applications appear and
  33. #  turns off ones we do not wish to see.
  34. cp /$MP/$DV/mint-custom/cinnamon/*.menu ~/.config/menus/
  35. #
  36. # Copy over custom panel-launcher file.
  37. mkdir -p ~/.cinnamon/configs/panel-launchers@cinnamon.org
  38. cp \
  39. /$MP/$DV/mint-custom/cinnamon/14.json \
  40. ~/.cinnamon/configs/panel-launchers@cinnamon.org/
  41. #
  42. # Copy over improved calendar with UTC time display.
  43. # First put shared files in place,
  44. mkdir -p ~/.local/share/cinnamon/applets/calendar@simonwiles.net
  45. unzip -q \
  46. /$CF/applets/calendar-at-simonwiles-dot-net.zip -d \
  47. ~/.local/share/cinnamon/applets/
  48. # Now copy the Cinnamon config file.
  49. mkdir -p ~/.cinnamon/configs/calendar@simonwiles.net
  50. cp \
  51. /$MP/$DV/mint-custom/cinnamon/27.json \
  52. ~/.cinnamon/configs/calendar@simonwiles.net/
  53. #
  54. # Copy Mint-X and Mint-Y themes to user directory and apply custom settings.
  55. # Check to see if .themes directory exists first.
  56. if [ ! -e "/$HOME/.themes" ]
  57. then
  58.   mkdir ~/.themes
  59. fi
  60. #
  61. # Modify existing theme in user space.
  62. # Make the title text darker in Cinnamon Metacity.
  63. cp -a /usr/share/themes/Mint-X ~/.themes
  64. sed -i 's+<constant name="C_title_focused" value="shade/gtk\:bg\[NORMAL\]/0.50"/>+<constant name="C_title_focused" value="shade/gtk:bg[NORMAL]/0.00"/>+' ~/.themes/Mint-X/metacity-1/metacity-theme-3.xml
  65. sed -i 's+color: shade(@theme_bg_color, 0.5)+color: shade(@theme_text_color, 0.00)+' ~/.themes/Mint-X/gtk-3.0/gtk-widgets.css
  66. #
  67. # Modify existing theme in user space.
  68. # Make the title text darker in GTK2/3 for GNOME applications.
  69. cp -a /usr/share/themes/Mint-X-Aqua ~/.themes
  70. sed -i 's+color: shade(@theme_bg_color, 0.5)+color: shade(@theme_text_color, 0.00)+' ~/.themes/Mint-X-Aqua/gtk-3.0/gtk-widgets.css
  71. #
  72. # Modify existing theme in user space.
  73. # Make the vertical pad in the title bar the same as in Mint-X.
  74. cp -a /usr/share/themes/Mint-Y ~/.themes
  75. sed -i 's+<distance name="title_vertical_pad" value="3"/>+<distance name="title_vertical_pad" value="0"/>+' ~/.themes/Mint-Y/metacity-1/metacity-theme-3.xml
  76. #
  77. # Modify existing theme in user space.
  78. # Make the vertical pad in the title bar the same as in Mint-X.
  79. cp -a /usr/share/themes/Mint-Y-Dark ~/.themes
  80. sed -i 's+<distance name="title_vertical_pad" value="3"/>+<distance name="title_vertical_pad" value="0"/>+' ~/.themes/Mint-Y-Dark/metacity-1/metacity-theme-3.xml
  81. #
  82. # Loading saved common System Settings from dconf dump. -- Mega Time saver!!
  83. # ! remark ! Contains defaults for all computers.
  84. dconf load / < /$MP/$DV/mint-custom/dconf.all
  85. #
  86. # Edit favorites menu height for Mint 19.1 to a custom value.
  87. # Added time for new menu@cinnamon.org dir and 12.json file to be generated
  88. # after dconf.all is loaded and new sequence numbers are generated for menu
  89. # components.  Time given avoids an occasional Cinnamon crash.
  90. sleep 1
  91. sed -i 's+"value": 300+"value": 320+' ~/.cinnamon/configs/menu@cinnamon.org/12.json
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top