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 Thu 24 Jul 2014, 04:25
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 3 of 3 [35 Posts]   Goto page: Previous 1, 2, 3
Author Message
Flash
Official Dog Handler


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

PostPosted: Tue 03 Jul 2012, 23:58    Post subject:  

Okay, okay. Since xbindkeys didn't work in Racy I tried adding to /root/.jwm/jwmrc-personal as you suggested, but I didn't want to have to use multiple keys so I stuck with F10 for this test:
Code:
<!-- 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>

This worked after I saved to the DVD and rebooted!

I'd use the *otherwise wasted* Windows key or one of the so-called multimedia keys but how do I put it in there? Using xbindkeys I get this code for one of the multimedia keys: NoSymbol | m:0x0 + c:178. Can I enter that somehow in jwmrc-personal in place of F10?
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 527
Location: UK

PostPosted: Wed 04 Jul 2012, 02:56    Post subject: Hot key to move cursor to center of screen  

Flash,
1. Backup your savefile just in case of unintended consequences.
2. Open a urxvt terminal, type xev & press enter
3. Briefly press & release the desired windows key.
4. Note the keycode that appears in the two events (press&release)
- In my case this produced 115 - YMMV -
5. Using the keycode that you obtained, if it differs from 115, remove your
code:
ie
Code:
<Key key="F10">exec:xdotool mousemove --polar 0 0</key>


and substitute

Code:
<Key keycode="115">exec:xdotool mousemove --polar 0 0</Key>


6. Restart X

_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


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

PostPosted: Wed 04 Jul 2012, 10:34    Post subject:  

That worked! Thanks, ETP and Semme.

Since I run from a multisession DVD I don't need to bother with backing up my Save file before I experiment. It is already backed up, on the DVD. If I do something that breaks my Puppy, I don't save that session and when I reboot, Puppy reverts back to the way it was. Smile

Xev reported keycode 115 for my Windows or "super" key, so the entry I added to my jwmrc-personal looks exactly like ETP's, above.

Now I have two keys I can press to center my cursor. Laughing The F10 key works through xbindkeys and xdotool, and the Windows key works more directly, through /root/.jwm/jwmrc-personal and xdotool.

So if you're using JWM, you can just install xdotool and make an entry in jwmrc-personal. If you're using a different window manager from JWM, then you may have to also install and use xbindkeys.
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 3535
Location: World_Hub

PostPosted: Wed 04 Jul 2012, 10:47    Post subject:  

Great! Now get rid of that Wink *mostly* bit..
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 527
Location: UK

PostPosted: Wed 04 Jul 2012, 10:50    Post subject:  

Flash,
Très bien. Take a pew, break out the virtual pizza and chill out to the following video with your personal theme tune!

http://megaswf.com/serve/1201787

_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [35 Posts]   Goto page: Previous 1, 2, 3
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.0710s ][ Queries: 13 (0.0156s) ][ GZIP on ]