Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Command to set background?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Command to set background?
Authored by: Bemopolis on Feb 02, '05 05:10:33PM
well, I'm not sure how to pull a random image from a folder in UNIX, but you can set the background image from the Terminal with the command

defaults write com.apple.Terminal BackgroundImagePath -string path-to-file.

The next terminal that opens will use the specified background image. You can of course
undo the "damage" with

defaults delete com.apple.Terminal BackgroundImagePath

for the next terminal window.
Now, I don't think I'm comfortable monkeying around with the pref file X times a day,
though, so this may not be an optimal solution. The real trick is to find how the
option-drag assigns the picture to only that window for that session. But as a
terminal-picture-of-the-day sort of thing, sure. Maybe someone more clever than I
can figure that out, as well as the way to choose a random file from a folder.

Bemopolis

[ Reply to This | # ]