compton icon indicating copy to clipboard operation
compton copied to clipboard

Desktop Zoom

Open hpk2987 opened this issue 11 years ago • 34 comments
trafficstars

Im not totally sure if this is a feature provided by the composite manager but considering that compiz,kwin,etc.. are able to zoom an area of the screen, i wanted to know if such feature could be implemented in compton.

hpk2987 avatar Apr 05 '14 20:04 hpk2987

Such feature could be implemented in compton, though I'm not interested in it. There are some standalone magnifiers around (e.g. kmag, gnome-mag) and I don't think reinventing the wheel is necessary. kmag works pretty well with compton right now, as far as I would see.

richardgv avatar Apr 06 '14 00:04 richardgv

kmag is nowhere near as good/usable as compiz ezoom. Kmag is a standalone window while compiz actually magnifies the whole screen and follows the mouse, take a look at https://www.youtube.com/watch?v=jJ_Oee_l7uI&t=0m36s to see how ezoom works, it's far, far better than kmag.

Azelphur avatar Dec 15 '14 01:12 Azelphur

I'd be interested in this feature as well

proycon avatar Dec 23 '14 19:12 proycon

@Azelphur:

By the way, KMag has a follow mouse mode ("Settings" menu -> "Follow mouse mode"), although it does not work in the way Compiz's does. I found KMag pretty convenient already in presentation, though.

richardgv avatar Jan 10 '15 04:01 richardgv

I also wish for full-screen zoom/pan which I came to appreciate years ago using a hardware implementation in the graphics card

I find it primarily useful to simply toggle between 100% and 200% when I need per-pixel accuracy (and when showing something to friends with poor eyes)

xrandr can do something similar, but it changes the mode and most displays interpolate at sub-native resolution (subverting the intent for pixel accuracy by blurring their boundaries)

dicktyr avatar Feb 20 '15 20:02 dicktyr

As a visually impaired person (legaly blind) it is highly important that a compositing manager implement "full screen zoom" functionality ala Compiz Fusion's ezoom plugin. Desktop apps such as kmag or gnome-mag are not sufficient (in my experience). I presently use (and have done so for >~10 years) used a combination of CRUX + Xorg + Compilz Fusion (very old version / pre-Cannonical take-over) and XFCE.

prologic avatar Aug 30 '15 06:08 prologic

Very much in favour of this. Would you accept a pull request?

ivan-krukov avatar Nov 19 '15 08:11 ivan-krukov

If someone has the necessary experience and expertise to implement this (I don't) the minimum requirements IHMO are:

  • Full Desktop Zoom capabilities (not windowed, etc)
  • Zoom levels controlled by (for example) SUPER + SCROLL IN/OUT (Trackpad/Scrollwheel)
  • Panning continuously with the mouse pointer.

One should see and experience OS X's builtin Accessibility -> Zoom (Zoom Options -> Continuously with pointer

This is probably the most basic set of requirements. Once you have this nailed myself and other visually impaired persons could seek to use alternative desktop experiences using Compton and hopefully other window managers.

In a world where I am forced to maintain my own compiz fusion ports that are ancient versions because Canonical/Ubuntu took over the project and ruined it such that whatever Ubuntu's version is is utterly broken.

prologic avatar Nov 19 '15 16:11 prologic

@ivan-krukov if you do do this, if possible please make zoom per-output (eg if I zoom in one one monitor, I don't zoom in on others, same behaviour as compiz fusion)

I'm not visually impaired but I always found this compiz feature incredibly useful. Surprised there aren't more people after this feature honestly.

Azelphur avatar Nov 19 '15 22:11 Azelphur

I agree with @Azelphur on this one;. I've always wanted the ability to use desktop zoom on one screen while it's a normal 1x on the other so that when trying to show someone something they don't have to follow my crazy panning and zooming in/out! :)

prologic avatar Nov 20 '15 00:11 prologic

Those are all great requirements. It seems that implementing this would take a fair amount of work, though.

ivan-krukov avatar Nov 20 '15 00:11 ivan-krukov

@ivan-krukov You would be my hero haha :)

prologic avatar Nov 20 '15 01:11 prologic

I need it for presentations. It's really lacking.

alxlion avatar Nov 20 '15 14:11 alxlion

I have looked into a compositor-agnostic solution, e.g. xrandr - which would allow this to work with or without a compositor. While possible solutions exist, they are not very usable. @richardgv You mention that 'such feature could be implemented in compton'. What would be a place to start?

ivan-krukov avatar Nov 22 '15 00:11 ivan-krukov

It would be nice to have a feature where you can write a rule for a window and apply certain level of zoom to it. I want to make legacy games on hidpi look even more pixelated than they are now :)

Something like

scale=2
scale-rule=[ same type of rules as everywhere else in compton ]

roman-holovin avatar Dec 06 '15 19:12 roman-holovin

+1 (I will never leave osx unless I can zoom like osx)

  • How else can I safely operate my machinery which is 3m away from me whilst I am in bed?!

No ugly effects or shit all around, just zoom in and out - like this: https://youtu.be/hawAAdiZ0hE?t=11s

ghost avatar Feb 23 '16 15:02 ghost

I was taking a very close look at compton today but the deal breaker was no desktop zoom. I have terrible vision so desktop zoom is a 'must'. I really hope compton gets this addition.

techmouse avatar Jul 19 '16 13:07 techmouse

This will be implemented someday? Compton is better xfwm in various ways, but zoom is very very very VERY useful and I miss it.

ryukinix avatar Jul 26 '16 05:07 ryukinix

I dunno what that last comment was about; but Full Desktop Zoom as in what OS X and Compiz Fusion's eZoom provide is vital to any vision impaired person using Linux on the Desktop/Laptop.

As a vision impaired person myself; I now find myself in a position where I can no longer sustain and use Linux on the Desktop/Laptop anymore for lack of good accessibility support in terms of providing full desktop zoom. I also have abandoned Linux on the Desktop/Laptop because I could not figure out a way to get the same crisp/sharp font rendering you get on OS X with Retina displays.

I'm afraid that until Linux catches up with Retina-like technology (however this actually works) and we get back maintained and supported full desktop zoom (Cannonical killed Compilz :/) users with vision impairment such as myself can no longer reasonable use Linux as their primary Desktop/Laptop.

prologic avatar Jul 26 '16 06:07 prologic

@prologic Just FYI, KDE's Kwin (which can be used on any desktop environment) has the desktop zoom feature from Compiz, and looks pretty good on high DPI displays too, as many of it's UI elements scale. If you match the DPI in the font settings to the DPI of your screen, it looks really good (fonts suddenly become readable and look really good!)

ViktorNova avatar Jul 26 '16 22:07 ViktorNova

@prologic I think abandoning Linux all together is a step too far in the opposite direction. Linux is still very powerful and personally it very much suits all my needs and gives me the power and control I want over my system. It would take a lot for any OS to tear me away from Linux. But that's subjective.

@ViktorNova It sure does. It looks great too. But Kwin doesn't support zooming in/out with the mouse wheel and using keystrokes just feels unnatural IMO. But it's a fine suggestion and alternative for anybody who can overlook zooming in/out with the keyboard only.

In any case, one of Compton's big selling points was it's vsync support, seeing how it's one of the few window managers that do support it. But because Compton doesn't have desktop zoom, I'll be sticking with XFWM4 and just have to deal with no vsync for the time being. Hopefully either Compton will get desktop zoom or XFWM4 will get vsync.

techmouse avatar Jul 26 '16 22:07 techmouse

Not having the same ability to zoom in/out with scroll wheel or touchpad gestures would be a bit of a PITA :) But thanks for the Kwin tip. To be fair I'm not abandoning LInux; just finding it very hard to use as a Desktop OS compared to the accessibility that OS X provides out of the box which for me I would have to spend a lot of effort getting the same functionality with Compiz (old versions).

James Mills / prologic

E: [email protected] W: prologic.shortcircuit.net.au

On Tue, Jul 26, 2016 at 3:22 PM, Mouse [email protected] wrote:

@prologic https://github.com/prologic I think abandoning Linux all together is a step too far in the opposite direction. Linux is still very powerful and personally it very much suits all my needs and gives me the power and control I want over my system. It would take a lot for any OS to tear me away from Linux. But that's subjective.

