Installation:
– Add keybindings foler to ~/.gconf/desktop/gnome/ (ubuntu 12.04 location for custom shortcut)
– Then logout and login again
Write .sh file for each shortcut binding.
——————————————–
DRC example code:
///////////////////////////////////// .sh file
#!/bin/bash
# store current mouse position
eval $(xdotool getmouselocation –shell)
# select rviz
/home/atlas/sf/cmdtools/material/shortcuts/shortcut/select/select_rviz.sh
# select used as box
/home/atlas/sf/cmdtools/material/shortcuts/shortcut/select/select_point_used_as.sh
# select handle
sleep 0.2;
xdotool type “h”;
xdotool key Return;
# click publish
/home/atlas/sf/cmdtools/material/shortcuts/shortcut/select/select_publish_point.sh
# restore mouse position
xdotool mousemove $X $Y;
——————————————–
xdotool examples:
/////////////////
xdotool click 1;
//////////////////
xdotool key Down;