Adding Custom Keyboard Shortcuts with PowerToys Run Utility
The Stack Exchange Network is a collection of 183 Q&A communities, including Stack Overflow, the largest and most trusted online community for developers to learn, share their knowledge, and build their careers.
Introduction
PowerToys is an open-source suite of utilities for Windows 10, designed to increase productivity and improve the user experience. One of the most useful tools for power users is the PowerToys Run utility, which allows you to quickly search and launch programs, files, and settings on your computer. In this article, we will show you how to add custom keyboard shortcuts to PowerToys Run to further enhance its functionality.
Prerequisites
Before you begin, make sure you have the following:
- Windows 10 (version 1903 or later)
- PowerToys installed (version 0.20.0 or later)
Adding Custom Keyboard Shortcuts
To add custom keyboard shortcuts to PowerToys Run, follow these steps:
- Open PowerToys and navigate to the PowerToys Run settings.
- Click on the Custom actions tab.
- Click on the Add a custom action button.
- Enter a name for your custom action.
- Enter the command you want to run when the action is triggered.
- Assign a keyboard shortcut to the action.
- Click Save to add the custom action.
Examples
Here are some examples of custom actions you can create:
Launch a Program
To launch a program using a custom keyboard shortcut, enter the following command:
start path\to\program.exeOpen a File or Folder
To open a file or folder using a custom keyboard shortcut, enter the following command:
explorer path\to\file.txtRun a Script
To run a script using a custom keyboard shortcut, enter the following command:
powershell -ExecutionPolicy Bypass -File path\to\script.ps1PowerToys Run is a powerful tool for Windows 10 users, and adding custom keyboard shortcuts can further enhance its functionality. By following the steps outlined in this article, you can create your own custom actions and launch programs, files, and scripts with ease.