@ViktorNova https://github.com/ViktorNova It sure does. It looks great too. But Kwin doesn't support zooming in/out with the mouse wheel and using keystrokes just feels unnatural IMO. But it's a fine suggestion and alternative for anybody who can overlook zooming in/out with the keyboard only.

In any case, one of Compton's big selling points was it's vsync support, seeing how it's one of the few window managers that do support it. But because Compton doesn't have desktop zoom, I'll be sticking with XFWM4 and just have to deal with no vsync for the time being. Hopefully either Compton will get desktop zoom or XFWM4 will get vsync.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chjj/compton/issues/188#issuecomment-235424513, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOv-k1Eqm5Zje4Jf6d51UH8nEGnLwgfks5qZojCgaJpZM4Bv_QS .

prologic avatar Jul 26 '16 22:07 prologic

Any news?

ryukinix avatar Nov 27 '16 22:11 ryukinix

I would love this feature too. Are there any news, or some way how to get full desktop zoom in i3wm?

nrsimha avatar Jan 16 '17 03:01 nrsimha

+1. I also prefer the OSX way, i.e. with no UI at all, just Alt+scrollup/down.

However maybe compton doesn't even need to deal with keys and the mouse. It could be done in the same way as dbus-examples/inverter.sh.

dbus-examples/inverter.sh when receiving a certain message by dbus will invert for the colors for a certain window.

E.g. you launch compton with compton -b --backend glx --dbus and a simple bash script can then send a message through dbus to invert the screen.

So for the Zoom feature, compton could also use glx and dbus and simply react to a few parameters, such as (I just made those up):

  1. mouse_absX
  2. mouse_absY
  3. zoom_factor

Programmers can then figure out how to do the binding for their different WM. I think it's hard already, but this way compton doesn't have to deal with the keys and the mouse.

grepsuzette avatar Feb 08 '17 09:02 grepsuzette

I too would be very interested in such a feature. As many have already said, visually impaired linux users are stuck with a semi-working or outdated version of compiz or rather simplistic magnifier apps like kmag. Nothing near the macos accessibility features!

Is there really no one from the compton developer community interested in at least taking a look at it and figuring out what would be needed to implement such a feature?

ohm314 avatar May 06 '17 16:05 ohm314

As a web developer I help myself with xzoom, but i'ts a pain to use. Full Desktop Zoom would be greatly appreciated!

syslino avatar Jul 31 '17 05:07 syslino

To anybody who might want to work on this feature: please add a toggle switch to disable anti-aliasing or bilinear filtering or whatever it's called, while you're at it. As a web developer, my main use case for zoom is to inspect pixel-level rendering and the "filtered" zoom that most compositors provide is a nuisance. I'm stuck with xzoom for this reason.

By the way, Apple got it right and added this very option in the accessibility pane.

tobia avatar Aug 30 '17 16:08 tobia

disable anti-aliasing

yes thank you

that is of course essential to zoom the pixel map as it is without introducing extra distortion (anti-aliasing)

dicktyr avatar Aug 30 '17 18:08 dicktyr

It's honestly pretty bad that people that are visually impaired but want to use FoSS/non-bloat stuff can't do this (in a nice and simple, macOS like manner which is general enough of an experience to fit with basically every DE/WM). Is there maybe something like a patreon/bounty thing we can setup for this? I myself don't really have the skillset or knowledge to implement this atm

rien333 avatar Jul 22 '18 20:07 rien333

Full desktop zoom via the mouse wheel would be highly useful when teaching!

This video shows how the desktop zooming looks in xfwm4.

joelostblom avatar Sep 12 '18 17:09 joelostblom

I agree. Until you implement this feature, I am gonna be stuck with Compiz. I have tried around 20 zoom apps in Linux. And Compiz is the only useful one where you can mousewheel scroll and customize to your liking. The rest of em are pretty much useless. Some of them allow desktop zooming, but you have to preset zoom sizes. This doesn't work for people who need to zoom in / out depending on text size, day/night etc.

blackoutworm avatar Apr 27 '19 00:04 blackoutworm

Still nothing?

Bielecki avatar Jul 10 '19 13:07 Bielecki

fwiw, there is a more active fork here: https://github.com/yshui/compton

frnsys avatar Jul 10 '19 13:07 frnsys