You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Scroll without a scroll wheel by moving a pointer (mouse, trackball, touchpad, trackpoint). Enables scrolling with devices without a scroll wheel (e.g. Logitech Marble Trackball). General ergnonomics utility. Command line tool.
4
4
5
-
Activation:
5
+
Activation (see -s option):
6
6
- hold keyboard key (combo)
7
7
- toggle with keyboard key (combo) on/off
8
8
@@ -20,3 +20,8 @@ Activation:
20
20
21
21
### Fedora / Redhat:
22
22
`sudo dnf install libXi libXtst libXfixes`
23
+
24
+
# Help
25
+
- exec with option -h to see the options
26
+
- -s option is the shortcut key code. You need to set this, for it to work, although it starts without it.
27
+
- to find the (xorg) key code to be used with the -s option: start with -d, then press a button. The debug output will print the key code that can be used with -s option.
staticconstintSCROLL_TRIGGER_SPEED_LIMIT_MS=30; // don't allow scrolling in too quick succession, it can't handle them so fast, so they queue up an play back, also causing more CPU load
printf("-c [d:int]\tconversion distance (speed): pointer travel distance (in pixels) required to trigger a scroll. Determines how frequently scrolling occurs. A lower number means more frequent scroll events.\n");
168
168
printf("-r\t\treleases trigger button before first scroll. Example: if ctrl is the trigger key, a scroll would often resize/scale in a program. Releasing it prevents that.\n");
169
169
printf("-t\t\ttoggle mode: scrolling-mode stays enabled until the combo is pressed again\n");
@@ -449,6 +449,9 @@ int main(int argc, char **argv)
449
449
if (cfg.show_debug_output)
450
450
print_cfg(&cfg);
451
451
452
+
if (cfg.trigger_key_code==UNSPECIFIED_KEY_CODE)
453
+
logg(LOG_WARN, "warning: no trigger key code was specified\n");
0 commit comments