[Feature Request]: support win+#
What feature?
suport win+#
Windows Version
windows11
This configuration does not take effect
hotkeys.myCustomHotkey1 = "Win + D1 = Desktop1" hotkeys.myCustomHotkey2 = "Win + D1 = Desktop2" hotkeys.myCustomHotkey3 = "Win + D1 = Desktop3" hotkeys.myCustomHotkey4 = "Win + D1 = Desktop4" hotkeys.myCustomHotkey5 = "Win + D1 = Desktop5" hotkeys.myCustomHotkey6 = "Win + D1 = Desktop6" hotkeys.myCustomHotkey7 = "Win + D1 = Desktop7" hotkeys.myCustomHotkey8 = "Win + D1 = Desktop8" hotkeys.myCustomHotkey9 = "Win + D1 = Desktop9"
Ok! More correctly, app unhappy when I ask it to use hotkeys- ctrl+#. Report says:
Couldn’t register the hot key. at WindowsVirtualDesktopHelper.WindowsHotKeyAPI.KeyboardHook.RegisterHotKey(ModifierKeys modifier, Keys key) at WindowsVirtualDesktopHelper.App.SetupHotKeys() at WindowsVirtualDesktopHelper.Program.Main(String[] args)
Windows Build: 26100.4652 Windows Version: 24H2 Windows Virtual Desktop Helper Version: 2.0.0.0 Virtual Desktop Implementation: VirtualDesktopWin11_Insider25314
Log: Using config file(s): C:\Users\johnx\AppData\Roaming\WindowsVirtualDesktopHelper\WindowsVirtualDesktopHelper.exe.config Config: feature.showDesktopNameInIconTray: true feature.useHotKeyToJumpToDesktopNumber: true
Looking forward to solution, as I switch desktops often (two of)!
I'm not sure trying to bind win+# is proper as that is already bound to the app in that position on the taskbar.
Would need to be combined with a modifier if possible unless override is what you're looking for.
As I use the win+# combination already that would not be optimal for me.
This is an integrated habit on linux, and habits are not easy to change
You can do so by using AutoHotKey
I chose the Ctrl + Alt + # shortcut and remapped it to Win + #
here is the AutoHotKey v2 script
; Remap Win + (1...9) to Ctrl + Alt + (1...9)
; for github.com/dankrusi/WindowsVirtualDesktopHelper
; to change desktops instead of changing/opening taskbar programs/apps
Loop 9 {
n := A_Index
fDown := KeyDown.Bind(n)
fUp := KeyUp.Bind(n)
Hotkey("#" . n, fDown)
Hotkey("#" . n . " Up", fUp)
}
KeyDown(n, *) {
Send("{Ctrl down}")
Send("{Alt down}")
Send("{" n " down}")
}
KeyUp(n, *) {
Send("{Ctrl up}")
Send("{Alt up}")
Send("{" n " up}")
}
Thank you for your solution. In fact, I have an autohotkey solution in my dotfiles. I was just about to ask if the current software supports win+#
You can do so by using AutoHotKey I chose the
Ctrl + Alt + #shortcut and remapped it toWin + #here is the AutoHotKey v2 script
; Remap Win + (1...9) to Ctrl + Alt + (1...9) ; for github.com/dankrusi/WindowsVirtualDesktopHelper ; to change desktops instead of changing/opening taskbar programs/apps Loop 9 { n := A_Index fDown := KeyDown.Bind(n) fUp := KeyUp.Bind(n) Hotkey("#" . n, fDown) Hotkey("#" . n . " Up", fUp) } KeyDown(n, *) { Send("{Ctrl down}") Send("{Alt down}") Send("{" n " down}") } KeyUp(n, *) { Send("{Ctrl up}") Send("{Alt up}") Send("{" n " up}") }
ah I see,
I tried setting up the win+# in the config file by following the docs, even though the win key is an actual modifier it didn't work for me. I get this error Couldn’t register the hot key. so unless I'm missing something, I guess it's not supported