commit 8d1fffb4e2998018b8d7f0a8d19775b607bcde46 Spenser Truex <truex@equwal.com> 2025-09-01 19:36:04 -0400 dcpupower: select CPU throttling settings
README.md | 1 + dcpupower | 8 ++++++++ 2 files changed, 9 insertions(+)
diff --git a/README.md b/README.md index db12528..2eb0d57 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ with that. - `dbc`: do `bc -l` on the input so you can do math - `dbrowsel`: select a browser for the link in the clipboard to open +- `dcpupower`: select CPU throttling settings - `ddmenu`: use dmenu to select a dmenu script -- dception - `dmenu_run/dsudo`: run programs, maybe from a keybind set with xbindkeys or a wm - `dshow`: run a command and show output without having to open a terminal diff --git a/dcpupower b/dcpupower new file mode 100755 index 0000000..b61270a --- /dev/null +++ b/dcpupower @@ -0,0 +1,8 @@ +#!/bin/sh +LINES=10 +freqs="$(cpupower frequency-info | grep 'available cpufreq' \ + | sed 's/.*://' \ + | sed 's/, \| /\n/g' \ + | sed 's/^ *//' \ + | uniq)" +freq=$(echo "$freqs" | dmenu -l "$LINES" -p "Freq: ")