Address review on Noctalia-inspired widgets

- nightLight queries hyprctl hyprsunset temperature to detect state
  instead of pgrep, since omarchy-toggle-nightlight keeps the daemon
  running across toggles. Adds a 'toggling' busy flag so repeated
  clicks do not stack the toggle script.
- lockKeys reads each LED individually and emits 'missing' when the
  class is absent, fixing column-shift mislabels on keyboards that
  only expose a subset of the locks. Hides + stops polling when no
  LEDs are reported. Poll interval relaxed to 2s.
- activeWindow right-click now calls toplevel.close() against the
  captured window instead of dispatching killactive against whatever
  is focused at click time.
- Drop unused Common imports from activeWindow and lockKeys.
This commit is contained in:
Ryan Hughes
2026-05-14 02:21:47 -04:00
parent a901d4a71f
commit db13654815
3 changed files with 31 additions and 14 deletions
@@ -1,7 +1,6 @@
import QtQuick
import Quickshell
import Quickshell.Wayland
import "../common" as Common
Item {
id: root
@@ -60,7 +59,7 @@ Item {
if (mouse.button === Qt.MiddleButton) {
root.toplevel.close()
} else if (mouse.button === Qt.RightButton) {
if (root.bar) root.bar.run("hyprctl dispatch killactive")
root.toplevel.close()
} else {
root.toplevel.activate()
}