Skip to content

poomon/obcpufreq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

obcpufreq

what

obcpufreq is a tiny program to show/set cpu frequencies via a pipemenu of openbox3.

license

GPLv2 because most code are ripped from cpufreq-info which is under GPLv2.

dependencies

  • libcpufreq - It might be bundled with cpufrequtils package (or its successor cpupowerutils).
  • (optional) cpufreq-set and sudo command are required to modify current cpufreq settings.

compile

Make sure you have a header file of libcpufreq, e.g. /usr/include/cpufreq.h

make

install

Put a shiny new executable obcpufreq into somewhere you like.

settings

It's quite same as other pipe menus.

  1. Insert the following xml line within the root menu element <menu>...</menu> in ~/.config/openbox/menu.xml. Don't forget to replace /PATH/TO/obcpufreq of the execute attribute with actual path of installed obcpufreq. you can change id="" label="" part as you wish.

    <menu id="cpufreq-menu" label="cpu freqs" execute="/PATH/TO/obcpufreq"/>
    
  2. If you wish to change cpufreq policy by this menu it will be necessary to allow sudo command to invoke cpufreq-set command without asking password. You can modify cpufreq-set command line in Makefile's CPUFREQ_SET var.

About

show and set cpufreq settings from openbox pipe menu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages