| Author |
Message |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Fri 29 Jun 2012, 10:15 Post subject:
|
|
Perhaps..
| Description |
|

Download |
| Filename |
xdotool.sh.gz |
| Filesize |
51 Bytes |
| Downloaded |
66 Time(s) |
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Sat 30 Jun 2012, 08:09 Post subject:
|
|
Flash- still nogo? Forget the xdotool script. I think Stu's keybinding belongs in your jwmrc-personal, pending syntax..
Somewhere's around:
| Code: | | <Key mask="A" key="F10">exec:xdotool mousemove --polar 0 0</Key> |
Again- refire X..
Last edited by Semme on Sat 30 Jun 2012, 15:53; edited 1 time in total
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Sat 30 Jun 2012, 11:57 Post subject:
|
|
Yes, the xdotool script had no effect. I'll try more tomorrow. Thanks for your help.
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Sat 30 Jun 2012, 15:10 Post subject:
|
|
Hey Flash, in JWM- F10 centers for me every time. Since you seem to be having some trouble make'n it stick, drop my script (make executable) into /usr/local/bin, then adjust xbindkeys-config to point towards mouse_finder.sh in the *action* box..
PS- For the moment, forego the jwmrc key binding..
| Description |
|

Download |
| Filename |
mouse_finder.sh.gz |
| Filesize |
68 Bytes |
| Downloaded |
59 Time(s) |
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Sun 01 Jul 2012, 00:17 Post subject:
|
|
In Racy Puppy 5.2.1.90, JWM, I installed xdotool, xbindkeys, xbindkeys-config, put your mouse_finder.sh in /usr/local/bin and made it executable. Then I started xbindkeys-config, chose F10 for the key, put /usr/local/bin/mouse_finder.sh in the action window and saved it.
When I pressed F10, the cursor went to the upper left corner of the screen. As before, it only did it twice before it quit working.
I think I'll try another version of Puppy. I have several old (not too old, though) multisession DVDs lying around, if I can only find one.
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Sun 01 Jul 2012, 12:11 Post subject:
|
|
Found the problem.. Feed xbindkeys-config this line and wrap it up!
| Code: | | xdotool mousemove --polar 0 0 exec xbindkeys & |
|
|
Back to top
|
|
 |
Jasper

Joined: 25 Apr 2010 Posts: 870 Location: England
|
Posted: Sun 01 Jul 2012, 13:29 Post subject:
|
|
Hi Flash,
I have never used Racy, but if, as seems likely, an executable file can be dragged to and dropped on the desktop and then right-clicked to Edit and set and test a shortcut of your choice; just make the sole line of the file "xdotool mousemove --polar 0 0" and make it executable.
You could Edit out the file name {and perhaps substitute the period/full stop} and even use the "invisible" icon if you really want little or nothing to show on your desktop.
My regards
Alternatively, isn't there a bigger cursor or one with a trail?
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Sun 01 Jul 2012, 23:32 Post subject:
|
|
Jasper, a bigger cursor would be nice. The selection is pretty limited and the largest one I've found is not much bigger than the default. It helps, but not enough for me.
EDIT: I take that back. The Whitelarge cursor seems pretty good. Oddly, SeaMonkey still shows the small default cursor. I haven't rebooted yet. Maybe that's why.
As per your suggestion, I created a file xdotool mousemove --polar 0 0 in /root, made it executable and dragged it onto the desktop. The cursor moves to the center of the screen when I click it, but I don't know how to tie it to the F10 key except by using xbindkeys.
Semme, your solution works in multisession Slacko 5.2 (14 Oct 11). Now I have to boot the multisession DVD of Racy that I've been using until this morning and see if it works there.
|
|
Back to top
|
|
 |
Jasper

Joined: 25 Apr 2010 Posts: 870 Location: England
|
Posted: Mon 02 Jul 2012, 03:58 Post subject:
|
|
Hi Flash,
Certainly in Slacko (hopefully in Racy):
1. right-click on your desktop icon
2. left-click on Edit item
3. left-click on (click to set)
4. Press F10 (or your chosen shortcut combination)
5. left-click Locked (to obviate accidental deletion)
6. left-click OK if it works and you are happy
My regards
| Description |
|
| Filesize |
52.95 KB |
| Viewed |
412 Time(s) |

|
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Mon 02 Jul 2012, 05:05 Post subject:
|
|
Flash- oh it's gonna work.. I *proofed* it aboard Racy.
|
|
Back to top
|
|
 |
ETP

Joined: 19 Oct 2010 Posts: 310 Location: UK
|
Posted: Mon 02 Jul 2012, 05:36 Post subject:
Hot key to move cursor to center of screen |
|
Flash,
I am not certain that just linking to F10 is a wise idea as F10 may well be used by a application that you have in focus. A key combination would probably be better and does not require an icon on the desktop.
First copy your executable file to /usr/local/bin and then add the line shown below to your jwmrc-personal substituting the name of your file for “hunt”.
After restarting X (CTRL+SHIFT+m) will run your file.
| Description |
|
| Filesize |
24.34 KB |
| Viewed |
389 Time(s) |

|
_________________ Regards ETP
Currently running Slacko 5.3.3 k-3.1.10
(demo with audio--play flash full screen & press F11)
http://megaswf.com/s/2484946 1080p version Oct 2012
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Mon 02 Jul 2012, 14:04 Post subject:
|
|
This line alone'll work.. no need for any file drag'n..
| Code: | | <Key mask="CS" key="m">exec:xdotool mousemove --polar 0 0</Key> |
|
|
Back to top
|
|
 |
ETP

Joined: 19 Oct 2010 Posts: 310 Location: UK
|
Posted: Mon 02 Jul 2012, 14:49 Post subject:
Hot key to move cursor to center of screen |
|
Semme,
Very well done - the simplest solution is always the best!
This thread is a classic example of ultimately satisfying puppian teamwork.
The virtual pizzas are on Flash!
_________________ Regards ETP
Currently running Slacko 5.3.3 k-3.1.10
(demo with audio--play flash full screen & press F11)
http://megaswf.com/s/2484946 1080p version Oct 2012
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Tue 03 Jul 2012, 00:07 Post subject:
|
|
Jasper, I went through the right-click-on-icon GUI to tie the F10 key to the icon in Racy but it didn't work. Even though clicking on the desktop icon still centers the cursor in the screen, pressing the F10 key has no effect. Also, I saved the xbindkeys setting to the Racy multisession DVD but when I rebooted, F10 wouldn't work. It's still there in the xbindkeys_config window.
However, saving the xbindkeys setting to the Slacko multisession DVD did work. When I boot from the Slacko multisession DVD, pressing the F10 key centers the cursor.
So I'll just mark this thread "mostly solved" and switch to Slacko. Thanks, everyone who helped.
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2047 Location: World_Hub
|
Posted: Tue 03 Jul 2012, 07:30 Post subject:
|
|
ETP- yes, elegance in simplicity, teamwork ta'boot! Your comments brought a smile to my face..
As for you Flash, I'm guessing you didn't stick with the *jwmrc-personal* line cause you couldn't decide where to place it. Please, some satisfaction.. As an example I've posted the contents of the file I just mentioned so you can see where it goes- cause it works! I also agree F10's not necessarily your best choice.
Go back'n load the below line- the combo is >> ctrl+shift+m
For the sake of purpose, try it. You can always pull it afterwards..
FYI- this works *without* the xbindkeys stuff!
| Quote: | <!-- 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> |
|
|
Back to top
|
|
 |
|