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,13 @@
# Script: system-cpu-frequency
A shell script that shows the average core frequency (average over number, not over time) in GHz.
## Module
```ini
[module/system-cpu-frequency]
type = custom/script
exec = ~/polybar-scripts/system-cpu-frequency.sh
interval = 10
```

View File

@@ -0,0 +1,10 @@
#!/bin/sh
c=0;t=0
awk '/MHz/ {print $4}' < /proc/cpuinfo | (while read -r i
do
t=$( echo "$t + $i" | bc )
c=$((c+1))
done
echo "scale=2; $t / $c / 1000" | bc | awk '{print $1" GHz"}')