LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2017, 06:11 AM   #1
mithrantor
LQ Newbie
 
Registered: May 2017
Location: France
Posts: 6

Rep: Reputation: Disabled
[xbindkeys] Use mouse button as modifier (Shift)


Hello every one,
First I apologize for my english...
I just bought a new mouse and I'm trying to make a button work as Shift key. Actually I want button 8 work like the Shift key.
I want to simulate a Shift press when I press button 8 and Shift release when I release button 8.
I tried to configure xbindkeys like that :
Code:
"xte 'key Shift_L'"
b:8
But when I press button 8 (not release it) it simumlates both Press and Release event for Shift key. I also tried to use xvkbd instead of xte : same result...
Do you have some idea to make the button work exactly as the Shift key ?
Thank you !
 
Old 05-06-2017, 10:41 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,791

Rep: Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153
I think this may help, although I haven't tried it.
http://wiki.archlinux.org/index.php/..._mouse_buttons

The Arch wiki is always trying, even if you don't use Arch.
There's no need to apologise for your English — you should see my French (or perhaps not)!
 
Old 05-06-2017, 11:41 AM   #3
mithrantor
LQ Newbie
 
Registered: May 2017
Location: France
Posts: 6

Original Poster
Rep: Reputation: Disabled
I already consult that link... I also tried to use xvkb to simulate keystrokes but all I can do is use Shift as a modifier with other keys...
Some examples of xbindkeys's config file use this :
Code:
"command"
release + b:8
It allows to specify to launch command only when button 8 is released but I did not find how to simulate the pression of the button. I tried this but it doesn't seem to work :
Code:
"command"
press + b:8
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Map Alt+lmb to one button with xbindkeys rax101 Linux - Software 0 01-11-2013 12:44 PM
[xbindkeys] Mouse button as modifier Vinter Linux - Software 6 09-20-2012 10:24 PM
xbindkeys: Mouse button as modifier (second attempt) Vinter Linux - Software 1 10-17-2011 05:18 AM
Disable "Shift+left mouse button" combination (XFree86). cibonato Linux - General 2 08-17-2006 05:22 PM
middle mouse button is paste.. but what if i dont have a mid mouse button? kublador Linux - Newbie 4 09-02-2003 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration