Code: Select all
xdotool mousemove --polar 0 0 exec xbindkeys &
Code: Select all
xdotool mousemove --polar 0 0 exec xbindkeys &
Code: Select all
<Key mask="CS" key="m">exec:xdotool mousemove --polar 0 0</Key>
<!-- Personally configurable options for JWM: these override default settings and theme settings -->
<JWM>
<!-- Number of virtual desktops BK: syntax change with jwm 500... -->
<Desktops width="3" height="1"/>
<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>400</DoubleClickSpeed>
<!-- Double click delta (in pixels) -->
<DoubleClickDelta>3</DoubleClickDelta>
<!-- The focus model (sloppy or click) -->
<FocusModel>click</FocusModel>
<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">none</SnapMode>
<!-- The move mode (outline or opaque) -->
<MoveMode>outline</MoveMode>
<!-- The resize mode (outline or opaque) -->
<ResizeMode>outline</ResizeMode>
<!-- Key bindings -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>
<Key key="F12">root:3</Key>
<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="F6">minimize</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root:3</Key>
<Key mask="A" key="F2">window</Key>
<Key mask="CS" key="m">exec:xdotool mousemove --polar 0 0</Key>
</JWM>
Code: Select all
<!-- Key bindings -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>
<Key key="F12">root:3</Key>
<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
#<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="F6">minimize</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root:3</Key>
<Key mask="A" key="F2">window</Key>
<Key key="F10">exec:xdotool mousemove --polar 0 0</key>
</JWM>
Code: Select all
<Key key="F10">exec:xdotool mousemove --polar 0 0</key>
Code: Select all
<Key keycode="115">exec:xdotool mousemove --polar 0 0</Key>
To me the question is not how to move the cursor to the center. Flash's real problem is to find the cursor.Flash wrote: I'm forever running my mouse in circles to find the cursor. Maybe it would save time if I could move the cursor to a known location with a function key.
Code: Select all
#!/bin/sh
echo '
<window type-hint="6" skip_taskbar_hint="true" window-position="2">
<pixmap><input file>/usr/local/lib/X11/pixmaps/info.xpm</input></pixmap>
<action signal="leave-notify-event">exit:</action>
</window>' | gtkdialog -s
Code: Select all
<Key keycode="65" mask="A">exec:findmouse</Key>