power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,26 @@
# Script: info-docker
Shows the number of Docker containers in one of the states: `created`, `restarting`, `running`, `removing`, `paused`, `exited`, `dead`
![info-docker](screenshots/1.png)
## Configuration
You have to add the `docker` command to the `/etc/sudoers` NOPASSWD of your user:
```ini
user ALL=(ALL) NOPASSWD: /usr/bin/docker ps -qf status=running
user ALL=(ALL) NOPASSWD: /usr/bin/docker ps -qf status=exited
user ALL=(ALL) NOPASSWD: /usr/bin/docker ps -qf status=dead
```
## Module
```ini
[module/info-docker]
type = custom/script
exec = ~/polybar-scripts/info-docker.sh
interval = 60
```

View File

@@ -0,0 +1,9 @@
#!/bin/sh
STATUS="running exited dead"
for stat in $STATUS; do
output="$output $(sudo docker ps -qf status="$stat" | wc -l) |"
done
echo "|$output"

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B