24

I installed imwheel correctly with sudo apt-get install imwheel. Afterwards I did insert this:

".*"
None,       Up,     Up,     10
None,       Down,   Down,   10

in my ~/.imwheelrc file. The scrolling works perfectly now. However the back / forth navigation buttons from my mouse(Logitecg G700) don't work anymore.

If I kill the process with killall imwheel, the buttons work.

Do you have any suggestions / ideas how to fix this? I'd like to use imwheel.

Niklas
  • 594
  • 2
  • 7
  • 18

2 Answers2

20

You can restrict imwheel to only affect the scroll wheel with the -b option. See man imwheel for more information. Hence, run it with

imwheel -b 45

Some versions of imwheel (e.g. on Ubuntu 14.04) require a different syntax. If the output of imwheel --version is imwheel 1.0.0pre12 by -=<Long Island Man>=- <jcatki@jcatki.no-ip.org>, then use the following syntax:

imwheel -b "4 5"
jmiserez
  • 4,964
Sparhawk
  • 6,929
  • 1
    -b, --buttons button-spec The button-spec must be surrounded by quotes. Each button number must be separated by a space. – Waldemar Wosiński Dec 13 '14 at 19:07
  • @WaldemarWosiński Is that from the man page? My version doesn't have that text, and this command works perfectly fine. I'm running 1.0.0pre12, which was released 10 years ago. – Sparhawk Dec 13 '14 at 20:54
  • Copied from ubuntu man page. Tested. – Waldemar Wosiński Dec 13 '14 at 23:02
  • @WaldemarWosiński What is the output of imwheel --version? – Sparhawk Dec 13 '14 at 23:30
  • imwheel 1.0.0pre12 by -==- jcatki@jcatki.no-ip.org IMHO this is better, becouse what if your mouse has many buttons with id more than 9 ;) – Waldemar Wosiński Dec 14 '14 at 08:44
  • @WaldemarWosiński Good point, although in my man, it specifically says it only supports up to id 9. This is the relevant section of my man page. It even has examples without the quotes and spaces. It's very odd that they differ. Actually, the version of mine has the same number but is slightly different imwheel 1.0.0pre12 by -=<Long Island Man>=- <jcatki@jonatkins.org>. I'm not sure if that's relevant. – Sparhawk Dec 14 '14 at 09:22
  • 3
    So the actual command is imwheel -b "4 5" for the lazy. – Rotsiser Mho Sep 10 '15 at 19:01
  • 2
    Actually, imwheel version imwheel 1.0.0pre12 requires to be -b "45" – Anwar Aug 31 '20 at 14:10
6

I noticed everytime --kill or --buttons or -c is launched, there is a competing instance already running.

Try single line --kill and --buttons:

sudo imwheel --kill --buttons "4 5"

or

sudo imwheel -k -b "4 5"