Vendor the command set the menu and shell depend on
This commit is contained in:
1 parent
9501f2bb4d
commit
c5434026a8
179 files changed
+12414
-54
No files matched your search
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