awesome-wm-widgets/docker-widget
Nuno Silva e791743eaf fix CI warnings
from https://github.com/streetturtle/awesome-wm-widgets/actions/runs/6915243510/job/18813967822?pr=421
2023-11-18 18:17:55 +00:00
..
icons [docker] add a delete button 2020-11-23 17:12:30 -05:00
README.md Fix documentation inconsistencies (mainly tables) 2023-09-20 23:01:55 +01:00
docker.gif [docker] update readme 2020-08-17 17:00:55 -04:00
docker.lua fix CI warnings 2023-11-18 18:17:55 +00:00

README.md

Docker / Podman Widget

GitHub issues by-label Twitter URL

The widget allows to manage docker and podman containers, namely start/stop/pause/unpause:

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
executable_name docker Name of the executable to use, defaults to docker
max_widget_width 270 Maximum width of the widget before the text breaks

The executable_name allows you to use Podman instead of docker. This works since Podman is compatible to docker in the sense that the syntax and command outputs are identical.

Installation

Clone the repo under ~/.config/awesome/ and add widget in rc.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
        docker_widget{
            number_of_containers = 5
        },