On 13/01/17 08:52P, Eric Pruitt wrote:
> On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:
> > I'm using st and dwm at the same time, and today I discovered a little 
> > problem
> > when using the default config of both programs. st uses Alt-Shift-C to copy 
> > text
> > into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> > whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you 
> > use
> > Super_L, vulgo "the Windows key".)
> 
> I use Caps Lock as my window manager key since I don't have any other
> use for it:
> 
>     xmodmap -e "remove mod4 = Hyper_L" \
>             -e "remove Lock = Caps_Lock" \
>             -e "keysym Caps_Lock = Hyper_L" \
>             -e "add mod3 = Hyper_L"
> 
> I know a lot of Vimmers like to map caps to escape, but I use "qq"
> instead of escape.

Mapping CapsLock to Ctrl is also good, since Vi/Vim accepts Ctrl-C and Ctrl-[ 
as an
escape sequence (the former with minor exceptions). Vim allows remapping <esc> 
to
<c-c> to deal with the exceptions (imap <c-c> <esc>).

> 
> Eric
> 
> 

Reply via email to