Vendor the command set the menu and shell depend on

This commit is contained in:
2026-09-19 23:57:12 -04:00
parent 9501f2bb4d
commit c5434026a8
179 changed files with 12414 additions and 54 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# blob:summary=Return success if the focused or named Hyprland monitor is an Apple display.
# blob:args=[monitor]
monitor="${1:-}"
hyprctl monitors -j | jq -e --arg monitor "$monitor" '
.[]
| select(if $monitor == "" then .focused == true else .name == $monitor end)
| select(.make == "Apple Computer Inc" and (.model | test("StudioDisplay|ProDisplayXDR|Studio XDR")))
' >/dev/null