xbindkeys
should be able to do this. Install it with:
sudo apt-get install xbindkeys
Now run:
xbindkeys -k
and press the think vantage button. Your output should look something like:
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"NoCommand"
m:0x0 + c:159
NoSymbol
Now create a file named .xbindkeysrc
in your home directory:
touch ~/.xindkeysrc
open the file in your favourite editor and add:
"bash /path/to/your/script.sh"
m:0x0 + c:159
Replacing m:0x0 + c:159
with whatever you got from your output earlier.
If you want a terminal window to open replace the first line with:
"gnome-terminal -e './path/to/script.sh"
Log out/back in or reboot for the changes to take effect.
(re)sources: ThinkWiki: ThinkPad Button