答案1
按照以下两个步骤即可实现。
获取hamster-time-tracker
包来自时髦的:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/h/hamster-time-tracker/hamster-time-tracker_3.0.2-3_all.deb
sudo apt-get install ./hamster-time-tracker_3.0.2-3_all.deb
克隆仓鼠unity-indicator
存储库并将指标安装到系统中:
sudo apt-get install git python-is-python3 gir1.2-appindicator3-0.1 python3-gi-cairo
cd ~/Downloads
git clone https://github.com/projecthamster/unity-indicator.git
cd unity-indicator
sudo mkdir -p /usr/local/share/glib-2.0/schemas/
sudo cp data/hamster-indicator.gschema.xml /usr/local/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas
sudo cp hamster-indicator /usr/local/bin/hamster-indicator
mkdir -p ~/.local/share/applications
cp data/hamster-indicator.desktop ~/.local/share/applications
sed -i "s|Icon=hamster-time-tracker|Icon=hamster-indicator-active|" ~/.local/share/applications/hamster-indicator.desktop
sed -i "s|Exec=/usr/bin/hamster-indicator|Exec=/usr/local/bin/hamster-indicator|" ~/.local/share/applications/hamster-indicator.desktop
mkdir -p ~/.local/share/pixmaps
cp data/icons/hicolor/24x24/* ~/.local/share/pixmaps/
cp data/icons/hicolor/scalable/* ~/.local/share/pixmaps/
享受:
也可以使用以下命令使其在 MATE 上运行:
cd ~/Downloads/unity-indicator
mkdir -p ~/.local/share/icons/ubuntu-mono-dark/apps/24/
mkdir -p ~/.local/share/icons/ubuntu-mono-light/apps/24/
cp /usr/share/icons/ubuntu-mono-dark/index.theme ~/.local/share/icons/ubuntu-mono-dark
cp /usr/share/icons/ubuntu-mono-light/index.theme ~/.local/share/icons/ubuntu-mono-light
cp data/icons/ubuntu-mono-dark/24x24/* ~/.local/share/icons/ubuntu-mono-dark/apps/24/
cp data/icons/ubuntu-mono-light/24x24/* ~/.local/share/icons/ubuntu-mono-light/apps/24/
gtk-update-icon-cache ~/.local/share/icons/ubuntu-mono-dark
gtk-update-icon-cache ~/.local/share/icons/ubuntu-mono-light
得到以下内容: