开发者

Controlling Linux Compiz Brightness Programmatically with Python or Vala

开发者 https://www.devze.com 2023-01-06 04:23 出处:网络
Several laptops on the market have problems with Linux for brightness controls. However, recently I found out that you c开发者_如何转开发an use CompizConfig settings to dim at least a particular windo

Several laptops on the market have problems with Linux for brightness controls. However, recently I found out that you c开发者_如何转开发an use CompizConfig settings to dim at least a particular window. Many people, however, want to dim all windows. I know Compiz can do this in the API somewhere because look what happens when you do Super + Tab in Compiz.

So this got me thinking...what I need to build is a GNOME applet in either Python, or perhaps this new Vala language, that interfaces with the Compiz API and lets me dim the entire screen.

Does anyone know where I might find some programming resources to learn how to use Compiz API in Python or Vala to dim the screen?


You want to look into gnome-compiz especially into gtk-window-decorator and gnome-xgl-settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消