A plugin for Flow Launcher that prevents your PC from sleeping, with optional display and battery safeguards. NoSleep keeps your PC awake when active without having to change your Windows power settings.
Type ns into Flow Launcher to choose how long to keep your PC awake. Press enter to activate; the first option (indefinitely) works just like the original toggle.
You can also type a custom duration directly:
| Command | Effect |
|---|---|
ns |
Show duration presets (indefinite, 30m, 1h, 2h, 8h) |
ns 3 |
Keep awake for 3 hours |
ns 45m |
Keep awake for 45 minutes |
ns 1.5 |
Keep awake for 1.5 hours (90 minutes) |
ns until 5pm |
Keep awake until a clock time |
ns 17:30 |
Keep awake until 17:30 |
ns +30m |
Extend the current timer by 30 minutes |
ns s |
Show whether NoSleep is currently on or off |
ns screen off |
Keep the PC awake but allow the display to turn off |
ns screen on |
Keep both the PC and display awake |
ns off |
Turn off NoSleep |
ns help |
Show the built-in command help page |
When NoSleep is already active, typing ns shows a "Turn off" option at the top along with options to switch to a different duration. The current mode is hidden from the list since you're already using it.
Right-click the tray icon for quick access to duration presets, display mode, and turn off. The remaining time is shown at the top of the menu and in the tooltip on hover.
Note:
The image above shows the default settings for the plugin.
Safety options include display sleep mode, low-battery auto-off, plugged-in-only mode, and turning nosleep off when Windows locks.
- Install flow launcher if you haven't already.
- Execute the following command in flow launcher query to install the plugin.
pm install NoSleep by ItxFilasor
Search for NoSleep within flow launchers plugin store
Unlike utilities that spawn a separate background process, NoSleep runs entirely within the Flow Launcher process. It calls the native Windows API function `SetThreadExecutionState` from `kernel32.dll`
on a lightweight background thread (NoSleepPowerRequestThread) to keep the system (and optionally the display) awake. Once the timer expires or NoSleep is turned off, the state is cleanly released and
the thread terminates.
NoSleep is maintained by ItxFilas. License notices are preserved in LICENSE.


