You are not logged in.

#1 2018-06-08 18:16:26

etnull
Member
From: Hackerland
Registered: 2018-04-26
Posts: 33

[SOLVED] Magnifying glass

Often I like to watch Videos from my couch, and I'm looking for conviniet magnifier glass on a slim openbox wm desktop. The only thing I found that is working and not from AUR is kmag (it doesn't requere a lot of deps, so it's fine) But I couldn't understand the logic of this app, I want to zoom a screen under cursor, without additional window... otherwise I will just zoom that zoom and content of a zoom.... who came up with this wonderful 'inception' idea? I want something easy like default zoom in kwin.. but without full kde suite. any suggestions?

Last edited by etnull (2018-06-08 20:03:02)

Offline

#2 2018-06-08 18:27:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,885

Re: [SOLVED] Magnifying glass

Why don't you just play the videos fullscreen?
Also eg. mpv has a dedicated zoom feature (but of course the video will partially be out of screen if you zoom it in)

Offline

#3 2018-06-08 18:41:32

etnull
Member
From: Hackerland
Registered: 2018-04-26
Posts: 33

Re: [SOLVED] Magnifying glass

seth, I do play videos in full screen, but I watch coding videos and people often don't enlarge their consoles or IDE. My monitor size doesn't allow me to see clearly from a distance. I think mpv will be a lot of additional work, you would need to copy each link etc.. If that zoom app will follow the cursor it doesn't matter what going to be cutten of, as I can point my cursor to the area I want with wireless mouse.

Last edited by etnull (2018-06-08 18:42:27)

Offline

#4 2018-06-08 18:51:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,885

Re: [SOLVED] Magnifying glass

Is "coding videos" code for porn or do you literally watch people entering text into an editor??
Anyway, things like the zoom effect in KDE rely on a compositor. You could use the randr scaling feature, which will just scale up your entire desktop (bit like running it at a lower resolution) and combine that with the panning feature:

xrandr --output VGA-0 --panning 1920x1200 --scale 0.5x0.5

This should get you a 1920x1200 screen, 2x zoomed - not "around" the mouse cursor, but you can push the cursor to the edges to control the viewport.

Edit:

xrandr --output VGA-0 --panning 0x0 --scale 1x1

to undo the change and of course replace "VGA-0" w/ your actual output name.

Last edited by seth (2018-06-08 18:52:46)

Offline

#5 2018-06-08 20:02:38

etnull
Member
From: Hackerland
Registered: 2018-04-26
Posts: 33

Re: [SOLVED] Magnifying glass

Yes I watch how people code, it's my dirty secret I guess. Thanks for the trick it is what I want more or less. But I have two screens, so my final commands are:
enlarging

xrandr --output HDMI-0 --panning 1920x1200 --scale 0.5x0.5

restoring

xrandr --output DVI-I-1 --auto --panning 2560x1440 --scale 1x1 && xrandr --output HDMI-0 --auto --panning 1920x1200 --scale 1x1 && xrandr --output HDMI-0 --pos 2560x240

Last edited by etnull (2019-01-24 17:51:58)

Offline

Board footer

Powered by FluxBB