Questions tagged [window]

The window is a fundamental concept in graphical user interfaces.

Filter by
Sorted by
Tagged with
13
votes
3answers
8k views

Is there a way to simulate a “Close” event on various windows using the terminal?

I answered on Ask Ubuntu Quit all instances of gnome-terminal via a command but as you all can read gnome-terminal didn't seems to have a SIGcall I could use to simulate this "Close" event. So this ...
30
votes
6answers
34k views

How to set window size and location of an application on screen via command line?

I want Firefox window to be opened in a specific size, and location on screen using a shell command, for example: firefox myfile.html size 800x600 location bottom-left Is there such a command?
4
votes
2answers
414 views

How to measure that how much time is the active window opened?

How can we measure that in a given period, what window was on the top? (active one) I already tried based on "wmctrl", but I can't show the currently active window.. in the second example I tried ...
6
votes
1answer
4k views

Ranger - open_with without suspending

When I open a file into ranger with a GUI application not listed in the rifle.conf file (i.e. using the open_with command), the ranger terminal window gets "suspended" until I close the GUI app. For ...
1
vote
1answer
4k views

Resize a specific window to a specific size and screen location from within a script

I've seen similar questions but not identical ones, how do I resize a specific window to a specific size and location on the screen from within a script? I've seen the use of Resize and Printf but ...
24
votes
5answers
19k views

Is it possible to retrieve the active window process/title in Gnome?

I need a solution for getting the current active (focused) window information on a Gnome 2 desktop. I'm mostly interested in the process running that window and window title. Is it possible? ...
4
votes
1answer
2k views

What process created this window with no PID associated? [duplicate]

Possible Duplicate: What process created this X11 window? I need to kill a process that spawned a window which seems to have no PID associated with it. At least that is what xdotool says: ~$ ...
13
votes
4answers
11k views

Is there a keyboard shortcut to make a window occupy half the screen?

Is there a keyboard shortcut I can use to make a window occupy the left or right half of the screen? I'm using a modified version of Ubuntu. On Mac I just use Divvy but I'm not sure if there is a ...
11
votes
2answers
3k views

Wait for a X window to appear/disappear (in a sane way)

Inside a shell script, I need to wait for a window that has a string on its title to appear, do some action, and then wait for it to disappear, and do some other action. Until yesterday, I had this ...
5
votes
1answer
5k views

Switch to an application using its PID

I'm using Gnome. In vim, I want to map a key to switch to Firefox. I know that I should use bash commands (a command in form of !...). Is it possible to switch to an application using its PID?
3
votes
1answer
3k views

Stretch window over two monitors with “gap” in between

I have a dual monitor setup with Compiz as window manager on Ubuntu 14.04. I can resize a window to stretch over both windows. However, while the physical display panels are a few centimeters apart, ...
3
votes
1answer
2k views

send keystroke to process

I'd like to run some applications in fullscreen. Even though they don't have an explicit such option, it is possible with the metacity Alt-F11 command. So, I thought I could create such an input like ...
6
votes
1answer
4k views

What is the max number of x-clients?

I am developing an x-server implementation, and I want to make it as similar to the current one as possible. I read through the documentation, but I couldn't find anything specific. In particular, I'...
3
votes
1answer
167 views

Wait for forked process to open a window

I'm trying to make a script like the following: st -n dropdown & pid=$(xdotool search --classname dropdown) st is a terminal emulator I'm trying to run some commands on the created st using ...
3
votes
2answers
6k views

How to refresh a window by terminal? Or how to simulate `F5`?

I would like a way to refresh a specific window from the terminal command-line. Probably I will need a command to find the id or the name of the window and a command to refresh it. It looks like ...
2
votes
1answer
2k views

How to make progress dialog for Bash in XFCE?

Previously, in KDE, this was simple -- I called KDialog with number of steps, I got DCOP handle in return, then I called dcop with that reference and step, and progress dialog got updated. However, ...
2
votes
2answers
771 views

Get the full window dimensions (including decorations) in Unity

I have used the answer to How do I find the window dimensions and position accurately including decorations? in my bash scripts, and had good success with my Silentcast application on Xfce, but now ...
2
votes
2answers
769 views

Maximize Window without Window Manager?

If I want to run GUI software on my Linux machine, I can do it without a window manager, but I can not discover a way to maximize the window. Is there a reliable way to maximize a window in an x ...
3
votes
1answer
606 views

Spawn 6 windows in 2 rows in the i3 window manager

How can I bind a key that spawns (via the exec command) six terminal windows? I managed to figure out how to do this, but all windows were on one row. What I would like to have is that 3 on top and 3 ...
3
votes
3answers
2k views

How to resize application windows in an arbitrary direction (not vertical and not horizontal)

One of the most annoying things for me in using Linux, is resizing an open window, such as a terminal window. I'd like to resize the terminal window (make it larger or smaller). But when I put the ...
3
votes
1answer
1k views

Super key as shortcut - Openbox [duplicate]

I want to create the shortcuts: Super: Run dmenu Super← Left arrow: Move current window to the left I have both of them working, however when I depress Super it opens dmenu right away. When ...
1
vote
1answer
308 views

WM_CLASS vs WM_INSTANCE?

When I run xprop I get a class string that has two values, one of them i3 calls an instance, the other a class, for example on chromium-browser the xprop utility will return something like this, ...
1
vote
1answer
155 views

How to disable Ristretto from starting maximized whenever I double-click a picture to view?

Ristretto is the default picture viewer in XFCE. It starts the normal way when I start it manually from the menu but whenever it gets started as I double-click on a picture file to view it it starts ...
0
votes
1answer
42 views

netbeans has preview tile or window — how to remove that preview?

How I get the "preview" window on the far right hand side to minimize or disappear? so that the class extends fully to the right hand side.