CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-22-2009, 08:26 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road
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.
Reply With Quote

  #2   Ban this user!
Old 05-26-2009, 06:44 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

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.
Reply With Quote

  #3   Ban this user!
Old 05-28-2009, 06:01 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

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 ?
__________________
Anyone who says "It only goes together one way" has no imagination.

Last edited by cyclestart; 05-28-2009 at 06:27 AM.
Reply With Quote

  #4   Ban this user!
Old 05-28-2009, 05:01 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road
Talking

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.


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 10:51 AM.
Reply With Quote

  #5   Ban this user!
Old 05-28-2009, 09:37 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

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.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-13-2009, 04:29 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

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.



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.
Reply With Quote

  #7   Ban this user!
Old 06-13-2009, 11:16 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

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.
__________________
Anyone who says "It only goes together one way" has no imagination.

Last edited by cyclestart; 06-13-2009 at 11:35 PM. Reason: code tags suck on this site
Reply With Quote

  #8   Ban this user!
Old 06-13-2009, 11:44 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

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
File Type: txt axisrc.txt‎ (92 Bytes, 56 views)
__________________
Anyone who says "It only goes together one way" has no imagination.

Last edited by cyclestart; 06-14-2009 at 08:55 AM. Reason: learned some HTML I'll likely never need again
Reply With Quote

  #9   Ban this user!
Old 02-07-2010, 08:11 AM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

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
Reply With Quote

  #10   Ban this user!
Old 02-07-2010, 11:48 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

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.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-07-2010, 02:42 PM
MarcoBernardini's Avatar  
Join Date: Dec 2009
Location: Italy
Age: 52
Posts: 16
MarcoBernardini is on a distinguished road

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!
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 05:36 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361