Matthew_Bird
July 20th, 2014, 12:27 PM
Hey all!
I have a mouse with buttons on the side. For various reasons, I'd find it really useful if I could use one of the buttons to switch to the previous workspace (that way, when working on workspace 1 and 2 I could just click the mouse button to rapidly move - I tend to use the mouse more than the keyboard so the current need to switch to the keyboard and use three fingers to switch is less efficient).
I think I've found a way to map my mouse button to a key-input using xdotool.
Problem. I can't find a command to switch to the previous workspace. Does one exist, or is it simple to make one?
Thanks so much in advance!
Matt
For anyone who's interested, I'm following Krytarik's advice for the Mouse-button key binding (http://ubuntuforums.org/showthread.php?t=1694352)
1.) install "xdotool" through Synaptic
2.) go to "System -> Preferences -> CompizConfig Settings Manager -> Commands"
- at the first tab, "Commands", enter the respective xdotool command:
xdotool key shift+a
at the tab "Button Bindings" assign the desired mouse button to the newly created command
I have a mouse with buttons on the side. For various reasons, I'd find it really useful if I could use one of the buttons to switch to the previous workspace (that way, when working on workspace 1 and 2 I could just click the mouse button to rapidly move - I tend to use the mouse more than the keyboard so the current need to switch to the keyboard and use three fingers to switch is less efficient).
I think I've found a way to map my mouse button to a key-input using xdotool.
Problem. I can't find a command to switch to the previous workspace. Does one exist, or is it simple to make one?
Thanks so much in advance!
Matt
For anyone who's interested, I'm following Krytarik's advice for the Mouse-button key binding (http://ubuntuforums.org/showthread.php?t=1694352)
1.) install "xdotool" through Synaptic
2.) go to "System -> Preferences -> CompizConfig Settings Manager -> Commands"
- at the first tab, "Commands", enter the respective xdotool command:
xdotool key shift+a
at the tab "Button Bindings" assign the desired mouse button to the newly created command