市场上的几款笔记本电脑在使用 Linux 进行亮度控制时存在问题。然而,最近我发现您可以使用 CompizConfig 设置来调暗至少一个特定的窗口。然而,许多人希望将所有窗户调暗。我知道 Compiz 可以在 API 中的某个地方执行此操作,因为看看当您在 Compiz 中执行 Super + Tab 时会发生什么。
所以这让我开始思考……我需要用 Python 或这种新的 Vala 语言构建一个 GNOME 小程序,它与 Compiz API 交互并让我调暗整个屏幕。
有谁知道我在哪里可以找到一些编程资源来学习如何在 Python 或 Vala 中使用 Compiz API 来调暗屏幕?
Several laptops on the market have problems with Linux for brightness controls. However, recently I found out that you can 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?
发布评论
评论(1)
您需要研究 gnome-compiz,尤其是 gtk-window-decorator 和 gnome-xgl-settings。
You want to look into gnome-compiz especially into gtk-window-decorator and gnome-xgl-settings.