Sep 8, 2011 at 11:19 PM
Edited Sep 8, 2011 at 11:24 PM
I wrote a huge amount of explanation, then decided to try it and it actually worked... :)
So, in order to use shortcuts that are already used by Windows (like Win + E to open Explorer or Win + D to show the desktop), you have to use left or right-only subscriptions (if you are interested why - I use RegisterHotKey if a general modifier is used
and a low-level keyboard hook if one or more left or right-only modifiers are used - and this LL hook actually executes before Window's mappings). If you are using the Ruby config file for the shortcuts, you would do something like that:
subscribe modifiers.LWin, key.E do
This will quit the foreground application when you press the LEFT windows key + E. The RIGHT one + E will still open Explorer. Note that this sometimes leaves the start menu open (I have no idea why) which might get annoying. If you want to execute the default
action of the hotkey in addition to yours, you can return false from the function.
If you want to use shortcuts that use the Windows Key but are not in use by Windows or any other program - you can, and should (as it is better), use non-left or right-only modifiers. E.g:
subscribe modifiers.Win, key.Y do
For anything else I would use AutoHotkey. Which exactly hotkeys do you want to map and to what? If you want to use Windawesome functionality with the WinKey, use one of the two ways I described. For anything else, use AutoHotkey! :) Be careful when combining
them, though - do not expect that if you have a hotkey in Windawesome and the same hotkey in AutoHotkey that both will work. They might, they might not. Different ones are fine.
Oh, and besides, I personally find the WinKey extremely inconvenient to use - Alt is MUCH better for everything, I think. :) Anyway, does that suit your needs?
Edit: There are a couple of WinKey hotkeys that cannot be changed in this way - most notably Win+L (which locks the machine). Actually, they cannot be changed at all. :)