Copy the code below to this path: ~/.xbindkeysrc
and run this command:
killall xbindkeys && xbindkeys
"wmctrl -s $(( $(xdotool get_desktop) - 1 ))" | |
b:9 | |
"wmctrl -s $(( $(xdotool get_desktop) + 1 ))" | |
b:8 | |
"wmctrl -r :ACTIVE: -t $(( $(xdotool get_desktop) - 1 )) && wmctrl -s $(( $(xdotool get_desktop) - 1 ))" | |
shift + b:9 | |
"wmctrl -r :ACTIVE: -t $(( $(xdotool get_desktop) + 1 )) && wmctrl -s $(( $(xdotool get_desktop) + 1 ))" | |
shift + b:8 |