This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Konqueror: 4th mouse button to move back a page

Tags: None
(comma "," separated)
molecule-eye
Registered Member
Posts
402
Karma
0
OS
In Firefox and many other browsers, the fourth mouse button is automatically assigned to move back a page. Can Konqueror be configured likewise? I'm using KDE 4.4.2.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Unfortunately there isn't a KDE tool for mouse shortcuts yet (not to be confused with mouse gestures, which can be configures in System Settings -> Input Actions).

However, you can use an application called xbindkeys instead. I wrote a small guide for it some time ago:
http://hanschen.org/2009/10/13/mouse-sh ... xbindkeys/

In the "Emulate key presses" section there's an example to get what you want:
Code: Select all
# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
  b:6

# Forward
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
  b:7

in ~/.xbindkeysrc. (Note that you need to install xautomation to get xte, as explained in the link).


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
molecule-eye
Registered Member
Posts
402
Karma
0
OS
Yikes, just to get a back button. I'll give it a whirl, thanks.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
You can do more powerful things with it as well. ;)

If you don't want the whole guide, here's a short version for your needs:
1. Install xbindkeys and xautomation (should be available in your distro repository)
2. Create a .xbindkeysrc file in you home directory (~/.xbindkeysrc) and add the "code" in my previous post to it
3. Start xbindkeys, e.g. press Alt+F2 -> type 'xbindkeys' without '' -> Run xbindkeys
4. (Optionally) Add xbindkeys to autostart in System Settings -> Advanced -> Autostart

Done!


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
molecule-eye
Registered Member
Posts
402
Karma
0
OS
Thanks for that!


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]