|
Post by chocmokshake on Oct 4, 2023 21:03:58 GMT
does moksha desktop offer default mouse or keyboard shortcuts for zooming in and out the entire screen ? I can't do without this feature on xfce or kde.
I need to know if it is available, before I can try the bodhi distro.
Thanks : )
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Oct 4, 2023 23:32:49 GMT
Moksha does not offer such a feature (that I'm aware of). I tried magnus, but it just allows one to magnify a small section, which it displays in another window.
Some compositing window managers, such as xfwm and kwin, plus compiz, do offer it as a built in feature, but those can't be used with Moksha. People have been requesting it be added to compton/ picom (which does work with Moksha) for years but no luck yet.... The best I can find is using xrandr to set fixed zoom factors, but I don't see a way to tell it to "zoom in" or "zoom out", so unless you want to write your own wrapper for it, you could just set a whole bunch of shortcuts for various zoom factors, i.e: super+1=xrandr --output hdmi1 --scale .1 # 10x zoom
super+2=xrandr --output hdmi1 --scale .2 super+3=xrandr --output hdmi1 --scale .3 super+4=xrandr --output hdmi1 --scale .4 super+5=xrandr --output hdmi1 --scale .5 # 2x zoom super+6=xrandr --output hdmi1 --scale .6 super+7=xrandr --output hdmi1 --scale .7 super+8=xrandr --output hdmi1 --scale .8 super+9=xrandr --output hdmi1 --scale .9 super+0=xrandr --output hdmi1 --scale 1 # normal
And since Moksha allows keyboard shortcuts for external commands, binding is not a problem.
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Oct 5, 2023 3:31:21 GMT
I thought about it, it wouldn't be super hard to write a wrapper that could handle "zoom in" and "zoom out" shortcuts, if that is better than using 10 different shortcuts. I can think of two ways to do it myself.... so if you decide to go Bodhi and want that, just ask, I pretty sure I could figure that out quite quickly... mainly just have to figure out how to parse xrandr output in order to get the current scale factor, and then have some increment/decrement value (maybe .05 or something) to add/subtract, then set the new value.
xrandr | grep connected | grep -v disconnected | awk '{print $1}' # get display name
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Oct 5, 2023 5:28:42 GMT
I still happened to be reading about this. with xrandr you can also zoom & keep the original resolution, and then pan around a desktop that's larger than your screen. This is different than what I descrbed earlier with --scale, cuz that just basically is like changing resolution. xrandr --output screen-name --mode 1366x768 --panning 1640x922 --scale 1.20058565x1.20208604
|
|
|
Post by thewaiter on Oct 5, 2023 7:39:03 GMT
I wonder if E25 provides this features as it has got emebed native compositor. I need to check out...
S
PS: I tested this feature in XFCE and it is really great. And yes, it is related to compositor. Cute is, you can move the screen with mouse. Unfortunately picom is not able to do any zoom.
|
|
|
Post by chocmokshake on Oct 6, 2023 15:52:04 GMT
I've previously had some success using easystroke gestures to map keyboard shortcuts to mouse wheel or mouse buttons. but I guess the bottom line is how many shortcut keys would need to be set up in xrandr.
I don't necessarily need a continuous scrolling zoom in and out. It would probably be fine if I had maybe 4 or 5 fixed zoom levels, as long as I can pan around while zoomed in (eg: for reading text) then easily zoom back to full screen ( eg: to watch a movie)
For many years now - I always work at least 3 meters away from my computer screen, because it's also my TV.
Thanks very much for your help.
|
|