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,19 @@
# Script: system-fan-speed
A shell script which displays the fan speed.
## Dependencies
* `lm_sensors`
* `bc`
## Module
```ini
[module/system-fan-speed]
type = custom/script
exec = ~/polybar-scripts/system-fan-speed.sh
interval = 10
```

View File

@@ -0,0 +1,10 @@
#!/bin/sh
speed=$(sensors | grep fan1 | awk '{print $2; exit}')
if [ "$speed" != "" ]; then
speed_round=$(echo "$speed/1000" | bc -l | LANG=C xargs printf "%.1f\n")
echo "# $speed_round"
else
echo "#"
fi