Add 5 widgets inspired by Noctalia: activeWindow, nightLight, keyboardLayout, lockKeys, spacer

- activeWindow: shows the focused toplevel title from Quickshell.Wayland
  ToplevelManager. Left-click activates, middle-click closes, right-click
  killactive. Hidden in vertical bars to avoid title rotation noise.
- nightLight: toggles omarchy-toggle-nightlight; status detected via
  pgrep hyprsunset. Hides when hyprsunset isn't installed.
- keyboardLayout: shows current xkb layout short code, click cycles via
  hyprctl switchxkblayout. Refreshes on Hyprland activelayout events.
- lockKeys: caps/num/scroll lock indicators read from /sys/class/leds.
  Uses plain A/1/S letters; hides each indicator when off.
- spacer: configurable blank space (size) for layout tuning.

Defaults add activeWindow to the left section and nightLight to the
right section between audioPanel and brightness.
This commit is contained in:
Ryan Hughes
2026-05-14 02:21:47 -04:00
parent 55a9075415
commit a901d4a71f
7 changed files with 346 additions and 3 deletions
+6 -1
View File
@@ -274,7 +274,12 @@ ShellRoot {
"powerMenu": true,
"idleInhibitor": true,
"microphone": true,
"notificationCenter": true
"notificationCenter": true,
"activeWindow": true,
"nightLight": true,
"keyboardLayout": true,
"lockKeys": true,
"spacer": true
})
function firstPartyWidgetSource(name) {