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: system-nvidia-smi
A script that shows the NVIDIA GPU utilization.
## Dependencies
* `nvidia-smi`
## Configuration
There are several `--query-gpu=` values. Use nvidia-smi `--help-query-gpu` for a complete list and description. The most notable are `fan.speed`, `memory.used`, `memory.total`, `driver_version`, `power.draw`, `pstate`.
If you don't need custom labelling use instead:
`nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader`
## Module
```ini
[module/system-nvidia-smi]
type = custom/script
exec = ~/polybar-scripts/system-nvidia-smi.sh
interval = 10
```

View File

@@ -0,0 +1,3 @@
#!/bin/sh
nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{ print "GPU",""$1"","%"}'