티스토리 뷰

hacking/linux&gnome

Random GDM theme

iolo 2003. 8. 18. 18:03
Posted by vms@mymail.ro on 2003-08-13 21:06:12

Here is a little BASH script that changes the GDM theme with a random one (of course with one from the /usr/share/gdm/themes - so you should keep only the themes you like). You can put it for example in /etc/cron.daily

Enjoy

(!! the last two lines are in fact a single one but ...)
#!/bin/bash

THEME_DIR=/usr/share/gdm/themes
THEMES=`ls -1 "$THEME_DIR"`
N=`echo $THEMES | wc -w`
((N=RANDOM%N))
cp /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm.conf.old
sed {s/GraphicalTheme=.*/GraphicalTheme=`echo $THEMES | cut -d ' ' -f $N`/} 
etc/X11/gdm/gdm.conf.old > /etc/X11/gdm/gdm.conf

'hacking > linux&gnome' 카테고리의 다른 글

Multisync: Synchronise Evolution installations!  (0) 2003.08.18
Transparent background images  (0) 2003.08.18
Random Background Images  (0) 2003.08.09
Installing Straw on Red Hat 8/9  (0) 2003.08.09
Theme-agnostic desktop entries  (0) 2003.08.09
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함