How do I set up extra mouse buttons?

Sorry I posted too quickly without reading the last line. :sweat_smile:

I understand. As I said “How to uninstall it properly? I did it already from the package manager. Thanks!”

sudo pacman -R xbindkeys

If it has still left files, delete them manually:

sudo rm /path/to/file.name

Have you read the arch wiki page?

https://wiki.archlinux.org/index.php/Mouse_buttons

I am no expert (so maybe someone will suggest better) but I would rename those files to allow an installation to occur. (This is just a failsafe.) If that is successful then manually delete them. Personally I would use the gui but files can also be deleted using rm /path/to/file from the command line.

Edit: @xircon was faster. :running_man:

sudo rm /usr/bin/xbindkeys 
sudo rm /usr/bin/xbindkeys_show 
sudo rm /usr/share/man/man1/xbindkeys.1.gz 
sudo rm /usr/share/man/man1/xbindkeys_show.1.gz

No need to rename - they are all related to xbindkeys… Copy and paste the above to a terminal.

1 Like

I reinstalled as you guys suggested. Now I get this:

[tio@tio-pc ~]$ xbindkeys -n

*** Warning ***
Please verify that there is not another program running
which captures one of the keys captured by xbindkeys.
It seems that there is a conflict, and xbindkeys can’t
grab all the keys defined in its configuration file.

Could it conflict with this " xautomation"?

I will read the Arch article if we can’t find a solution here. Thank you

Reboot - try again.

Perhaps xbindkeys is still in memory?

ps aux  | grep -i  xbindkeys

Will tell you (read the output carefully - it will also contain a line with this command).

[tio@tio-pc ~]$ ps aux | grep -i xbindkeys
tio 3906 0.0 0.0 88312 9180 ? Sl 05:03 0:00 xbindkeys -n
tio 4958 0.0 0.0 88312 4776 ? S 05:04 0:00 xbindkeys
tio 5433 0.0 0.0 10712 2500 pts/1 S+ 05:04 0:00 grep --colour=auto -i xbindkeys
[tio@tio-pc ~]$

Maybe I should read the Arch article and follow the steps there. If I can’t figure out I’ll get back here :slight_smile:

killall xbindkeys

Run twice. It is in memory.

[tio@tio-pc ~]$ killall xbindkeys
xbindkeys: no process found
[tio@tio-pc ~]$ ps aux | grep -i xbindkeys
tio 10311 0.0 0.0 10712 2420 pts/1 S+ 05:13 0:00 grep --colour=auto -i xbindkeys
[tio@tio-pc ~]$

Was that the second? The first worked :wink:

Ok I think I figure it out with the help of Arch wiki :smiley: - so I had to install xvkbd and use a different syntax like:

“xvkbd -text “[F2]””
m:0x0 + b:16

Now the question is how do I replace F2 with “next” and “previous” commands? :slight_smile:

Or better said keystrokes for “back” and “forward”. It works but I don’t know the syntax > in this case. This is what I used before:

"xte ‘keydown Alt_L’ ‘key Left’ ‘keyup Alt_L’ "
b:16
"xte ‘keydown Alt_L’ ‘key Right’ ‘keyup Alt_L’ "
b:17

"xvkbd  -text "\{+Super_L}m\{-Super_L}""
 b:10

So…

"xvkbd  -text "\{+Alt_L}\{Left}\{-Alt_L}""
 b:10

But I am guessing the {Left} :smiley:

:Edit:

"xdotool key "alt+Left""
b:10

Might do it (install xdotool)

2 Likes

Jeez it worked for like a second then my keyboard and mouse went berzerk. Pretty much everything was messed up :)) I could not type properly or do anything properly.

"xdotool key "alt+Left""

This one did it. Thank you so so so much! :slight_smile:

EDIT: Therefore, you should install xbindkeys + xdotool. Then create .xbindkeysrc to your home folder and add the syntax “xdotool key “alt+Left”” and replace the keys with whatever you desire. “pkill -f xbindkeys” and “xbindkeys” will restart xbindkeys.

Thank you all for the help. You are amazing people! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by