Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
939 views
how to determine in what viewport (compiz/unity) a window is placed?
I am writing a script that requires determining in what viewport a window is placed. My desktop is 2x2 (4 viewports); it is usually thought as being 4 virtual desktops but on compiz/unity, it is actually a viewport and only one desktop, based on `xdotool get_num_desktops`. Just to ease explaining, s...
I am writing a script that requires determining in what viewport a window is placed. My desktop is 2x2 (4 viewports); it is usually thought as being 4 virtual desktops but on compiz/unity, it is actually a viewport and only one desktop, based on xdotool get_num_desktops. Just to ease explaining, see these viewports (not sure if these would be actually their IDs, though):
0 1  
2 3
Put your window at viewport 2, run xwininfo -all, and click on your window; you will get its ID and see the "upper-left" values are all small, like being at viewport 0, but these are actually relative to viewport 2. Also, you find no info about at what viewport it is. More information you can find with: wmctrl -d that shows precise information about what viewport we are. xdotool get_desktop_viewport will fail to be precise for viewports 2 and 3.
Aquarius Power (4537 rep)
Nov 18, 2014, 09:00 PM • Last activity: Aug 30, 2019, 08:17 PM
1 votes
2 answers
3093 views
Can the screen size of an X11 window be set higher than the monitor's resolution and the view panned around the larger display?
My laptop has screen resolution of 1366x768 but I want to create an X display with a higher resolution and scroll around it. It was possible in Windows where the drivers and the graphics card allowed it. Can the same be done in Linux?
My laptop has screen resolution of 1366x768 but I want to create an X display with a higher resolution and scroll around it. It was possible in Windows where the drivers and the graphics card allowed it. Can the same be done in Linux?
vfclists (7909 rep)
Oct 14, 2018, 09:51 PM • Last activity: Oct 15, 2018, 07:28 AM
1 votes
0 answers
318 views
How to run program from specific viewport (not how to move it there)
Is there a way to **run** a program from a specific viewport (monitor)? All explanations I found, were about **moving** a window after it has been created, which is not what I am trying to do. **Why**: I have two different size monitors, run ubuntu-gnome 16.04 and use stjerm (quake-like drop-down te...
Is there a way to **run** a program from a specific viewport (monitor)? All explanations I found, were about **moving** a window after it has been created, which is not what I am trying to do. **Why**: I have two different size monitors, run ubuntu-gnome 16.04 and use stjerm (quake-like drop-down terminal) as a secondary terminal with a width set to 100%. If stjerm is initialized on the smaller monitor, the "100%" adjust to the bigger monitor just fine. If sjterm is initialized on the larger monitor, it overlaps on the adjacent monitor. When I run stjerm on login, it is started on my primary monitor, which is the bigger one. So I would need to do something like change the focus on the secondary monitor and afterwards start stjerm.
Armin (11 rep)
Dec 10, 2016, 07:34 PM
Showing page 1 of 3 total questions