<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bavouzet Benoît</title>
    <description>The latest articles on DEV Community by Bavouzet Benoît (@bbavouzet).</description>
    <link>https://dev.to/bbavouzet</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F33961%2Fb205ec0b-9bb6-47c8-97c8-280eec3a5386.jpeg</url>
      <title>DEV Community: Bavouzet Benoît</title>
      <link>https://dev.to/bbavouzet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bbavouzet"/>
    <language>en</language>
    <item>
      <title>Ubuntu 20.04 mouse scroll wheel speed</title>
      <dc:creator>Bavouzet Benoît</dc:creator>
      <pubDate>Fri, 01 May 2020 07:44:59 +0000</pubDate>
      <link>https://dev.to/bbavouzet/ubuntu-20-04-mouse-scroll-wheel-speed-536o</link>
      <guid>https://dev.to/bbavouzet/ubuntu-20-04-mouse-scroll-wheel-speed-536o</guid>
      <description>&lt;h1&gt;
  
  
  Ubuntu 20.04 mouse scroll wheel speed
&lt;/h1&gt;




&lt;p&gt;I had a very slow scroll speed until I found &lt;a href="https://io.bikegremlin.com/11541/linux-mouse-scroll-speed/" rel="noopener noreferrer"&gt;that&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install and run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You have to install imwhell with :&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo apt install imwheel
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
2. And download this bash script on [http://www.nicknorton.net](http://www.nicknorton.net/mousewheel.sh) (thanks to him)
You can type, as @victoor say in comments :
&amp;gt;You can just do ` bash &amp;lt;(curl -s http://www.nicknorton.net/mousewheel.sh) ` instead of copy the script manually and changing permissions. :) 
    ```


#!/bin/bash
# Version 0.1 Tuesday, 07 May 2013
# Comments and complaints http://www.nicknorton.net
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.
#
### see if imwheel config exists, if not create it ###
if [ ! -f ~/.imwheelrc ]
then
cat &amp;gt;~/.imwheelrc&amp;lt;&amp;lt;EOF
".*"
None,      Up,   Button4, 1
None,      Down, Button5, 1
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5
EOF
fi
##########################################################
CURRENT_VALUE=$(awk -F 'Button4,' '{print $2}' ~/.imwheelrc)
NEW_VALUE=$(zenity --scale --window-icon=info --ok-label=Apply --title="Wheelies" --text "Mouse wheel speed:" --min-value=1 --max-value=100 --value="$CURRENT_VALUE" --step 1)
if [ "$NEW_VALUE" == "" ];
then exit 0
fi
sed -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value.
sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value.
cat ~/.imwheelrc
imwheel -kill


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Then set up the .sh file to executable with :
```
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;chmod +x mousewheel.sh&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;4. And then run script with :
    ```


./mousewheel.sh


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;And set your mouse wheel speed in the popup by clicking on apply button. (my setting is 7) Re-run script for change.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally add imwheel in ubuntu startup application.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  If you have troubleshooting with previous and next mouse buttons :
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;-b "4 5"&lt;/code&gt; to imwhell :&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

imwheel -b "4 5"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  You can found others details here for setting speed by app :
&lt;/h2&gt;


&lt;div class="ltag__link"&gt;
  &lt;a href="/danvoyce" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F193441%2Fad31bba5-a32d-4a66-b5c7-c09a61115c03.jpg" alt="danvoyce"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="/danvoyce/fixing-mouse-wheel-on-chrome-in-ubuntu-18-04-virtualbox-vmware-143n" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Fixing Mouse Wheel on Chrome in Ubuntu 18.04 Virtualbox / VMWare&lt;/h2&gt;
      &lt;h3&gt;Dan Voyce ・ Jul 23 '19&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#ubuntu&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#scrolling&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#virtualbox&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#mousewheel&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;



&lt;h2&gt;
  
  
  Or in the man page : &lt;code&gt;man imwheel&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Image : &lt;a href="https://www.pexels.com" rel="noopener noreferrer"&gt;Pexels&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sorry, it's my first post.&lt;br&gt;
Have a nice day !&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>mouse</category>
    </item>
  </channel>
</rss>
