Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Post your tips, tricks and tweaks about SuSE Linux in here. Please do not ask questions here - this is for factual information

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Oct-2005, 10:13
lagu2653
Guest
 
Posts: n/a
Default

First you follow this guide www.linux-gamers.net. Then you install xkindkeys. Then you install mvmouse. Then you put a file called .xbindkeysrc containing the code-snippet below in your home-directory.
Code:
"xvkbd -xsendevent -text "\[Alt_L]\[Left]""
  b:2
"~/./my_double_click.sh && ~/./my_double_click.sh &"
  b:6
You have to check which button is the thum- and wheelbutton. On my mouse it's button No. 2 and 6. Then you create a file called my_double_click.sh and put the following line in it:
Code:
mvmouse +0 +0 1 && mvmouse +0 +0 1 &
It looks as if it will produce 4 clicks but it doesn't. You have to chmod the shell-script to give it execution-rights. my_double_click.sh should also be placed in your home-directory. Then you restart your X server using the ctrl-alt-backspace keys. Log in at the prompt and type $ startx. And that's it!
  #2 (permalink)  
Old 29-Oct-2005, 14:05
thidney
Guest
 
Posts: n/a
Default

Could you please be more specific what does what?
Im using xbindkeys, and it look like that it is able to handle mouse buttons (for example with modifiers) But i did not succeeded with 6th and 7th button. Do i really need mousemove?
Thanks
  #3 (permalink)  
Old 02-Nov-2005, 11:15
lagu2653
Guest
 
Posts: n/a
Default

mvmouse is needed for the doubleclick.
  #4 (permalink)  
Old 02-Nov-2005, 11:44
lagu2653
Guest
 
Posts: n/a
Default

evtest is used to test which events belong to which buttons. When I ran it in June it produced a lot of output but now it didn't produce much output at all.

SuSEBurken:~ # evtest /dev/input/event2
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x46d product 0xc01d version 0x2100
Input device name: "Logitech USB-PS/2 Optical Mouse"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 272 (LeftBtn)
Event code 273 (RightBtn)
Event code 274 (MiddleBtn)
Event code 275 (SideBtn)
Event code 276 (ExtraBtn)
Event code 277 (ForwardBtn)
Event code 278 (BackBtn)
Event code 279 (TaskBtn)
Event type 2 (Relative)
Event code 0 (X)
Event code 1 (Y)
Event code 8 (Wheel)
Testing ... (interrupt to exit)
  #5 (permalink)  
Old 02-Nov-2005, 12:01
lagu2653
Guest
 
Posts: n/a
Default

I'm able to program 7 buttons + roll wheel up or down. The button just above the wheel does not respond. You can use this to test
Code:
"xvkbd -xsendevent -text "\b""
  b:4

"xvkbd -xsendevent -text "\b""
  b:5

"xvkbd -xsendevent -text "\b""
  b:6

"xvkbd -xsendevent -text "\b""
  b:7

"xvkbd -xsendevent -text "\b""
  b:8

"xvkbd -xsendevent -text "\b""
  b:9

"xvkbd -xsendevent -text "\b""
  b:10

"xvkbd -xsendevent -text "\b""
  b:11
  #6 (permalink)  
Old 19-Nov-2005, 09:27
lagu2653
Guest
 
Posts: n/a
Default

If you install new hardware /etc/X11/xorg.conf might be altered. Then you have to change the mouse section back, so it's good to keep a copy of the old working /etc/X11/xorg.conf somewhere else e.g. in your home directory. When I installed a new video card the OS changed
Quote:
Section "InputDevice"
Identifier "Mouse[1]"
Driver "evdev"
Option "Protocol" "evdev"
Option "Device" "/dev/input/event2"
Option "Name" "Logitech MX510"
EndSection[/b]
to
Quote:
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "10"
Option "Device" "/dev/input/mice"
Option "Name" "Logitech USB-PS/2 Optical Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection[/b]
  #7 (permalink)  
Old 16-Dec-2005, 13:26
lagu2653
Guest
 
Posts: n/a
Default

Right now I'm using 3 clicks instead of 4. It works better. No double openings of folders or applications.
Code:
"~/./my_double_click.sh &"
b:6
Code:
mvmouse +0 +0 1 && mvmouse +0 +0 1 && mvmouse +0 +0 1 &
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2