Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-03-29 02:28:11

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

a tool for precise scrolling

a tool i would find very useful is one that can perform scrolling up or down by just one pixel.  as a key association or a panel item with up and down buttons would both be usable.

somewhat often i want to compare content of different screens, either by switching user or switching workspaces.  but, too often in these cases, the common content will not line up to the same pixel.

up and down are the most needed but left and right can have their uses.  an example key binding could be Ctrl+Shift+an_arrow_key_for_direction.

Offline

#2 2019-03-29 12:23:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: a tool for precise scrolling

Here is a script using xdotool:

#!/bin/bash

case $1 in
	up) 	xdotool mousemove_relative -- 0 -1 ;;
	down) 	xdotool mousemove_relative 0 1 ;;
	left) 	xdotool mousemove_relative -- -1 0 ;;
	right) 	xdotool mousemove_relative 1 0 ;;
	*) 	echo "usage: $0 [up|down|left|right]" ;;
esac

Call it using a parameter that is one of "up", "down", "left", or "right".

Assign it to launchers or keyboard shortcuts.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-03-29 17:53:07

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

Re: a tool for precise scrolling

what is it going to move?  where the mouse pointer is?  i want to scroll the selected object.

Offline

#4 2019-03-29 18:51:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: a tool for precise scrolling

Skaperen wrote:

a tool i would find very useful is one that can perform scrolling up or down by just one pixel.

I assumed you meant the mouse. Can you give an example of a scrolled object scrolling by one pixel? Are you talking about a specific program?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-03-30 11:55:35

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: a tool for precise scrolling

I think Skaperen means precise drag and drop.

Offline

#6 2019-03-30 12:49:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: a tool for precise scrolling

It would work in the same manner. Grab the object then use the script (or keyboard shortcuts) to move the mouse incrementally.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2019-03-30 23:28:16

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

Re: a tool for precise scrolling

i mean scrolling the current page of whatever.  like what the mouse roller does.

Offline

#8 2019-03-31 06:29:23

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

Re: a tool for precise scrolling

even in terminal the mouse scroll jumps one than one line unless the window is quite small.

Offline

Board footer

Powered by FluxBB