projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5dea4e8
)
activate window
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 31 Jul 2009 19:42:29 +0000
(19:42 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 31 Jul 2009 19:42:29 +0000
(19:42 +0000)
lib/PXElator/kvm.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/kvm.pm
b/lib/PXElator/kvm.pm
index
f4c2c4a
..
3054704
100644
(file)
--- a/
lib/PXElator/kvm.pm
+++ b/
lib/PXElator/kvm.pm
@@
-16,7
+16,7
@@
sub monitor {
exec "xterm -fg red -e nc $server::ip 10000";
}
-sub actions { qw/reset/ }
+sub actions { qw/reset
window
/ }
sub reset {
my $sock = IO::Socket::INET->new( $server::ip .':10000' );
@@
-24,6
+24,10
@@
sub reset {
close $sock;
}
+sub window {
+ system "xdotool windowactivate `xdotool search --class kvm`"
+}
+
use network;
sub start {