5

I recently started using GlazeWM which is a tiling window manager for Windows. Even though the guide said not to, I have set my modifier key as the Win key as I have saved Alt key for shortcuts related to applications instead of windows.

Using Win key for this resulted in many problems such as conflicting shortcuts (Win+R is usually for running Windows RUN but with glaze it's for resizing windows). I was able to fix 90% of these problems by disabling the windows shortcuts as mentioned in this

But still, one problem remains. Which is, when I switch workspaces with Win + workspace #, the Windows Start menu pops up from nowhere, this doesn't happen with other shortcuts I have configured, i.e. move a window to a workspace Win + Shift + workspace #. This only happens when I try to switch workspaces.

I have tried disabling the Windows key completely (but reserving the other shortcuts) using AutoHotKeys, SharpKeys and even by editing the registry like mentioned in here, here and here. Nothing worked so far.

My goal is to be able to switch workspaces with Win+1, and Win+2 without the start menu popping up.

ChanganAuto
  • 1
  • 4
  • 18
  • 19

5 Answers5

4

MenuMaskKey says

The following example disables the ability for the left Win to activate the Start Menu, while still allowing its use as a modifier:

~LWin::Send {Blind}{vkE8}
Relax
  • 3,785
3

I was able to get this to work with the following AutoHotKey script:

~LWin::Send {Blind}{vkE8}
#1::Send {Blind}{LWin Down}1{LWin Up}

Here's what each command does:

  1. ~LWin::Send {Blind}{vkE8} disables the start menu popping up when the Win key is pressed alone

  2. {Blind} disables the visual effects of the shortcut

  3. {LWin Down} sends the Windows key pressing event

  4. 1 sends the number 1

  5. {LWin Up} sends the Windows key releasing event

2

I have found a workaround for this. Using Windows PowerToys' Keyboard Manager, I've remapped Win to some useless key, I used Zoom. Then, in my GlazeWM config, I simply use Zoom as the modifier key.

0

your answer does not work for me! Start menu display every other switching!

So I used Windows PowerToys Keyboard Manager (thanks to Rasmus's answer) to remap LWin to Alt; everything is fine now.

Also, I need the Win key, so remap right alt to the win key for emergency use cases :))

sounds stupid, but works fine!

Chalist
  • 217
0

Here's the answer:

#Requires AutoHotkey v2.0
#SingleInstance Force

LWin:: { Send "{LWin Down}" }

LWin Up:: { Send "{Blind}{vkE8}{LWin Up}" }

Enjoy

Ayoes
  • 1