|
#!/usr/bin/env bash |
|
|
|
if [ $(id -u) -ne 0 ]; then |
|
echo "ERROR! This script must be run as root." |
|
exit 1 |
|
fi |
|
|
|
CODENAME=$(lsb_release -cs) |
|
if [ "${CODENAME}" != "groovy" ]; then |
|
echo "ERROR! This script is only supported on Ubuntu 20.10 (Groovy)." |
|
exit 1 |
|
fi |
|
|
|
# This PPA includes: |
|
# * mate-indicator-applet from Debain sid, patched to support Ayatana indicators |
|
# * ayatana-indicator-sound which is not yet available in Debian/Ubuntu |
|
# * ayatana-indicator-notifcations with recent upstream features ported over |
|
apt-add-repository -y ppa:flexiondotorg/playpark |
|
apt -y install arctica-greeter |
|
# FIXME: |
|
# * arctica-greeter recommends numix theme/icon and a bunch of fonts |
|
# * Do not install `arctica-greeter-guest-session` since it pulls in `openbox` |
|
apt -y remove --autoremove slick-greeter lightdm-settings |
|
|
|
# Remove Ubuntu Indicators |
|
apt -y remove --autoremove \ |
|
indicator-application \ |
|
indicator-datetime \ |
|
indicator-messages \ |
|
indicator-notifications \ |
|
indicator-power \ |
|
indicator-session \ |
|
indicator-sound |
|
rm -v /usr/share/mate/autostart/indicator-application.desktop |
|
rm -v /usr/share/mate/autostart/indicator-datetime.desktop |
|
rm -v /usr/share/mate/autostart/indicator-messages.desktop |
|
rm -v /usr/share/mate/autostart/indicator-power.desktop |
|
rm -v /usr/share/mate/autostart/indicator-session.desktop |
|
rm -v /usr/share/mate/autostart/indicator-sound.desktop |
|
|
|
# Install Ayatana Indicators |
|
apt -y install \ |
|
ayatana-indicator-application \ |
|
ayatana-indicator-datetime \ |
|
ayatana-indicator-notifications \ |
|
ayatana-indicator-power \ |
|
ayatana-indicator-printers \ |
|
ayatana-indicator-session \ |
|
ayatana-indicator-sound |
|
|
|
apt -y update |
|
apt -y upgrade |
|
apt -y autoremove |
|
|
|
# Create new defaults of artica-greeter |
|
#FIXME: The a11y indicator doesn't get displayed. |
|
cat <<'EOM' > /usr/share/glib-2.0/schemas/99_ubuntu-mate.gschema.override |
|
[org.ArcticaProject.arctica-greeter] |
|
background='/usr/share/backgrounds/ubuntu-mate-common/Green-Wall-Logo.png' |
|
background-color='#3C3B37' |
|
draw-grid=false |
|
draw-user-backgrounds=false |
|
enable-hidpi='auto' |
|
font-name='Ubuntu 11' |
|
icon-theme-name='Ambiant-MATE' |
|
high-contrast=false |
|
show-hostname=true |
|
indicators=['ug-accessibility', 'org.ayatana.indicator.keyboard', 'org.ayatana.indicator.session', 'org.ayatana.indicator.datetime', 'org.ayatana.indicator.power', 'org.ayatana.indicator.sound', 'ayatana-application'] |
|
logo='' |
|
only-on-monitor='auto' |
|
onscreen-keyboard=false |
|
play-ready-sound=true |
|
screen-reader=false |
|
show-hostname=true |
|
theme-name='Ambiant-MATE' |
|
togglebox-button-bgcolor='#87A556' |
|
togglebox-font-fgcolor='#A0A0A0' |
|
xft-antialias=true |
|
xft-dpi=96 |
|
xft-hintstyle='hintslight' |
|
xft-rgba='rgb' |
|
|
|
[org.ayatana.indicator.datetime] |
|
alarm-default-sound='/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga' |
|
calendar-default-sound='/usr/share/sounds/Yaru/stereo/message.oga' |
|
|
|
[org.ayatana.indicator.session] |
|
suppress-restart-menuitem=true |
|
|
|
[org.ayatana.indicator.notifications] |
|
filter-list=['Spotify', 'NetworkManager', 'MATE Tweak'] |
|
EOM |
|
glib-compile-schemas /usr/share/glib-2.0/schemas |
|
|
|
# Copy notification indicator icons |
|
# FIXME: despite overriding these icons, the themed icons are not being used. |
|
cp -av /usr/share/icons/Ambiant-MATE/status/22/indicator-notification-read-dnd.svg /usr/share/icons/Ambiant-MATE/status/22/ayatana-indicator-notification-read-dnd.svg |
|
cp -av /usr/share/icons/Ambiant-MATE/status/22/indicator-notification-read.svg /usr/share/icons/Ambiant-MATE/status/22/ayatana-indicator-notification-read.svg |
|
cp -av /usr/share/icons/Ambiant-MATE/status/22/indicator-notification-unread-dnd.svg /usr/share/icons/Ambiant-MATE/status/22/ayatana-indicator-notification-unread-dnd.svg |
|
cp -av /usr/share/icons/Ambiant-MATE/status/22/indicator-notification-unread.svg /usr/share/icons/Ambiant-MATE/status/22/ayatana-indicator-notification-unread.svg |
|
gtk-update-icon-cache /usr/share/icons/Ambiant-MATE/ |
|
|
|
cp -av /usr/share/icons/Radiant-MATE/status/22/indicator-notification-read-dnd.svg /usr/share/icons/Radiant-MATE/status/22/ayatana-indicator-notification-read-dnd.svg |
|
cp -av /usr/share/icons/Radiant-MATE/status/22/indicator-notification-read.svg /usr/share/icons/Radiant-MATE/status/22/ayatana-indicator-notification-read.svg |
|
cp -av /usr/share/icons/Radiant-MATE/status/22/indicator-notification-unread-dnd.svg /usr/share/icons/Radiant-MATE/status/22/ayatana-indicator-notification-unread-dnd.svg |
|
cp -av /usr/share/icons/Radiant-MATE/status/22/indicator-notification-unread.svg /usr/share/icons/Radiant-MATE/status/22/ayatana-indicator-notification-unread.svg |
|
gtk-update-icon-cache /usr/share/icons/Radiant-MATE/ |
|
|
|
# FIXME: mate-tweak need to become ayatana-indicator-aware |