Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation


ScreenControl for Flow Launcher

Brightness, contrast and HDR for every screen, from your keyboard.
Knows which screen is which, and shows it on the screen itself.

ScreenControl in Flow Launcher

Features

  • Brightness and contrast for each screen or all at once, exact (sc 50) or relative (sc +10).
  • HDR: the Windows HDR switch for every screen at once, or one screen at a time.
  • Which screen is which: screens are numbered left to right, each with its own colour, and sc id shows the number on every screen.
  • Quick actions with Shift+Enter: presets, HDR, identify, without typing.
  • Profiles (sc night, sc movie, your own) and nicknames (sc name #2 Gaming).
  • Fast and sturdy: instant results, nothing to install, restarts itself if anything goes wrong.

Installation

Requirements

  • Windows 10 or 11 with Flow Launcher (tested with Flow 2.1.3).
  • Flow's default Python setup is enough: nothing else to install.
  • External monitors need DDC/CI turned on in their own on-screen menu (it usually is). Without it, HDR and identification still work; brightness and contrast don't.

From Flow Launcher (plugin store)

Open Flow and type:

pm install ScreenControl

Available once the plugin is published in the Flow plugin store.

From a release

Install a specific release straight from Flow (all releases):

pm install https://github.com/aalbertinib/flow-launcher-screen-control/releases/download/v1.2.2/Flow.Launcher.Plugin.ScreenControl.zip

Or by hand: extract the release zip into %APPDATA%\FlowLauncher\Plugins\ScreenControl and restart Flow.

From the source code

Needs Python 3.11+ and Git. From the project folder:

python build_plugin.py install

This bundles the dependencies, installs the plugin into Flow, sets up the Ctrl+Alt+Shift+C shortcut and restarts Flow. Add --no-restart to restart Flow yourself, or --hotkey "Ctrl+Alt+F9" for another shortcut (--hotkey none for none).

After installing

  • Type sc in Flow, or press Ctrl+Alt+Shift+C (source install) to open it directly. To add or change that shortcut: Flow Settings → Hotkey → Custom Query Hotkeys, with sc as the query.
  • The keyword can be changed in Flow Settings → Plugins → ScreenControl.
  • To remove the plugin: pm uninstall ScreenControl.

Usage guide

Everything starts with sc. Words can be typed in any order and in any case (SC HDR OFF, sc C 40); only profile names are case-sensitive. sc ? lists every command with an example. Commands can be shortened to the letters that fit only one of them: sc p for profiles, sc s for settings, sc r for reset, sc ni for night, sc p save gaming. When several fit (sc n: name or night), it suggests them; a screen those letters could mean (sc r: right) is listed below the command. Picking a row with Enter runs it and keeps Flow open, so you can adjust again straight away.

sc ? lists every command with an example

Your screens

sc lists each screen with its brightness, contrast and HDR state, followed by shortcuts to every command.

Screens list

  • Screens are numbered left to right and each number has a colour, the same in Flow and on the screen.
  • sc id shows a big number on every screen for 3 seconds. Picking a screen in the list also flashes its number on it.
  • sc #2 opens everything about screen 2: brightness, contrast, HDR and identify.
  • Hover a screen for a tooltip; Ctrl+C copies its details (model, serial, connection).

A screen's number shown on the screen itself by sc id

Brightness and contrast

Type Result
sc 50 Brightness 50%: pick "all screens" or one screen
sc +10 / sc -10 Brightness up / down from the current value
sc c 70 Contrast 70% (c, con, contrast)
sc c +5 Contrast up by 5
sc b / sc c Current brightness / contrast of each screen, as bars
sc #2 30 Brightness 30% on screen 2 only

Values go from 0 to 100; 50% works too. Each row shows the current value in its bar, so screens are easy to compare before picking one.

Setting contrast: all screens or one, with current values

HDR

Type Result
sc hdr Windows HDR on/off for every HDR screen at once (like Win+Alt+B), then one row per screen
sc hdr on / sc hdr off Turn HDR on / off, all screens or one
sc #1 hdr Toggle HDR on screen 1 only

The screens flicker for a moment while Windows switches mode. Screens without HDR are listed as such.

Windows HDR switch and per-screen HDR

Pick a screen

Add any of these to a command to aim it at one screen:

  • its number: #2
  • its name, brand or nickname: lg, fq320, gaming
  • its position: left, right, top, bottom, middle, primary
  • its connection: hdmi, dp, internal

For example sc left 40, sc lg c 60, sc hdmi hdr off.

Quick actions (Shift+Enter)

On a screen, or on an "all screens" row, press Shift+Enter (or your Flow context-menu key) for presets without typing: brightness and contrast at 0 / 25 / 50 / 75 / 100% (the current one is marked), HDR on/off, and identify.

Quick actions submenu with brightness presets

Profiles

A profile sets brightness, contrast and HDR on every screen in one go.

Type Result
sc day Brightness 80% on all screens
sc night Brightness 10%, HDR off
sc movie Brightness 70%, HDR on
sc profile All profiles, with what each one would change right now (✓ active when it already matches)
sc night save Replace "night" with your current settings, showing what changes first
sc profile save gaming Create your own profile from the current settings
sc gaming Apply your own profile by its name, like the built-in ones
sc profile reset night / sc profile delete gaming Restore a default / delete your own

Saved profiles remember each screen separately. Profile names complete as you type (sc gam → sc gaming, sc profile save g offers to replace "gaming"), and names that already mean something (hdr, 50, #2...) are refused. Names are case-sensitive: Gaming and gaming are two profiles, and sc Night is not the night profile.

Undo

After a change, the refreshed list starts with a ✓ row saying what happened and what the values were before. Press Enter on it to undo: brightness, contrast, HDR, an applied profile, a saved or deleted profile, or a nickname. Several changes in a row (sc +10 three times) undo back to where they started.

Profiles with what each one sets per screen

Settings panel

sc settings (also config, panel, options) opens a window for everything that is easier with sliders than with typing:

  • Profiles, screen by screen: values for all screens, or each screen its own, and which values a profile leaves alone. Each screen shows what applying the profile would change. Create, rename, duplicate, delete, or reset a default profile.
  • Live preview: the screens follow the sliders while you edit and go back to their values when you turn it off. Try it applies the profile without saving; Use current values fills it from your screens.
  • Screens: nicknames, brightness, contrast and HDR, identify, reset communication.

Nothing to install: the window is Edge, Chrome, Brave or Vivaldi in app mode (without tabs or address bar), or a tab in your default browser if none of them is installed. It runs on this computer only, loads nothing from the internet, and goes away a minute after the window is closed.

Nicknames

Type Result
sc name #2 Gaming Screen 2 becomes "2 · Gaming (LG ULTRAGEAR)" everywhere
sc name #2 Offers to remove the nickname
sc name Lists screens to rename

A nickname follows the monitor itself (by model and serial number), even on another port. Nicknames can also be used to pick a screen: sc gaming 40.

Something wrong?

  • sc reset (also repair, fix) restarts the monitor communication and clears caches. Error rows offer it on Enter too.
  • "Brightness unavailable": enable DDC/CI in the monitor's on-screen menu; some docks, KVMs and adapters block it.
  • "The monitor answered with corrupted data": the monitor is stuck; turn it off and on with its power button.
  • If the plugin itself crashes or hangs, it restarts on its own. After repeated failures it shows "Press Enter to restart".
  • Logs: screen_control.log in %APPDATA%\FlowLauncher\Plugins\ScreenControl. Create an empty debug.flag file there for detailed logs.

Good to know

  • Values are re-read in the background every 30 seconds, so the list opens instantly. After changing a setting with the monitor's own buttons, the next keystroke shows the new value.
  • Nicknames and profiles are stored in %APPDATA%\FlowLauncher\Settings\Plugins\ScreenControl\screen_control.json and survive updates. A backup, screen_control.bak.json, sits next to it: to start over, delete both while Flow is closed.
  • Laptop built-in screens use Windows' brightness control (no contrast). This path has not been tested on real hardware yet.
  • The plugin never goes online, and nothing leaves this computer.

Credits

Inspired by ScreenBrightness by cibere, the Flow Launcher plugin that first brought monitor brightness to Flow. Built with flogin, cibere's Python framework for Flow plugins.

License

MIT. Bundled third-party code: THIRD_PARTY_NOTICES.md.

Development

python build_plugin.py install-lib
python -m unittest discover -s tests -t .
  • tools/probe.py: what Windows reports for each screen (read-only).
  • tools/rpc_harness.py: runs the plugin exactly like Flow does (--run "QUERY" N presses Enter on result N, which does change settings).
  • tools/make_icons.ps1: regenerates the icons.
  • tools/record_demo.py: re-records docs/demo.gif and the screenshots in docs/images (see docs/PUBLISHING.md).
  • Releasing and publishing to the Flow plugin store: docs/PUBLISHING.md.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages