Skip to content

Commit

Permalink
Return to classic Hyper, mention ExplorerPatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Diablo-D3 committed Jun 29, 2022
1 parent 30e10a9 commit b440073
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions KeebMangler.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ handle_clh() {
Menu, Tray, ToggleCheck, %menu_clh%
IniWrite, %enable_clh%, %config%, %ini_km%, %ini_clh%

if(enable_clh)
SetCapsLockState AlwaysOff
else
SetCapsLockState Off
if(enable_clh)
SetCapsLockState AlwaysOff
else
SetCapsLockState Off
}

handle_raa() {
Expand Down Expand Up @@ -158,8 +158,8 @@ Xev_Tooltip() {

; Maps
#if enable_clh
*CapsLock::send {Blind}{LCtrl down}{LWin down}
*CapsLock Up::send {Blind}{LCtrl up}{LWin up}
*CapsLock::send {Blind}{LCtrl down}{LAlt down}{LShift down}{LWin down}
*CapsLock Up::send {Blind}{LCtrl up}{LAlt up}{LShift up}{LWin up}
#if

#if enable_mac
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ A simple tool to do the basic keyboard configuration tasks that Windows can't ea
* Map <kbd>Left Command</kbd> to <kbd>Alt</kbd>, <kbd>Left Option</kbd> to <kbd>Win</kbd>, <kbd>Right Command</kbd> to <kbd>Alt</kbd> (or <kbd>AltGr</kbd>), and <kbd>Right Option</kbd> to <kbd>Menu</kbd>, to make Apple keyboards actually conform to the established standard every other OS expects.
* `xev`-like event spy using a tooltip that follows your mouse cursor.

Windows cannot add more modifier keys, but it doesn't mean you can't bind combinations of existing modifiers under a single key press. KeebMangler binds <kbd>Hyper</kbd> as <kbd>Ctrl</kbd><kbd>Win</kbd>, which allows, for example, shadowing of the existing Windows shortcuts for virtual desktops.
Windows cannot add more modifier keys, but it doesn't mean you can't bind combinations of existing modifiers under a single key press. KeebMangler binds <kbd>Hyper</kbd> as <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>Shift</kbd><kbd>Win</kbd>, which is guaranteed to not collide with any existing shortcuts.

Configuration is persistently stored in `%APPDATA%/keebmangler.ini`.

This tool has been made possible by [AutoHotKey](https://www.autohotkey.com/).

**How to defeat the <kbd>Office</kbd> key**: Explorer automatically binds <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>Shift</kbd><kbd>Win</kbd> (aka what most people bind to <kbd>Hyper</kbd>, including KeebMangler) to <kbd>Office</kbd>. [ExplorerPatcher](https://github.com/valinet/ExplorerPatcher) now implements the ability to block Explorer from binding it, leaving it free to be used by you.

Behold the [official Office key docs](https://support.microsoft.com/en-us/topic/using-the-office-key-df8665d3-761b-4a16-84b8-2cfb830e6aff), and notice the lack of justification on why Microsoft thought this was a good idea, or why they think we needed dedicated LinkedIn or Yammer keys.

0 comments on commit b440073

Please sign in to comment.