Is there an X11 utility to scale a window? - Desktop Customization & Workflow
My main monitor is an Qnix QX2710 imported from Korea. It has a nice 1440p resolution and size, but did not come with decent EDID. As such, it only has a single RandR mode out of the box. It was only by pure luck I stumbled upon a mode line that over clocked the screen to 96Hz.

The problem this causes is that if I want to play a game in full screen, I have to run it in a 2560x1440 resolution. This isn't a problem in most cases, but I don't have the most powerful GPU. So if I want to play in a lower resolution, I have to play in windowed mode — or have the game in the upper left of the screen with black borders on the right and bottom. Similarly, some games cannot be played in something larger than an arbitrary resolution (often 1080p).

(I'm actually guessing a bit here. I only ever used just window managers, so I don't know if this issue can be fixed in some DE.)

So: is there some X11 utility that can scale a window up to a greater resolution, and thus remove the pesky black bars?



As a hacky workaround, I could probably use xrandr(1)'s --scale option, but the less I have to mess with my monitors' alignments, the better.
| web| git |
(21-08-2017, 09:41 PM)Tmplt Wrote: So: is there some X11 utility that can scale a window up to a greater resolution, and thus remove the pesky black bars?
You can make the window bigger but if the application "drawing" on it isn't aware of the size change then it's going to keep "drawing" at the same size. If you make the window bigger you'll still have those "black/empty" colors around it.

Some window managers respect the ICCCM default size of the window, be it minimum size of maximum size, etc.. Others don't.

Maybe a compositor "magnifying/zooking" tool exists. I'll try to look for one.
EDIT: Here are some
https://packages.debian.org/sid/x11/xzoom
http://magnifier.sourceforge.net/
https://www.kde.org/applications/utilities/kmag/
Compiz has a nice way to zoom in.
You can probably do this with weston, the reference wayland compositor:

https://www.reddit.com/r/linux/comments/...d/cjr7z0r/
http://www.chaosreigns.com/wayland/weston/ (search for "zoom")

You can also decrease your resolution and scale down the font of all text windows, and decrease browsers DPI

layout.css.devPixelsPerPx - in firefox's about:config

$ chromium --force-device-scale-factor=0.6 - for chromium, chrome, iridium...




Members  |  Stats  |  Night Mode  |  Help