bash script to install screenlets in 18.04.x x64 Bionic
Note: Only for clean installation. Not tested on upgrades from previous versions to 18.04
To Run (without sudo):
~$ chmod +x ./screenlets.sh && ./screenlets.sh
Content of script:
#!/bin/bash
echo "Screenlets Setup. Wait..."
function screenlets(){
clear
sudo rm -rf /etc/apt/sources.list.d/screenlets*
# Dependencies
sudo apt -y install software-properties-common
sudo dpkg -l python-wnck
if [ $? == 0 ]; then
echo "OK"
else
sudo apt -y install libwnck22
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-python-desktop/python-wnck_2.32.0+dfsg-4_amd64.deb
sudo dpkg -i python-wnck_2.32.0+dfsg-4_amd64.deb
sudo apt --fix-broken -y install
fi
sudo dpkg -l python-gnomekeyring
if [ $? == 0 ]; then
echo "OK"
else
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-python-desktop/python-gnomekeyring_2.32.0+dfsg-4_amd64.deb
sudo dpkg -i python-gnomekeyring_2.32.0+dfsg-4_amd64.deb
sudo apt --fix-broken -y install
fi
# Screenlets Setup
sudo add-apt-repository -y ppa:screenlets/ppa
sudo sed -i 's/bionic/xenial/g' /etc/apt/sources.list.d/screenlets-ubuntu-ppa-bionic.list
sudo apt update
sudo apt -y install screenlets screenlets-pack-all
sudo rm -rf /etc/apt/sources.list.d/screenlets*
}
screenlets &> /dev/null
echo "Done"
To remove:
sudo apt -y purge python-wnck python-gnomekeyring libwnck22 screenlets screenlets-pack-all && sudo apt -y autoremove && sudo rm -rf /etc/apt/sources.list.d/screenlets* ~/.config/autostart/screenlets-daemon.desktop
source: maravento