Skip to content

Instantly share code, notes, and snippets.

@rbreaves
Last active May 26, 2020 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbreaves/7438a33553d4f7d25005301dab9dea3b to your computer and use it in GitHub Desktop.
Save rbreaves/7438a33553d4f7d25005301dab9dea3b to your computer and use it in GitHub Desktop.
Degreen Ubuntu Mate
#!/bin/bash
# Let's admit it.. Ubuntu Mate's GUI is very uninspired
# possibly on purpose, who knows. This script attempts
# to quickly undo the most of what the distro authors
# thinks looks good w/ more normal defaults.
#
# Personality is fine, but UI designers that do a poor
# job need to make sure there's an easy undo button.
# Enable HiDPI
gsettings set org.mate.interface window-scaling-factor 2
dconf write /org/mate/desktop/background/picture-filename "'/usr/share/backgrounds/ubuntu-mate-photos/matteo-botto-16023.jpg'"
sudo add-apt-repository ppa:lah7/ubuntu-mate-colours
sudo apt-get update
# sudo apt install ubuntu-mate-colours-blue
sudo apt install ubuntu-mate-colours-all
# Remove 3 dot grabber in top panel
# https://superuser.com/questions/1453354/how-to-remove-the-three-dot-move-grabber-from-notification-area-in-mate
find /usr/share/themes -iname gtk.css | xargs -I % sudo sh -c 'grep Panel "%" || echo "MatePanelAppletFrameDBus > MatePanelAppletFrameDBus {\n\tbackground: none;\n}" >> "%"'
# Might be better to try and use this to override gtk.css
sh -c 'grep Panel "%" || echo "MatePanelAppletFrameDBus > MatePanelAppletFrameDBus {\n\tbackground: none;\n}" >> ~/.config/gtk-3.0/gtk.css'
# Transparency for indicaptor complete area, right area of top menu bar
sh -c 'grep menubar "%" || echo "#fast-user-switch-menubar {\n\tbackground-color:rgba(0,0,0,0);\n}" >> ~/.config/gtk-3.0/gtk.css'
# Change themes
dconf read /org/mate/desktop/interface/gtk-theme
# change theme in general
dconf write /org/mate/desktop/interface/gtk-theme "'Ambiant-MATE-Dark-Blue'"
# Update Window border
dconf write /org/mate/marco/general/theme "'Ambiant-MATE-Dark-Blue'"
# Update icon theme
dconf write /org/mate/desktop/interface/icon-theme "'Ambiant-MATE-Blue'"
# Not needed, but can be done if needed
mate-panel --reset
# # Install Imagemagick to shift color
# sudo apt install imagemagick
# # Shift green to red
# convert Green-Wall-Logo.png -modulate 100,100,50 output.png
# # green to maroon
# convert Green-Wall-Logo.png -modulate 100,50,50 output.png
# # green to blue
# convert Green-Wall-Logo.png -modulate 100,100,-20 output.png
# sudo cp /usr/share/backgrounds/ubuntu-mate-common /usr/share/backgrounds/ubuntu-mate-common.bak
# cp -rf /usr/share/backgrounds/ubuntu-mate-common ~/
# mogrify -path `echo $HOME/ubuntu-mate-common/` -modulate 100,100,-20 *.png *.jpg
# cp -rf ~/ubuntu-mate-common /usr/share/backgrounds/
# rm -rf ~/ubuntu-mate-common
# # Convert wallpapers to Normal Ubuntu Orange
# cd ~/ubuntu-mate-common
# convert Green-Wall-Logo.png -modulate 100,120,70 Green-Wall-Logo.png
# convert Grey-Jazz.jpg -modulate 100,220,65 Grey-Jazz.jpg
# Replace green highlight fields with normal dark blue ones
sudo find /usr/share/themes -type f -exec sed -i 's/87A556/4C5F6C/g' {} \;
# Find all color hex codes for removing more green later
# use -h to remove filename mention
grep -ors --exclude-dir=git-projects --exclude=*.{png,final,svg,cache,gz,zip,ani,sqlite} -E "#[0-9]{6}" /usr/share/themes
# Show specific match example
grep -ors --exclude-dir=git-projects --exclude=*.{png,final,svg,cache,gz,zip,ani,sqlite} -E "#529610|#639156" /usr/share/themes
# Set Plank to transparent theme
dconf write /net/launchpad/plank/docks/dock1/theme "'Transparent'"
# dconf write /net/launchpad/plank/docks/dock1/hide-mode "'none'"
# Set cupertino
mate-tweak --layout eleven
# Set Brisk Menu back to classic from dash
gsettings set com.solus-project.brisk-menu window-type 'classic'
# Replace the green indicators on plank with default blue plank ones
sudo vi /usr/share/plank/themes/Default/dock.theme
# Replace
#The color (RGBA) of the outer stroke.
OuterStrokeColor=41;;41;;41;;255
#The starting color (RGBA) of the fill gradient.
FillStartColor=41;;41;;41;;255
#The ending color (RGBA) of the fill gradient.
FillEndColor=80;;80;;80;;255
#The color (RGBA) of the inner stroke.
InnerStrokeColor=255;;255;;255;;255
#The color (RGBA) of the outer stroke.
# with
#The color (RGBA) of the outer stroke.
OuterStrokeColor=255;;255;;255;;200
#The starting color (RGBA) of the fill gradient.
FillStartColor=38;;50;;56;;200
#The ending color (RGBA) of the fill gradient.
FillEndColor=38;;50;;56;;200
#The color (RGBA) of the inner stroke.
InnerStrokeColor=2;;2;;2;;0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment