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 Sat 25 Oct 2014, 10:41
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 Posts_count   Goto page: Previous 1, 2, 3
Author Message
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11121
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: 552
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: 11121
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: 3972
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: 552
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:   Sort by:   
Page 3 of 3 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0561s ][ Queries: 13 (0.0045s) ][ GZIP on ]