Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Random Tint con aterm
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Sun Jul 11, 2004 7:48 pm    Post subject: [TIP] Random Tint con aterm Reply with quote

Volevo che il mio term prendesse in random diverse tint, così ho scritto queste 2 righe di codice.
Spero sia utile (in giro per il forum se ne trova uno scritto in perl, ma non mi piaceva ;))

Code:
#! /usr/bin/env python

from random import choice
from os import system

colors = ["green", "magenta", "brown", "cyan", "salmon"]

system("aterm -tint " + choice(colors))


Ovviamente aggiungete i colori che volete in colors e lo mettete in una dir eseguibile ;)
_________________
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum