使用 Python 或 Vala 以编程方式控制 Linux Compiz 亮度

发布于 2024-09-08 01:22:39 字数 322 浏览 4 评论 0原文

市场上的几款笔记本电脑在使用 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南巷近海 2024-09-15 01:22:39

您需要研究 gnome-compiz,尤其是 gtk-window-decorator 和 gnome-xgl-settings。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文