LinHES Forums
http://forum.linhes.org/

New Theme Released : Glass-wide
http://forum.linhes.org/viewtopic.php?f=6&t=17235
Page 1 of 1

Author:  ed3120 [ Mon Nov 12, 2007 1:11 pm ]
Post subject:  New Theme Released : Glass-wide

A new theme was released yesterday entitled "Glass-wide" by the same author who created the ProjectGrayhem theme. It is a very sleek looking transparent theme that sits over a customizable background image. It's visually stunning and the ability to easily change the background image is a first for MythTV themes.

Check it out here:

http://www.mythtvthemes.co.uk/projectgrayhem-wide.shtml

Author:  Gibble [ Mon Nov 12, 2007 1:21 pm ]
Post subject: 

I saw that on the mailing list. I'm going to install it when I get home tonight, and then find a nice background for it.

Author:  thornsoft [ Mon Nov 12, 2007 1:54 pm ]
Post subject: 

The Greyhem guy has talent, for sure. I bet he'd be a good candidate for Cecil's R6 KM theme.

Author:  Gibble [ Mon Nov 12, 2007 2:02 pm ]
Post subject: 

Heck, just put a nice KM inspired background behind this glass one, and it would be perfect :)

Author:  tophee [ Mon Nov 12, 2007 2:20 pm ]
Post subject: 

The "Glass-wide" theme is sure sweet. As soon as I've reconnected my Mythbox to the network, I think I'll be using that.

Author:  knappster [ Mon Nov 12, 2007 3:01 pm ]
Post subject: 

What about those of us who don't have widescreen TVs? :P

Author:  spalVl [ Mon Nov 12, 2007 7:36 pm ]
Post subject: 

This is another great theme by Justin Hornsby

knappster wrote:
What about those of us who don't have widescreen TVs? :P


Download it modify it to make it 4:3 and send it back to Justin.

http://stealthboy.dyndns.org/~msherman/ ... howto.html

Author:  Gibble [ Wed Nov 14, 2007 4:17 pm ]
Post subject: 

Someone suggested in the mythtv-users mailing list that a script be written to select random backgrounds.

I haven't test this yet (not at my box), but I whipped up this that can be set in cron to replace the background.png nightly (I set mine to 4am since I shouldn't be watching anything at that time :p)

Code:
#!/bin/bash

# File locations
BgPath=/usr/share/mythtv/themes/glass-wide/backgrounds
BgFile=/usr/share/mythtv/themes/glass-wide/background.png
TempLog=/tmp/random.log

# Create a temporary logfile of all matches
find $BgPath -iregex ".*.png" > $TempLog

# Choose a random line number (any number from 1 to the length of the file)
LowerBound=1
RandomMax=32767
UpperBound=$(cat $TempLog | wc -l)
RandomLine=$(( $LowerBound + ($UpperBound * $RANDOM) / ($RandomMax + 1) ))

# Use sed to grab the random line
Command=$(sed -n "$RandomLine{p;q;}" "$TempLog")

# Link the file
ln -s --force $Command $BgFile

# Restart X
pkill xinit


The last line should probably changed to whatever restarts the mythfrontend, but I can't recall what that would be off the top of my head.

Edit: In fact, I'm not even sure if that's needed? Or if the background.png is reloaded on each screen change anyhow?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/