[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: map '-' to '_' and '_' to '-'



On Fri, Nov 12, 2010 at 03:02:00AM -0500, Kamaraju S Kusumanchi wrote:
> While working on my Debian box (which btw is a mix of Lenny and Squeeze), I 
> find that I type the underscore character ('_') more often than the dash 
> character ('-'). It could be file names, variable names while writing code 
> etc.,
> 
> Typing '_' involves holding the shift key while typing '-' does not involve 
> any. I am wondering if there is a way at the OS (or shell) level solution to 
> remap '-', '_' one to another so that typing '_' does not involve holding 
> shift key but typing '-' does.
> 
Use xmodmap and/or a .Xmodmap file in your home directory.  You man need
to use xev to find the keycodes.

-Rob


Reply to: