2020-08-15 03:35:54 +02:00
|
|
|
# Docker Widget
|
|
|
|
|
2020-08-20 14:10:48 +02:00
|
|
|
[![GitHub issues by-label](https://img.shields.io/github/issues-raw/streetturtle/awesome-wm-widgets/docker)](https://github.com/streetturtle/awesome-wm-widgets/labels/docker)
|
2020-08-20 14:06:29 +02:00
|
|
|
![Twitter URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fstreetturtle%2Fawesome-wm-widgets%2Fedit%2Fmaster%2Fdocker-widget)
|
|
|
|
|
2020-08-17 23:05:21 +02:00
|
|
|
The widget allows to manage docker containers, namely start/stop/pause/unpause:
|
2020-08-17 23:00:55 +02:00
|
|
|
|
2020-08-17 23:04:22 +02:00
|
|
|
<p align="center">
|
|
|
|
<img src="https://github.com/streetturtle/awesome-wm-widgets/raw/master/docker-widget/docker.gif"/>
|
|
|
|
</p>
|
|
|
|
|
2020-08-17 23:00:55 +02:00
|
|
|
## Customization
|
|
|
|
|
|
|
|
It is possible to customize widget by providing a table with all or some of the following config parameters:
|
|
|
|
|
|
|
|
| Name | Default | Description |
|
|
|
|
|---|---|---|
|
|
|
|
| `icon` | `./docker-widget/icons/docker.svg` | Path to the icon |
|
|
|
|
| `number_of_containers` | `-1` | Number of last created containers to show |
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Clone the repo under **~/.config/awesome/** and add widget in **rc.lua**:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
local docker_widget = require("awesome-wm-widgets.docker-widget.docker")
|
|
|
|
...
|
|
|
|
s.mytasklist, -- Middle widget
|
|
|
|
{ -- Right widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
...
|
|
|
|
-- default
|
|
|
|
docker_widget(),
|
|
|
|
-- customized
|
2020-12-24 02:41:24 +01:00
|
|
|
docker_widget{
|
2020-08-17 23:00:55 +02:00
|
|
|
number_of_containers = 5
|
|
|
|
},
|
2020-08-17 23:04:22 +02:00
|
|
|
```
|