Wallpaper no Fluxbox

Publicado por Rick 24/01/2007

[ Hits: 5.119 ]

Download wall.pl




Script que muda o wallpaper no Fluxbox, você coloca ele na mesma pasta onde armazena seus wallpapers e daí basta executá-lo.

  



Esconder código-fonte

#!/usr/bin/perl

#script pra mudar wallpaper no fluxbox.
#Coloque ele na mesma pasta onde você armazena seus wallpapers e execute: perl wall.pl minutos
#por optimal, optimal2600@yahoo.com.br

if (@ARGV > 0) {$time = @ARGV[0] * 60;}
else { $time = 600; }
print "$time\n";

print "Wallpaper Automatico no Fluxbox\n";
print "Use: perl $0 minutos\n\n";
system("ls *.jpg > file.txt");
system("ls *.jpeg >> file.txt");
system("ls *.png >> file.txt");
open(IN, "<file.txt");
$x = $y = 0;
while(<IN>){
   $wall[$x]= $_;
   chomp($wall[$x]);
   $x++;$y++;
}
close(IN);
$x = 0;
for(;;) {
   sleep($time);
   system("fbsetbg $wall[$x]");
   $x++;
   if($x==$y) { $x = 0; }
}

Scripts recomendados

Calculadora com Perl com menos de 10 linhas de código

Hebraic Style

Randomize MP3

Diminuir ou aumentar o brilho de notebook

Relatórios do Sarg por grupo


  

Comentários
[1] Comentário enviado por Rafael-rs em 28/01/2007 - 17:33h

ineteresant, to trampando num script pro blackbox, vlw a ajuda ...

[2] Comentário enviado por Minions em 28/10/2020 - 00:13h

# tail -f /var/log/Xorg.0.log
[ 47580.890] Using O_TMPFILE
[ 47583.653] Using O_TMPFILE
[ 47585.674] Using O_TMPFILE
[ 47594.736] Using O_TMPFILE
[ 47625.467] Using O_TMPFILE

MUITO ........... Using O_TMPFILE


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts