fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.34k stars 214 forks source link

Remap the main Modifier to ` key (left of 1) #232

Open tantoinet opened 4 years ago

tantoinet commented 4 years ago

Is there any way to remap the Modifier key to another key? here, I'm trying to remap the # key to ` as this key is rarely used as easily accessible from the left Win key.

joten commented 4 years ago

I did just a bit of testing...

You may set hotkeys as described in the AutoHotkey documentation under "Modifiers", but in AutoHotkey the backtick (`) is an escape character and other non-ASCII characters may prove to be difficult, too, as you might get "... is not a valid key name".

I found a superuser question, which gave some hints. I tried to set a hotkey for F1 in Config.ini with Config_hotkey=F1 & m::View_setLayout(2), which worked, but blocked the F1 key and Config_hotkey=*F1 up::Send, {Blind}{F1 down}{F1 up} did not work.

Setting the following two lines in Config.ahk did work, though.

F1 & m::View_setLayout(2)
*F1 up::Send, {Blind}{F1 down}{F1 up}