开发者

X11: Setting a window undecorated or always-visible via command-line

This question mentions the tools xdotool and wmctrl which are able to change a window's geometry via the command-line. This OK.

But, what if I want to do more advanced operations, for instance:

  • Setting a window undecorated.
  • Making a window visible on all desktops (omnipresent).
  • S开发者_JS百科etting a window always visible.

Are there any tools allowing me to do the things avobe from command-line?

I use Openbox as my window manager.


wmctrl can set the on-all-desktops and always-on-top properties using the -b option (the specific properties are sticky and above, respectively)


I thought:

The window navigator of GNOME can do some of this actions, so it should use a library to achieve it.

Looking at his sources, I found it. It is the Window Navigation Construction Kit (wnck for short).
This C/C++ library is called libwnck, and the reference manual can be found here.

But, as it's not a standalone tool, I will probably need to make a custom program to use it.  :-(
I will edit this answer if I found news, but you're welcome to post your answer if you found a tool!


Edit: Using the bindings for Python (python-wnck) it's easy to make a script achieve it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