Initial commit
This commit is contained in:
17
src/WindowSelector.php
Normal file
17
src/WindowSelector.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace NoccyLabs\X11;
|
||||
|
||||
class WindowSelector
|
||||
{
|
||||
|
||||
public function select()
|
||||
{
|
||||
$id = exec("xdotool selectwindow");
|
||||
if (is_numeric($id)) {
|
||||
return new Window($id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user