18 lines
243 B
PHP
18 lines
243 B
PHP
|
<?php
|
||
|
|
||
|
namespace NoccyLabs\X11;
|
||
|
|
||
|
class WindowSelector
|
||
|
{
|
||
|
|
||
|
public function select()
|
||
|
{
|
||
|
$id = exec("xdotool selectwindow");
|
||
|
if (is_numeric($id)) {
|
||
|
return new Window($id);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
}
|