-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[New PowerToy] Launch apps / command with keyboard shortcuts #3350
Comments
Would be amazing if we can target files, allowing us to run applications but also things like scripts. 👍 |
WinHotKey is worth taking a look at for inspirations. |
Set global shortcuts for apps, folders, files, and websites, use shortcut to launch them. |
Without this feature the Keyboard Manager doesn't add much value for me. In addition to the comment about, I would love to able to use these options:
And allow me to remap default Win-key combination I never use. For example, right now |
I think a more general case would be to launch URIs with keyboard shortcuts, since it allows any of the mentioned cases. |
You can give a |
@Jay-o-Way, I tried it before, and then remapped the |
Same interface like remapping a shortcut, but instead create a new shortcut to launch a process or command or even just add an string to current open window, be it terminal window, notepad, Word, etc. This can be implemented in following way:
|
@jefflord |
@htcfreek oh, that has not been considered. However it seems that since this works:
Also, thanks for the example because I thought you might be talking about Store Apps, which, in theory can be started with PowerShell, though you need to use "Get-StartApps" and know the tricks "https://stackoverflow.com/questions/68907012/how-to-open-installed-microsoft-store-apps-from-powershell" So, I guess the answer is yes, because since there is a way to do anything from the command line, you can do that here. One thing that is planned to be added is to start the app "hidden", in case you need to use cmd or something and don't want a console to flash up. |
Needs label "Status In-progress". |
htcfreek agreed. I will attach a draft PR also, after I get all the previous commits pull into my code. Also, I got busy and sick, but don't worry, I'll continue ASAP. |
Happy to hear the progress. Looking forward to the release! |
Draft PR (#30121) is in |
This has been worked on during the 0.79.0 release cycle. |
Awesome! |
Certainly still works. And EDIT: Are you running in elevated mode? See: https://learn.microsoft.com/en-us/windows/powertoys/administrator To test this I configured this: To make sure I got an error, and I did: You can open the log to see if anything interesting is there (you might need to restart PT to flush this): %LOCALAPPDATA%\Microsoft\PowerToys\Keyboard Manager\Engine\Logs*v0.80.1**\log |
I'm on PowerToys v0.83.0 but there is no option available to launch a app or run a executable. Is this feature even available? |
Yes. You find it in the module Keyboard Manager. There you can define keyboard shortcuts to open apps. https://learn.microsoft.com/windows/powertoys/keyboard-manager#remap-a-shortcut-to-start-an-app |
Latest version has this feature yes. I've tested it myself and it works great. It's located under Keyboard Manager -> Remap a shortcut |
Thanks! I must have missed the option because I was only looking in the Dashboard. |
Can this be used to execute a powershell command? |
Yes |
Summary of the new feature/enhancement
Aside from being able to remap a keyboard shortcut to another one, it would be nice to assign shortcuts for opening applications. Example: Open Windows Terminal with
CTRL+ALT+T
.Proposed technical implementation details (optional)
Keyboard Manager already has the things needed to listen to keyboard shortcuts. Run has what's needed to launch apps.
The text was updated successfully, but these errors were encountered: