patra पात्र
a Vyom tool

patra

पात्र · “vessel”

Docker containers: grouped by compose project, live CPU and memory, logs in the preview; restart, stop, start, shell, logs.

विद्या ददाति विनयं विनयाद्याति पात्रताम् ।
पात्रत्वाद्धनमाप्नोति धनाद्धर्मं ततः सुखम् ॥

Knowledge gives humility, humility makes one a worthy vessel, and from that come wealth, right action and joy. Hitopadeśa, Prastāvikā 6
v0.3.0 latest7 releases3 decisions recordedMIT license

patra: containers grouped by compose project with live CPU and memory, and the picked one's details with Restart, Stop and Shell

Screenshots use made-up demo containers.

Patra (पात्र) is Sanskrit for "vessel": the vessels your apps run in: containers.

patra is docker containers for Vyom: one keyboard-driven panel that opens instantly, with live data, a preview and a key for everything. It runs on any compositor with the layer-shell protocol (sway, Hyprland, river, niri, Wayfire, labwc…). In Vayu, the desktop it was built for, it replaces docker-picker.py.

#Features

#Install

#Requirements

#Install

git clone https://github.com/Theyashsawarkar/patra ~/.local/share/vyom/plugins/patra
vyom reload           # pick it up (or log out and in)
vyom patra            # open it; run it again to close

Give it a key in your compositor, e.g. sway:

bindsym $mod+<key> exec vyom patra

#Update and uninstall

git -C ~/.local/share/vyom/plugins/patra pull && vyom reload     # update
rm -rf ~/.local/share/vyom/plugins/patra && vyom reload          # uninstall

#Usage

Open it with vyom patra (or your key). It opens in NORMAL mode, where every letter is a key and typing changes nothing: j / k move, Enter follows the logs, x stops or starts, dd removes (it asks), / types a filter (INSERT mode; Esc goes back). Space is the leader: wait a moment after it and a strip shows what comes next.

Vyom's vim keys work too: ? and Space ? list every key, Space Space is the palette, q closes, Esc steps back, Space u f is fullscreen, Space r refreshes, j / k move, gg / G jump, / searches.

Normal mode (where it opens; / types a filter)

KeyAction
EnterFollow the selected container's logs in a terminal
oOpen a shell in the selected container
xStop the selected container, or start a stopped one
RRestart the selected container
d dRemove the selected stopped container (y confirms)
y yCopy the container's name
rReload the list now

Leader (Space)

KeyAction
Space c rRestart the selected container
Space c sStop the selected container, or start a stopped one
Space c lFollow the selected container's logs in a terminal
Space c hOpen a shell in the selected container
Space o tOpen a shell in the selected container, in a terminal
Space y yCopy the container's name
Space y iCopy the container's ID
Space y pCopy the container's ports
Space f rShow only running containers (again: show all)
Space f sShow only stopped containers (again: show all)
Space f tShow only the ones that need you (again: show all)
Space f cClear the filter: show every container
Space s cSort the containers by CPU (busiest first; again: the usual order)
Space s mSort the containers by memory (biggest first; again: the usual order)
Space s nSort the containers by name (A to Z; again: the usual order)
Space d dRemove the selected stopped container (y confirms)

Keys that moved in this release still say where they went: Ctrl+l → Enter, Ctrl+Backspace → d d.

#Configuration

Everything is optional, in ~/.config/vyom/config.toml under [plugin.patra]:

SettingDefaultWhat it does
terminal$TERMINAL, else kitty/foot/alacritty/weztermTerminal for logs and shells

Run vyom reload after editing.

#Troubleshooting

#The Vyom family

Each tool is its own repository, so you install only the ones you want:

ToolWhat it does
dvaraद्वार, gatewayThe app launcher
ganitगणित, mathematicsThe calculator and converter
smritiस्मृति, memoryClipboard history
bhavaभाव, feeling, emotionThe emoji picker
tarangतरंग, waveWi‑Fi and the hotspot
setuसेतु, bridgeBluetooth
dootदूत, messengerYour phone, through KDE Connect
patra (this one)पात्र, vesselDocker containers
akashvaniआकाशवाणी, voice from the skyNotifications
ragaराग, melodyYouTube music and video
mudraमुद्रा, gestureKeybinding search
urjaऊर्जा, energyThe battery at a glance
vishramविश्राम, restThe power menu
kendraकेन्द्र, centreQuick settings

#Contributing

Bug reports, ideas and pull requests are welcome: see CONTRIBUTING.md for the development setup and the few rules every tool follows, and CHANGELOG.md for what changed in each release. Please report security issues privately (SECURITY.md).

#License

MIT.