Reply to topic

Activate back and forward side mouse buttons konqueror

billydv
Registered Member
Posts
13
Karma
0
I had been using imwheel to work this but imwheel is old and I found a better way.

1- Install xautomation and xbindkeys

2- Create this text file and name it .xbindkeysrc, put it in your home directory


# 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 #
##################################


3- Create an autostart entry text file in /home/your_user_name/.kde4/Autostart
Name it xbindkeys.desktop, here is what to insert

[Desktop Entry]
Comment[en_US]=
Comment=
Encoding=UTF-8
Exec=xbindkeys
GenericName[en_US]=
GenericName=
Icon=
MimeType=
Name[en_US]=
Name=
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
X-KDE-autostart-after=kdesktop



Voila, works perfectly in firefox, konqueror and dolphin. This is using an ms explorer mouse but I believe it should be okay with other side button mice. Good Luck
jeroenarioni
Registered Member
Posts
2
Karma
0
OS
Thanks for the tutorial! But, why are these buttons not standard in KDE?
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Additional mouse buttons cannot be used due to a limitation in Qt.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
abilene
Registered Member
Posts
1
Karma
0
OS
Thank you for the in depth info! :)

Ab
bas89
Registered Member
Posts
15
Karma
0
OS
bcooksley wrote:Additional mouse buttons cannot be used due to a limitation in Qt.

Is it planned in future?
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately I don't know at this point in time. It could be though...


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
Someone is working on implementing the necessary underlying Qt bits, but I don't know the current status.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
glad
Registered Member
Posts
11
Karma
0
I don't know what limitation in Qt you are talking about. Have a look at http://doc.qt.nokia.com/4.7/qt.html#MouseButton-enum. I have successfully used Qt::XButton1 and Qt::XButton2 in ktikz. Also in Arora these buttons are used and work.
User avatar poomerang
Registered Member
Posts
65
Karma
0
OS
so it should be now possible to implement those clicks in dolphin and other Qt/KDE apps without any workarounds or what?
jago25_98
Registered Member
Posts
4
Karma
0
My mouse side button works in firefox but I can't bind it to back in Konqueror...

is this still the case?
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you tried the XBindKeys method documented above?


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]

 
Reply to topic

Bookmarks



Who is online

Registered users: abdu, Baidu [Spider], Bing [Bot], Clancularius, Elias_Maluco, Google [Bot], ipwizard, jean-luc-k, koffeinfriedhof, markhm, mickae, Paul, qupufu, raphaelra, Sogou [Bot], ulim, vincechenal, Yahoo [Bot]