mirror of
https://github.com/redocnib/docker-tray
synced 2024-11-22 02:31:57 +01:00
1.6 KiB
1.6 KiB
Docker-Tray
Docker-Tray is a Linux (gtk) C++ application to monitor docker.service and allows to start and stop the service from system tray.
Screenshots
Execution
Running the application.
g++ docker-service-tray.cc -o docker-tray `pkg-config --cflags --libs gtk+-3.0 appindicator3-0.1` -lsystemd
./docker-tray
Dependencies
sudo apt install libsystemd-dev
sudo apt-get install libgtk-3-dev
sudo apt install libappindicator3-dev
lsystemd
tray.h from https://github.com/zserge/tray
The application utalizes sd_bus for hooking service states.
Autostart - run on startup
For debian systems add the following text to nano ~/.config/autostart/docker-tray.desktop
replace with orginal path.
[Desktop Entry]
Name=Docker Tray
Comment=Test
Exec=<path to executable>/docker-tray
Type=Application
Terminal=false
Hidden=false
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
To do:
- Implement make, build and packing
- Enable/Disable service from tray.
- Enable/disable application on startup
- Refactor the code, implement proper testing.
Please make sure to update tests as appropriate.