Initial commit

This commit is contained in:
2016-12-26 20:54:28 +01:00
commit f9c2f8f543
8 changed files with 259 additions and 0 deletions

17
src/WindowSelector.php Normal file
View 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;
}
}