itgoyo / i3

自个用的i3wm桌面配置
19 stars 4 forks source link

自定义快捷键 #7

Open itgoyo opened 5 years ago

itgoyo commented 5 years ago

https://github.com/xircon/Scripts-dots/blob/master/i3/my-xcape.sh

itgoyo commented 5 years ago

https://www.reddit.com/r/i3wm/comments/9v8scj/swap_windows_and_alt_key_super_l_and_alt_l/

itgoyo commented 5 years ago

In case this helps future searchers trying to swap the windows key with left alt, here's what I did.

I just put these lines in a new file in my home directory, ~/.Xmodmap (uppercase X). My distro, the community provided Manjaro-i3, is already configured to run .Xmodmap on login.

Here are my additions, which swap Escape with Caps Lock and Left Alt with the Windows key:

clear lock
clear mod1
clear mod4
keycode 64 =Super_L
keycode 133 = Alt_L
keycode 66 = Escape NoSymbol Escape 
keycode 9 = Caps_Lock NoSymbol Caps_Lock
add lock = Caps_Lock
add mod1 = Alt_L 
add mod4 = Super_L
itgoyo commented 5 years ago

亲测有效 放到i3启动项里面然后执行 exec xmodmap ~/.Xmodmap