Xfce Wiki

Sub domains
 

Thunar - Mouse Button Magic

Simulation of Horizontal Scrolling(Trackball)

Its possible to I emulate horizontal scrolling by remapping the scroll direction via xbindkeys:

# ~/.xbindkeysrc
"xdotool click 6"
  b:4
"xdotool click 7"
  b:5
  

Reassign mouse buttons

- use xev in order to see which buttons your mouse has - use xmodmap to map them in a different way:

Create a fresh modmap:

cd 
xmodmap -pke > .Xmodmap

Add mouse button mapping. E.g:

pointer = 1 2 3 4 5 6 7 8 9 10

Now you can change buttons like that:

pointer = 1 8 3 4 5 6 7 2 9 10

Activate new mapping like that:

xmodmap ~/.Xmodmap

Simulate Keyboard buttons

For an X11 session that can be done via “xdotool”. E.g. for the special-key “Back”:

sleep 2;xdotool key 0x1008ff26

The Hex codes of keys can be looked up here: https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gdk/gdkkeysyms.h


Back to Thunar Dev Notes

Back to Thunar main page