power menu, redshift, polybar
This commit is contained in:
19
.config/polybar/scripts/info-podman/README.md
Normal file
19
.config/polybar/scripts/info-podman/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Script: info-podman
|
||||
|
||||
Shows the number of Podman containers in one of the states: `created`, `exited`, `paused`, `running`, `unknown`
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* [`podman`](https://github.com/containers/podman)
|
||||
|
||||
|
||||
## Module
|
||||
```ini
|
||||
[module/info-podman]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-podman.sh
|
||||
interval = 60
|
||||
```
|
||||
9
.config/polybar/scripts/info-podman/info-podman.sh
Normal file
9
.config/polybar/scripts/info-podman/info-podman.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
STATUS="created exited paused running unknown"
|
||||
|
||||
for stat in $STATUS; do
|
||||
output="$output $(podman ps -qf status="$stat" | wc -l) |"
|
||||
done
|
||||
|
||||
echo "|$output"
|
||||
BIN
.config/polybar/scripts/info-podman/screenshots/1.png
Normal file
BIN
.config/polybar/scripts/info-podman/screenshots/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 919 B |
Reference in New Issue
Block a user