Registered Member
|
I have a Microsoft Laser Mouse 5000 and a Microsoft Natural Ergonomic Keyboard 4000 v 1.0.
It is sort of easy to set up the special keys on my keyboard to do what I want them to do, however setting my mouse buttons seems to require some tricks I have no found yet. On my keyboard I have 'Back' and 'Forward' keys. On my mouse I have 'Back' and 'Forward' buttons. I would love it if when I set the 'Back' and 'Forward' keys on my keyboard for some action in a program, my 'Back' and 'Forward' buttons get the same exact action. For example in Kate I set the 'Back' key to go, well, 'back' and set the 'Forward' key to, you know. ;) Now, I want my 'Forward' and 'Back' buttons on my mouse to do the exact same actions in Kate. I also reset Ctrl+PageUp to go forward, and Ctrl+PageDown to go back. I have mentally assigned the 'Forward' key/button and Ctrl+PageUp to always go forward; and the 'Back' key/button and Ctrl+PageDown to always go back. Every program with tabs (except browers), I will assign those keys to the appropriate direction. Is there a way to get those mouse buttons to work like their keyboard alternatives? Also, I can not seem to assign my keyboard's 'Start' key to open the Application Launcher Menu. I would love to be able to do it. Debian 7; KDE 4.8.4 |
Administrator
|
I suggest you take a look at this blog post, which should allow you to map your mouse buttons appropriately - http://blog.hanschen.org/2009/10/13/mou ... xbindkeys/
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
bcooksley ... thank you very much. Is there a place I can go to add this functionality to a wishlist for future versions of KDE? In most K applications we have the ability to configure shortcuts (shortcut and alternative), it would be nice to see a column for mouse shortcuts or a third colum for a third possible shortcut for an action. Have a nice day!
|
Administrator
|
Mouse shortcuts are a long standing feature request i'm afraid. KDE is limited from providing them due to limitations in Qt I believe. I'm not sure how Qt 5 changes things in this regard however.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
If I knew what QT 1 and QT 5 are, I would understand. Sorry I don't.
|
Administrator
|
KDE is built upon a set of libraries known as Qt. KDE is currently based upon Qt 4, with the next generation Plasma Desktop and Applications to be based on Qt 5.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
This is still solved, though I can not for the life of me, understand xbindkeys setup. I will have to get used to the loss of mouse function.
|
Administrator
|
Is there any particular part of the mouse button setup with xbindkeys you haven't been able to get working?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Where others can easily understand those instructions, I can not. It is as if the writer is speaking another language which I am not conversant in at the moment. The instructions do not come with enough screen shots to show me exactly what I should be looking for and is not KDE specific as far as I can tell. The instructions completely lost me.
|
Manager
|
you could try using btnx (it's 2 packages: btnx & btnx-config), not a KDE app but should work fine
this is the best doc I could find (there's probably others) and it is translated from the French http://translate.google.com/translate?s ... r.org/btnx |
Administrator
|
Edit: Just read your first post again and I think I might understand some of the confusion. The shortcuts in e.g. Kate only belong to Kate, while xbindkeys defines global shortcuts. In theory you should be able to bind one mouse button to your "Forward" button on the keyboard, but unfortunately I don't know what that key would be called in xte (it's not listed when running xte -h). If the Forward key just sends e.g. Ctrl + Page Down, then you should be able to use the second snippet I posted in the comments of the blog post. What in particular do you find unclear? If you have any specific questions, it would make it easier to clarify things. 1. As you say it's not KDE specific (there's a note about it in the beginning of the linked article). 2. Pretty much everything in that tutorial is done in a text editor, which is why there aren't many screenshots. Why take a screenshot of some text when the text can be copy-pasted directly to the post? If you're uncomfortable configuring things by changing a text file, have you tried using the graphical tool "xbindkeys-config" mentioned in the post? 3. When configuring shortcuts, you basically need two things: - A trigger. When the application (in this case xbindkeys) finds that you have pressed the trigger (could be a key on the keyboard, a key combination, a mouse button, etc.), it will execute some action. - An action. This is what will happen when you have pressed the trigger. The actions in xbindkeys are things that you would normally run from the command line (terminal). For example, if you want to launch System Settings, typing "System Settings" doesn't work (it isn't a valid command) - the corresponding command is "systemsettings". Now, what if we want to map a mouse button to the "Back" action? There is (as far as I know) no terminal command that will make the current application go back, because it varies by application. However, most applications use the keyboard shortcut "Alt+Left Arrow" for the "Back" action, so what if we can trick the computer (really the X server) that we've pressed Alt+Left Arrow when we really pressed a mouse button? This can be done by combining xbindkeys and a tool called xte. xte is a command line program that will send keyboard and mouse events to the system, so if you run e.g. "xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'", the computer thinks that we've pressed Alt+Left Arrow on our keyboard. Now we just need to bind this action to a trigger (e.g. a mouse button) using xbindkeys. Have you tried to copy the snippet (edit: try the second snippet) in my last comment to ~/.xbindkeysrc (open ".xbindkeysrc" in your home directory in any text editor, e.g. Kate. If you haven't created this file, you'll have to create it first. Also note that the file is hidden by default) and restart xbindkeys? Edit:
See http://blog.hanschen.org/2012/10/17/ope ... super-key/ Hopefully that guide is clearer.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
I uploaded a screenshot of my current 'Back' and 'Forward' configuration for keyboard keys.
|
Administrator
|
The second section of XBindKeys configuration which is posted in the blog comment Hans linked to ( http://blog.hanschen.org/2009/10/13/mou ... mment-3068 ) should work for you as the shortcuts in KDE are set the same.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
WIth the help of a friend on IRC, we finally got my mouse buttons working as I desired with the following.
Now on to the Start button. :) |
Registered Member
|
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]