Phone: +65-8585-1750

Address: 30 Holland Close, Singapore

Switch Desktop Code

Thu, Jan 4, 2007 mdda OSS Blog Comments

Switch Desktop Code

# yum install wmctrl  
# perl -MCPAN -e shell; install X11::WMCtrl  

Then use my ‘’ script to dynamically load and position sets of windows based upon the programming environment required…

       foreach my $id (keys %upd) {  
               my $win=$upd{$id};  
               print "$id -> $$win{title}\n";  
               if(exists $$ref{ws}) {  
                       system("wmctrl -i -r $id -t $$ref{ws}");  


blog comments powered by Disqus