简体   繁体   中英

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).
  • Setting 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可以使用-b选项设置on-all-desktops和always-on-top属性(特定属性分别是stickyabove

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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