Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Run] Support single key press to open Run (e.g. caplock) #3269

Open
khalido opened this issue May 20, 2020 · 18 comments
Open

[Run] Support single key press to open Run (e.g. caplock) #3269

khalido opened this issue May 20, 2020 · 18 comments
Labels
Help Wanted We encourage anyone to jump in on these and submit a PR. Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window

Comments

@khalido
Copy link

khalido commented May 20, 2020

Launch PowerToys Run by pressing capslock

Make Capslock into a hyper key, ideally to launch PowerToys Run (or other uses as ppl see fit).

Advantages:

  • save time: Alt-Space is two key presses, capslock is one.
  • Capslock is obsolete. ChromeOS has already turned it into a search key so for kids using chromebooks in school it makes for an easier transition.

Note: I used the Keyboard Manager powertoy to remap capslock to another key, but its still not working to launch Run. Also tried remapping CapsLock to Alt-Space (in remap shortcuts) but that didn't work either.

@danbrakeley
Copy link

I also attempted to work around the issue using Keyboard Manager. I remapped CapsLock to F13, but PowerToys Run would not allow me to change the shortcut to just F13. It appears to require a modifier, ie Ctrl+F13.

@jyuwono jyuwono added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label May 20, 2020
@jyuwono
Copy link
Contributor

jyuwono commented May 20, 2020

Related to #3279

@crutkas
Copy link
Member

crutkas commented May 22, 2020

This is being tracked by #2325 which is the larger work item.

@danbrakeley
Copy link

The fix for #2325 did not fix this ticket.

@crutkas crutkas reopened this Jul 1, 2020
@crutkas
Copy link
Member

crutkas commented Jul 1, 2020

Actually looks like we force a key and modifer. you could do caplock + ctrl.

@crutkas crutkas added the Idea-Enhancement New feature or request on an existing product label Jul 1, 2020
@crutkas crutkas changed the title Use CapsLock to launch Powertoys Run Allow for key only without modifier launch for Pt Run (example caplock) Jul 1, 2020
@crutkas crutkas added this to the v1.0 Release milestone Jul 1, 2020
@crutkas crutkas removed this from the 2020 Stability Release milestone Dec 10, 2020
@crutkas crutkas added the Help Wanted We encourage anyone to jump in on these and submit a PR. label Dec 10, 2020
@crutkas
Copy link
Member

crutkas commented Dec 10, 2020

Good idea but not something we are viewing as stability effort for core team. If a community member wants to help out, I think we should have an approved list of keys maybe

@enricogior enricogior changed the title Allow for key only without modifier launch for Pt Run (example caplock) [Run] Support single key press to open Run (e.g. caplock) Jan 9, 2021
@enricogior
Copy link
Contributor

Related to #3957

@Unknown-Guy
Copy link

Upgraded to Win11, there's nothing in start menu I would want to click, so using Win key for Run now looks pretty attractive option to have.

@marklagendijk
Copy link

A terrible workaround is to remap the key you want to use to Alt + Space (the default run key combo).
It works, but the terrible part is that other key combo's with that key won't work.

Example:

  • You can map Win to Alt + Space, and pressing Win pops up the run dialog.
  • Other combo's such as Win + Arrow Key for managing window positions no longer work.

@derac
Copy link

derac commented Mar 20, 2022

I would use this program if I could replace the start menu with it while retaining the ability to use other windows key functions, such as win+left. This must be possible as there are a number of start mneh replacement apps.

@guplem
Copy link

guplem commented Jan 24, 2023

Same for me, I keep "forgetting" that PowerToys Run exists because I after so many years of pressing "Win" to open a windows search I do it completely by instinct.

Adding a key remap with the Keyboard manager "is not a good idea" since then I can't use clipboard history since there is no way of linking the key remap to "on key up" instead of "on key down". So, every time I want to open clipboard history with Win+V i open PowerToys Run...

@carlreinke
Copy link

FWIW, you can currently set a single-key shortcut by editing "%localappdata%\Microsoft\PowerToys\PowerToys Run\settings.json" and restarting PowerToys.

  • For caps lock, you can set "open_powerlauncher":{"win":false,"ctrl":false,"alt":false,"shift":false,"code":20,"key":""}, but everything you type into the search box will be in all caps unless you enable the "Use central keyboard hook" setting.
  • For the Windows key, "open_powerlauncher":{"win":false,"ctrl":false,"alt":false,"shift":false,"code":91,"key":""}, but you must enable the "Use central keyboard hook" setting and all other shortcuts that involve the Windows key will no longer work.

@jantajov
Copy link

jantajov commented Feb 7, 2024

Any update for 2024?

@github-project-automation github-project-automation bot moved this to ⚠️Needs Walkthrough in 3. Help Wanted Mar 22, 2024
@ravindUwU
Copy link

I'm using a little program that uses SharpHook to remap Win to Win+Space (which is my PowerToys Run activation shortcut) until this is resolved 😅.

https://github.com/ravindUwU/dotfiles/blob/aeba39b27dfde83f7da565ce427f2239f7df4ea0/cs/Dotfiles.RemapLWin/Program.cs#L34-L72

@ghosty141
Copy link

The most seemless way to make Win open run and not the startmenu is described in this comment. Also retains windows shortcuts!

@ebastler
Copy link

Any News on the original? I dislike needing 3 tools to do a job, so any AHK/Poweroys Keyboard Manager workaround is - at best - an ugly workaround.

I have a custom mechanical keyboard which I can easily set to send LGUI on hold and for example F13 on tap, which would be perfect - if I could launch Powertoys Run with a single button...

@AJolly
Copy link

AJolly commented May 25, 2024

The most seemless way to make Win open run and not the startmenu is described in this comment. Also retains windows shortcuts!
Except it shows powertoys run even when using other shortcuts. (triggers on jkeydown, not keyup)

@marypcbuk
Copy link

Without getting into any of the complex scripts and extra tools, I'm using a fairly simple workaround to get the Windows key to open PTR instead of the Start menu on my Windows 11 PC which seems to allow most of the Win key combo shortcuts to still work: I used PowerToys Keyboard Manager to remap the Windows key to send Alt-Space!

WARNING: if you hold down the Windows key and then press the rest of the keyboard shortcut like Win-R for normal Windows Run, you will see PTR and then the Run command, but if you press Win and R at the same time, you don't see PTR at all. it's a bit fiddly to do the simultaneous chords, which the more complex solutions may avoid, but I wanted to share it in case anyone else found it useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted We encourage anyone to jump in on these and submit a PR. Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
Status: ⚠️Needs Walkthrough
Development

No branches or pull requests