Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
Use && after the command, it will make the window disappear, to bring it back in front type any command in the > prompt, e.g., ls
I know this is not the proper solution, but at least its working.
Use && after the command, it will make the window disappear, to bring it back in front type any command in the > prompt, e.g., ls
I don't think you two are speaking the same language. '&&' is the logical 'AND' operator in most shells. It has nothing to do with windows or such kind of structures. All it does is to continue evaluating if the result of the left member of the sentence is evaluated to 'true' ('0' in shell speech). It's used commonly to concatenate commands in a way that the second one will only be run if the first one succeeds:
Code:
test -f /foo && echo "foo exists"
If you meant '&' (a single ampersand) then all it does is to run a command in the background. 'background' in shell language means that the command will not lock your shell, so while it's running you will still be able to use the shell interactively. That might be a good or a bad thing depending on the command you are running. But it has nothing at all to do with how the window will be presented to you at all. It definitely won't hide the window which is what the OP wants to do (and anyway, for what it seems, he wants to control already existing windows).
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?
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 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.