Results 1 to 11 of 11

Thread: Changing 'Home' Key?

  1. #1
    Registered vlmarshall's Avatar
    Join Date
    Mar 2006
    Location
    usa
    Posts
    474
    Downloads
    0
    Uploads
    0

    Unhappy Changing 'Home' Key?

    After accidentally hitting the 'Home' key, and losing my setup once again, I must ask; Is there a way to change the 'Home' function to a different key, or a multiple-kepress? Something like Ctrl-Home would be great... or anything that's not so close to the END key.


  2. #2
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    If you are serious about this you should ask on the emc maillist or file a bug request on source forge. The developers of AXIS don't really check on here much.


  3. #3
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1,164
    Downloads
    0
    Uploads
    0
    Can you live with the key remapped in a universal kind of way ?
    ie: permanently for all applications ?
    An ugly hack but not hard to do .

    Assigning keys in EMC is surely possible, and would be a more elegant solution.

    Edit/ A quick google suggests you want to alter the file .axisrc to change keyboard bindings. That's assuming you use axis, Maybe it's in the integrators manual ?
    Last edited by cyclestart; 05-28-2009 at 07:27 AM.
    Anyone who says "It only goes together one way" has no imagination.


  4. #4
    Registered vlmarshall's Avatar
    Join Date
    Mar 2006
    Location
    usa
    Posts
    474
    Downloads
    0
    Uploads
    0

    Talking

    Quote Originally Posted by cyclestart View Post
    Can you live with the key remapped in a universal kind of way ?
    ie: permanently for all applications ?
    An ugly hack but not hard to do .
    I've considered making a new, flatter keycap, or adding a second, stiffer spring under the existing Home key.


    Quote Originally Posted by cyclestart View Post
    Assigning keys in EMC is surely possible, and would be a more elegant solution... A quick google suggests you want to alter the file .axisrc to change keyboard bindings. That's assuming you use axis, Maybe it's in the integrators manual ?
    Thanks, I'll try actually READING the directions!
    Last edited by vlmarshall; 05-30-2009 at 11:51 AM.


  • #5
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1,164
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by vlmarshall View Post
    I've considered making a new, flatter keycap, or addind a second, stiffer spring under the existing Home key.
    Hey, my kind of user ! Makes what I'm about to suggest a little less embarrassing.

    In a terminal type the command;
    xev

    As the keys are pressed information will print in the terminal. what you're looking for is the keycode and the name of the key. On my board;
    Windows key -> keycode 116, name Super_R
    Home key -> keycode 97, name Home

    Now close the little applet window xev popped ip and use the command;
    Code:
     nano   .Xmodmap
    in the nano editor (using this particular example);
    Code:
     keycode 97 = Super_R
    keycode 116 = Home
    After a logout the keys should be switched. The .Xmodmap file is a hidden file in your home directory that will be read every startup.

    I can't think of what other function the Windows key is used for, which only makes me more sure it's something critical
    Anyone who says "It only goes together one way" has no imagination.


  • #6
    Registered vlmarshall's Avatar
    Join Date
    Mar 2006
    Location
    usa
    Posts
    474
    Downloads
    0
    Uploads
    0
    Great tip, but I'm hoping for some key COMBINATION for homing...although, I suppose I could remove the Windows keys instead of the Home key, like I've currently done.



    Quote Originally Posted by cyclestart View Post
    Hey, my kind of user ! Makes what I'm about to suggest a little less embarrassing.
    Embarassing? Hey, I pulled off my keys and engraved them with the EMC function on their fronts!



    Filled in with differently-coloured crayons, they show up quite nicely.


  • #7
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1,164
    Downloads
    0
    Uploads
    0
    Impressive
    I'm more of the felt marker and masking tape type,

    Here's something you could try. It seems to work in emc 2.2.8.

    In gedit paste in this text
    Code:
    # Bind cntrl and p to home active axis
    root_window.bind("", commands.home_axis)
    and save the file as .axisrc
    This assumes you don't already have a .axisrc file with some contents.

    Remember I said seems to work. Can anyone confirm this is safe ??

    EDIT/ between the quotation marks in the code above
    <
    Control-p
    >

    without the newlines, just like a single word. This site's has lousy code tags and I'm not sure what combination of backslashes or whatever needs to be used to fool it.
    Last edited by cyclestart; 06-14-2009 at 12:35 AM. Reason: code tags suck on this site
    Anyone who says "It only goes together one way" has no imagination.


  • #8
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1,164
    Downloads
    0
    Uploads
    0
    Good thing this isn't a programming site

    here it is as a text file for clarity
    save link as

    EDIT/ allright
    Code:
    # Bind cntrl and p to home active axis
    root_window.bind("<Control-p>", commands.home_axis)
    Being stubborn is it's own reward/punishment
    Attached Files Attached Files
    Last edited by cyclestart; 06-14-2009 at 09:55 AM. Reason: learned some HTML I'll likely never need again
    Anyone who says "It only goes together one way" has no imagination.


  • #9
    Registered vlmarshall's Avatar
    Join Date
    Mar 2006
    Location
    usa
    Posts
    474
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cyclestart View Post
    Impressive
    ...
    and save the file as .axisrc
    This assumes you don't already have a .axisrc file with some contents.
    Save it as what? Something with the .axisrc extension... where do I save it?
    http://www.youtube.com/user/vlmarshall


  • #10
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1,164
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by vlmarshall View Post
    Save it as what? Something with the .axisrc extension... where do I save it?
    No.
    . [dot] files are hidden files. So paste that text into a text editor and save the file as .axisrc ([dot]axisrc). If your emc configuration files are in /home/username/ directory (and they probably are), save .axisrc in your username directory. Emc should find it.

    Hidden files can be seen in a terminal:
    ls -a
    or, if you have a lot of files
    ls -a | less

    Or by choosing to view hidden files in the gui file browser.

    Sorry for babbling on again and maybe repeating things you already know. I love this linux stuff
    Anyone who says "It only goes together one way" has no imagination.


  • #11
    Registered MarcoBernardini's Avatar
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    16
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by vlmarshall View Post
    Great tip, but I'm hoping for some key COMBINATION for homing...although, I suppose I could remove the Windows keys instead of the Home key, like I've currently done.
    Embarassing? Hey, I pulled off my keys and engraved them with the EMC function on their fronts!
    Filled in with differently-coloured crayons, they show up quite nicely.
    The keyboard remapping suggested by cyclestart works smoothly in Linux... I guess I'm one of the few having things like √ ½ ¾ ⅛ «» and even on the alt-shift combinations of my keyboard.
    Your engraved keys are really wonderful... I suggest you to sell them to gamers too!


  • Similar Threads

    1. changing from a er-25 collet to a r8??
      By parkson in forum Bridgeport and Hardinge Mills
      Replies: 3
      Last Post: 10-10-2010, 06:45 PM
    2. Need Help!- Home again Home again Jiggety Jig. Well Not Just Yet!
      By Mr.Chips in forum DIY CNC Router Table Machines
      Replies: 10
      Last Post: 03-18-2008, 09:58 PM
    3. Changing Z moves
      By Davidimurray in forum Post Processors for MC
      Replies: 5
      Last Post: 02-10-2007, 02:59 PM
    4. Changing Jobs
      By DAB_Design in forum CNCzone Club House
      Replies: 4
      Last Post: 07-01-2005, 11:31 AM
    5. Changing CS
      By fastolds in forum GibbsCAM
      Replies: 2
      Last Post: 02-02-2005, 01:31 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.