1
1
Fork 0
mirror of https://github.com/redocnib/docker-tray synced 2024-04-27 03:35:00 +02:00
Docker-Tray is a Linux (gtk) C++ application to monitor docker.service and allows to start and stop the service from system tray.
Go to file
BinCoder 9e9ef3e5ca Minor Fixes 2021-04-17 18:05:04 +05:30
icons Initial setup 2020-02-10 22:23:00 +05:30
.gitignore Initial setup 2020-02-10 22:23:00 +05:30
docker-service-tray.cc Minor Fixes 2021-04-17 18:05:04 +05:30
readme.md Dependencies 2020-02-11 14:32:02 +05:30
tray.h Initial setup 2020-02-10 22:23:00 +05:30

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

bar 1 Screenshot from 2020-02-11 14-11-18 image

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.

License

MIT