Skip to content

Commit ab5c8fe

Browse files
authored
Add primary and active methods
1 parent d746bfb commit ab5c8fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Screen.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ public function displays(): array
1818
return $this->client->get('screen/displays')->json('displays');
1919
}
2020

21+
public function primary(): object
22+
{
23+
return $this->client->get('screen/primary-display')->json('primaryDisplay');
24+
}
25+
26+
public function active(): object
27+
{
28+
return $this->client->get('screen/active')->json();
29+
}
30+
2131
/**
2232
* Returns the center of the screen where the mouse pointer is placed.
2333
*

0 commit comments

Comments
 (0)