Expo and Scale mapping to extra mouse buttons.

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bratac

Expo and Scale mapping to extra mouse buttons.

Post by bratac »

Hello all.

I was wondering if and when will Cinnamon start to support mapping different functions, including Expo and Scale, also to extra mouse buttons?

Compiz, for example, supports mapping almost any of its functions both to keyboard and to any mouse button.
Cinnamon, however, seems to be hardcoded to only support keyboard mappings - why ?!?

This is one of the things keeping me in Ubuntu - Compiz is still light-years ahead in configurability.

Aavo
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
herbie643
Level 3
Level 3
Posts: 190
Joined: Tue Oct 19, 2010 9:16 pm

Re: Expo and Scale mapping to extra mouse buttons.

Post by herbie643 »

You may have already figured it out but if you haven't then this should do it.
Install :
xautomation
xbindkeys
xbindkeys-conifg (optional if you don't use my settings)
xdotool

Here is my .xbindkeysrc in my Home directory
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.5
#
# 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:
#"xte 'key Super_L'"
#"xte 'key Menu'"
#b:10 +release
#"xte 'key F9'"
#b:10 +release
#
#"xte 'key Super_L'"
#######################
#Scroll down button
#######################
"xte 'key Super_L'"
b:10 +release
#######################
# Program/Logitech special button
#######################
"xte 'key F12'"
b:13 +release
#######################
# Scroll up button
#######################
"xte 'key Menu'"
b:11 +release
I have the Logitech Dark Field mouse

If you don't have that mouse then
open a terminal
enter xev
you will get a window with a square
position you mouse over the square and click the buttons you want to use for scale & expo
The display will tell you what the button # is
in the text above from my file change what is needed for you mouse.
logout and login
Then go to Settings and Keyboard and click on the shortcuts and click on the shortcuts for Expo/Scale and click the Mouse button you chose.
I hope that I explained it well enough, but I think you'll get the idea and be able to figure it out soon enough.
Locked

Return to “Cinnamon”