Vendor the command set the menu and shell depend on
This commit is contained in:
Executable
+12
@@ -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
|
||||
Reference in New Issue
Block a user