I have Razer Deathadder Elite gaming mouse. I wanted to remap its two side buttons so that I would be able to switch between workspaces. I have seen this: Remapping mouse buttons to keyboard keys, but could not figure out how to map the buttons to key combinations (i.e. Ctrl+Alt+Up and Ctrl+Alt+Down).
Update
Looked at this: How to bind mouse buttons to keys?
Tried adding the code below to .xbindkeysrc
:
# Ctrl+Alt+Down press
"xte 'keydown Control_L' 'key Alt_L' 'key Down'"
b:8
Ctrl+Alt+Down release
"xte 'keyup Control_L' 'keyup Alt_L' 'keyup Down'"
b:8 + Release
Ctrl+Alt+Up press
"xte 'keydown Control_L' 'key Alt_L' 'key Up'"
b:9
Ctrl+Alt+Up release
"xte 'keyup Control_L' 'keyup Alt_L' 'keyup Up'"
b:9 + Release
Still cannot get it to work.
"xte 'keydown Control_L' 'key Alt_L' 'key Down'"
, still can't get it to work. – Trafalgar Law Sep 10 '21 at 08:45xte
is installed or not. Restart servicekillall xbindkeys ; xbindkeys
– Sadaharu Wakisaka Sep 10 '21 at 10:28