Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 10 Dec 2018, 17:50
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Hot key to move cursor to center of screen (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [36 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: Fri 29 Jun 2012, 10:15    Post subject:  

Perhaps..
xdotool.sh.gz
Description 
gz

 Download 
Filename  xdotool.sh.gz 
Filesize  51 Bytes 
Downloaded  214 Time(s) 
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13108
Location: Arizona USA

PostPosted: 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
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: 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..
mouse_finder.sh.gz
Description 
gz

 Download 
Filename  mouse_finder.sh.gz 
Filesize  68 Bytes 
Downloaded  197 Time(s) 
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13108
Location: Arizona USA

PostPosted: 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. Sad

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
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: Sun 01 Jul 2012, 12:11    Post subject:  

Very Happy Found the problem.. Feed xbindkeys-config this line and wrap it up!
Code:
xdotool mousemove --polar 0 0 exec xbindkeys &
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: 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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13108
Location: Arizona USA

PostPosted: 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). Smile 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
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: 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
screenshot.jpg
 Description   
 Filesize   52.95 KB
 Viewed   728 Time(s)

screenshot.jpg

Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: Mon 02 Jul 2012, 05:05    Post subject:  

Flash- oh it's gonna work.. I *proofed* it aboard Racy.
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 1117
Location: UK

PostPosted: 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.
image-1.png
 Description   
 Filesize   24.34 KB
 Viewed   752 Time(s)

image-1.png


_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 1117
Location: UK

PostPosted: 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

Kennels
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13108
Location: Arizona USA

PostPosted: 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. Smile
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7858
Location: World_Hub

PostPosted: Tue 03 Jul 2012, 07:30    Post subject:  

ETP- yes, elegance in simplicity, teamwork ta'boot! Your comments brought a Smile 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [36 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0678s ][ Queries: 12 (0.0178s) ][ GZIP on ]