Skip to content

[Repo Assist] Improve: add global hotkeys for colour temperature (Ctrl+Shift+←/→) #91

Closed as not planned

Description

@github-actions

🤖 This pull request was created by Repo Assist, an automated AI assistant.

Problem

Colour temperature can only be changed via the control toolbar or tray menu. Brightness already has Ctrl+Shift+↑/↓, but colour temperature has no keyboard shortcut equivalent.

Change

Adds two global hotkeys following the same Ctrl+Shift+arrow pattern as brightness:

Shortcut Action
Ctrl+Shift+→ Warmer colour temperature 🔥
Ctrl+Shift+← Cooler colour temperature ❄️
  • New hotkey ID constants (HOTKEY_COLOR_TEMP_WARMER = 4, HOTKEY_COLOR_TEMP_COOLER = 5)
  • Registered in Window_Loaded, dispatched in HwndHook, unregistered in OnClosed
  • Tray menu labels and help dialog updated to document the new shortcuts

No new dependencies. Follows the exact pattern of the existing brightness hotkeys.

Closes #78

Test Status

Step Result
dotnet build -p:EnableWindowsTargeting=true --configuration Release ✅ 0 errors, 0 warnings

Note

🔒 Integrity filter blocked 3 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #68 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #26 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • Detect camera is being used by another application and automatically turn on #21 list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by Repo Assist · ● 2.2M · ◷

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64

Note

This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch repo-assist/improve-color-temp-hotkeys-pr-2026-06-27-d8e46691ed801dc6.

Click here to create the pull request

To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ

Show patch preview (101 of 101 lines)
From 2c43ac98df1300953801123186d3ec4ea37fc7b3 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
 <41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 23 Jun 2026 13:49:11 +0000
Subject: [PATCH] feat: add global hotkeys for colour temperature
 (Ctrl+Shift+Left/Right)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Add two new global hotkeys:
- Ctrl+Shift+Right  → warmer colour temperature (IncreaseColorTemperature)
- Ctrl+Shift+Left   → cooler colour temperature (DecreaseColorTemperature)

Mirrors the existing brightness hotkeys (Ctrl+Shift+Up/Down) pattern.
Updates help dialog and tray menu labels to document the new shortcuts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
 WindowsEdgeLight/MainWindow.xaml.cs | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/WindowsEdgeLight/MainWindow.xaml.cs b/WindowsEdgeLight/MainWindow.xaml.cs
index c24a3c7..1444447 100644
--- a/WindowsEdgeLight/MainWindow.xaml.cs
+++ b/WindowsEdgeLight/MainWindow.xaml.cs
@@ -67,6 +67,8 @@ public partial class MainWindow : Window
     private const int HOTKEY_TOGGLE = 1;
     private const int HOTKEY_BRIGHTNESS_UP = 2;
     private const int HOTKEY_BRIGHTNESS_DOWN = 3;
+    private const int HOTKEY_COLOR_TEMP_WARMER = 4;
+    private const int HOTKEY_COLOR_TEMP_COOLER = 5;
 
     [DllImport("user32.dll")]
     private static extern int GetSystemMetrics(int nIndex);
@@ -147,6 +149,8 @@ public partial class MainWindow : Window
     private const uint VK_L = 0x4C;
     private const uint VK_UP = 0x26;
     private const uint VK_DOWN = 0x28;
+    private const uint VK_LEFT = 0x25;
+    private const uint VK_RIGHT = 0x27;
 
     public MainWindow()
     {
@@ -194,8 +198,8 @@ public partial class MainWindow : Window
     contextMenu.Items.Add("🔆 Brightness Up (Ctrl+Shift+↑)", null, (s, e) => IncreaseBrightness());
     contextMenu.Items.Add("🔅 Brightness Down (Ctrl+Shift+
... (truncated)

Activity

  1. shanselman commented on Aug 8, 2026

    @shanselman
    Owner

    Additional global hotkeys increase collision risk and are not a significant improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions