Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VMware workstation 9 mouse back and forward button
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
coolone
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 278

PostPosted: Sat Oct 13, 2012 2:20 am    Post subject: VMware workstation 9 mouse back and forward button Reply with quote

Does someone who is using VMware workstation9 have the mouse back and forward buttons working problem?
I have imwheel in my box, it works on X environment but not working on VMware workstation.
Could someone please share your solution if you have got this issue sorted?

Thanks
_________________
No Rolex on my wrist Or platinum on my chest 'Cause I don't need that shit to impress
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Tue Apr 02, 2013 2:34 am    Post subject: Reply with quote

The latest version of vmware-workstation finally gives us a working back & forward mouse button setup.
Need to add these lines to your vmx file

mouse.vusb.enable = "TRUE"
usb.generic.allowHID = TRUE

next emerge xbindkeys

place this in your home file


# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.0
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#

# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events

# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.

#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable

# Examples of commands:

"xbindkeys_show"
control+shift + q

# set directly keycode (here control + f with my keyboard)
"xterm"
c:41 + m:0x4

# specify a mouse button
"xterm"
control + b:2

#"xterm -geom 50x20+20+20"
# Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
# alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a release event starts rxvt
#"rxvt"
# release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
# Control + b:2 + Release

# dolphin go back
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
b:9

# dolphin go forward
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
b:8


##################################
# End of xbindkeys configuration #
##################################


name this file .xbindkeysrc

you will need to run xev in a terminal to see what button numbers are assigned to your side buttons, the above file is from my host computer b:8 and b:9 respectively but on my vm those buttons show up as button 16 and button 17, so long as xev shows a button number when you press your side buttons, this will work.

next go to your system settings and set xbindkeys to autostart, how that works depends on your desktop session (gnome or kde)

good luck
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum