简体   繁体   English

侏儒壳扩展。 使用Windows

[英]Gnome-shell extension. Working with windows

How do I switch windows programmaticly? 如何以编程方式切换Windows? I mean like Alt+Tab does but without any labels or something. 我的意思是像Alt + Tab一样,但是没有任何标签或其他内容。

I tried to look through the documentation but it's too complicated for me ( you can say then not to do it, but I learned action script with help of a good docs although didn't know a thing at first). 我试图浏览文档,但对我来说太复杂了(您可以说然后不做,但是尽管起初并不了解,但是我在好的文档的帮助下学习了动作脚本)。 And I don't complitly understand where exactly to look, because there a lot of libraries and some thing called GObject-Introspection. 而且我不完全了解该在哪里查找,因为那里有很多库和一些叫做GObject-Introspection的东西。 And when I am trying to find something there, I get lost out there, because I don't realy know what am I looking for. 当我试图在这里找到东西时,我迷路了,因为我真的不知道我在寻找什么。 It's kind of a circle)). 这是一个圆圈))。

I also tried to look at the source codes of other extensions, but it's even more complicated than the documentation. 我还尝试查看其他扩展的源代码,但是它比文档还要复杂。 It sounds like I am pretty dummy but I can catch it up. 听起来我很傻,但是我可以追上它。

So, does anybody know how to deal with switching windows, where I can find methods I need in documantation or anything else? 那么,有人知道如何处理切换窗口吗?我可以在其中找到我在文档处理或其他方面需要的方法吗?

The library you seem to looking for is libwnck . 您似乎在寻找的库是libwnck The library is written in C. However, you can access them in different languages, like JavaScript for the extensions. 该库是用C编写的。但是,您可以使用其他语言来访问它们,例如扩展的JavaScript。 This is done via GObject-Instrospection, which at this point you do not need to understand deeply (just that GObject-Introspection is the glue that allows you to use the libraries in different languages). 这是通过GObject-Instrospection完成的,这时您无需深入了解(只是GObject-Introspection是使您可以使用不同语言使用库的粘合剂)。 The prefix usually changes depending of the language. 前缀通常根据语言而变化。

For your specific purpose, you might want to take a look at devilpie2 instead. 为了您的特定目的,您可能想看看devilpie2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM