how to hide window using linux command
In my windows xp I used http://www.commandline.co.uk/cmdow/cmdow.zip to hide a window & bring it back.
In linux I came across XtUnrealizeWidget() & XtUnmanageChild(). How can I use them to hide window ? If there is some another way , please suggest. |
That would largely depend on your window manager/desktop environment?
|
You just hav to put a dot infront of the filename. for exampl for the file named test.txt, it would become hodden if u change its anme to .test.txt
Now if u want to see them mostly Ctrl+H should do the trick or get other filemanagers like gentoo, midnight commander, or gnome commander which usually shows all the files of a directory. from the commandline just type ls -alf to view all files in the present working directrory from the terminal. goodluck. tinman. |
to t1nm@n
I did not want to hide a file or folder but a window. In xp every window has handle (let us say xyz) In windows command prompt I do c:\>cmdow.exe xyz /hid The window becomes invisible though running in background To bring it back I do c:\>cmdow.exe xyz /vis Window reappears. to Tinkster I am using ubuntu 8.04 with GNOME. |
In Linux, under X it's usually the window manager who control the window behavior. So, if your WM offers some kind of CLI interface you could use that. Most don't. So you will have to check 3rd party tools which might work or not depending on how close this tool and your WM of choice adhere to the standards.
A couple of these tools are devilspie and wmctrl. You could as well use some WM that can be controlled via the CLI, such as FVWM or Kwin to name a couple of them. The Gnome WM (metacity) doesn't have that capability as far as I am aware. |
Quote:
I know this is not the proper solution, but at least its working. :D |
Quote:
Code:
test -f /foo && echo "foo exists" |
thanks for spotting that.
ok, ignore my last post. |
It seems you are looking for something like wmctrl.
As you seem to be running ubuntu, look here: http://packages.ubuntu.com/karmic/wmctrl EDIT: Oops, just realized i92guboj already mentioned this. Anyway, wmctrl is very simple to use and will work with all ewmh compliant WMs so I think it's a good option. Having said that, have you considered simply using a full featured WM instead of the dumbed down rubbish that ships with gnome? Cheers, Evo2. |
cool. i didnot know that, thamx for the knowledge sumeet.
t1nm@n. |
I read the manpage of wmctrl then ran command
$wmctrl -r 'Title' -b toggle,hidden where I got Title of window from 'wmctrl -l'. So it seems metacity does not support hiding windows. isn't it ? |
All times are GMT -5. The time now is 12:24 AM. |