Dark Launch

Ubuntu Nautilus Back and Forth Mouse Click Buttons

Navigate back and forward in Nautilus using the mouse back/forward buttons:

Run in terminal:
Code
sudo apt-get install xvkbd xbindkeys x11-utils


Find the mouse keys:
Code
xev | grep ', button'

Click in the window to see the mouse codes. Example:
Code
state 0x10, button 8, same_screen YES
    state 0x10, button 8, same_screen YES
    state 0x10, button 9, same_screen YES
    state 0x10, button 9, same_screen YES

8 for left thumb click, 9 for right thumb click.

Edit the key bindings. Terminal:
Code
gedit ~/.xbindkeysrc

Code
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:8
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:9


Run xbindkeys in terminal:
Code
xbindkeys


Now clicking the back and forth mouse keys will navigate back and forth in Nautilus.

Comments


  1. Cheers, works like a charm