Re: paging Brian Wolven
Brian Wolven <[email protected]>
| Newsgroups | gmane.comp.windows.shells.litestep |
|---|---|
| Message-ID | <[email protected]> |
Paul wrote:
> Brian Wolven wrote:
>> Hale, Paul wrote:
>>> Hey Brian, this is has been bugging me for quite a while now. In regards
>>> to your weather scripts and config from Penumbra, Can you explain why we
>>> have the volatile.rc file?
>>>
>>
>> I stuck everything that could be changed on the fly, via the popup
>> menus with xtextedit, into volatile.rc, because those settings were...
>> volatile. =) Everything in my themevars.rc had to be edited the old
>> fashioned way (you know, using a magnetized paper click and poking at
>> your HD platters...). So although both of them might be changed by the
>> user, they would only edit themevars.rc, and probably only do that
>> once. They shouldn't ever need to touch the contents of volatile.rc
>> manually, but those contents are probably changing frequently. IOW, I
>> just separated the content based on how it was used. It doesn't have
>> to be that way, but you can imagine that the possibilities of an
>> "accident" with xtextedit are likely minimized that way!
>
> True dat, true dat. However I cannot see where volatile is being
> referenced. If I moved the
>
> weatherLocation "Pikesville"
> WeatherUpdates "On"
>
> To the themevars, it did not work when I changed the XML file. I was
> tryng to trace back everywhere that volatile was refernced. I think I am
> just to scattered brained ATM to be theme-ing intelligently.
In theme.rc:
SettingsFile "$ConfigDir$volatile.rc"
In alias.rc:
*alias !reloadTEM !NetReloadModule $texteditModule$
*alias !unloadTEM !NetUnloadModule $texteditModule$
*alias !saveSetting !execute [!setEvar %1
%2][!reloadTEM][!xtextSaveEvar @$settingsFile$@ @%1@ @%2@][!unloadTEM]
So you just need to look for the !savesetting bang or $settingsfile$ to
see when volatile.rc is used. Agent Ransack is great for that, or you
could try xcal's LSTweaker. Or you could do something like this (sorry
if this is ugly, sometimes wrapping sucks ;) ) if you're running an
alternate OS but have your XP partition mounted:
brian@brian-laptop:/media/hda2/Shells/LiteStep/profiles/Brian/themes/ProjectXPC/Config$
egrep -ir "settingsfile|savesetting" *.rc
alias.rc: *alias !startup !execute
[!main$main$][!tdlb$tdlb$][!labelUpdate
metergroup][!syst$syst$][!sysi$sysi$][!modi$modi$][!metr$metr$][!labelshow
tbhdr][!labelshow bbhdr][!labelshow moveL][!labelshow moveR][!cal$cldr$
$sounds$][!weatherTimerIs$WeatherUpdates$][!fcst$fcst$
$sounds$][!cond$cond$ $sounds$][!labelHide MeterVOL][!labelShow
MeterVOL][!setEvar Easy 0][!savesetting Easy 0]
alias.rc: *alias !setThemeOpacity !execute [!saveSetting
themeOpacity %1][!popupRescan][!LabelSetAlpha mainbar %1][!LabelSetAlpha
todoLbl %1][!LabelSetAlpha systembar %1][!popupthemeReposition %2 %3
topleft][!popupthemeTogglePin]
alias.rc: *alias !setThemeGradients !execute [!saveSetting Gradients
%1][!saveSetting GradientsOn %2][!xrecycle 250]
alias.rc: *alias !setThemeShiny !execute [!saveSetting Shiny
%1][!saveSetting ShinyOn %2][!xrecycle 250]
alias.rc: *alias !saveSetting !execute [!setEvar %1
%2][!reloadTEM][!xtextSaveEvar @$settingsFile$@ @%1@ @%2@][!unloadTEM]
alias.rc: *alias !stripPath !execute [!reloadTEM][!xtextReplace
@$settingsFile$@ @(^%1 \=)(.*\\)(.*\..*\=)_@ @\1\3@][!unloadTEM]
alias.rc: *alias !stripExtn !execute [!reloadTEM][!xtextReplace
@$settingsFile$@ @(^%1 \=.*)(\..*\=)_@ @\1\=@][!unloadTEM]
alias.rc: *alias !easy0 !execute [!setEvar Easy 0][!savesetting Easy
0][!NetUnloadModule $easyMoveModule$][wscript $VBscriptsDir$popup.vbs
"Easymove is OFF"]
alias.rc: *alias !easy1 !execute [!setEvar Easy 1][!savesetting Easy
1][!NetReloadModule $easyMoveModule$][wscript $VBscriptsDir$popup.vbs
"Easymove is ON"]
alias.rc: *alias !setWallMode !execute [!saveSetting WallpaperMode
%1][!saveSetting WallpaperCode %2][!setWallStyle %2]
alias.rc: *alias !setSounds !execute [!saveSetting Sounds %1]
alias.rc: *alias !setBorderMethod !execute [!saveSetting
GlobalBorderMethod %1][!saveSetting GlobalBorderMethod_None
%2][!saveSetting GlobalBorderMethod_Bump %3][!saveSetting
GlobalBorderMethod_Etch %4][!saveSetting GlobalBorderMethod_Rais
%5][!saveSetting GlobalBorderMethod_Sunk %6][!recycle]
alias.rc: *alias !setAudio !execute [!saveSetting AudioApp
%1][!saveSetting AudioAppIsFoobar %2][!saveSetting AudioAppIsMusikCube
%3][!saveSetting AudioAppIsWinamp %4][!saveSetting AudioAppIsiTunes
%5][!saveSetting AudioAppIsQMP %6][!recycle]
alias.rc:;*alias !weatherTimerState !execute [!saveSetting
WeatherUpdates %1][!popuploc1TogglePin][!popuploc1Reposition %2 %3
topleft][!popuploc1TogglePin][!saveSetting popuploc1CurrentX
%2][!saveSetting popuploc1CurrentY %3]
alias.rc: *alias !weatherTimerState !execute [!saveSetting
WeatherUpdates %1][!reload]
alias.rc: *alias !weatherSetLocation !execute [!saveSetting
weatherLocation "%1"][!stripPath weatherLocation][!stripExtn
weatherLocation][!getWeather "%1"][!XTextReplace @$SettingsFile$@
@(^weatherText )(.*)_@ @\2@][!reload][!NetReloadModule
$timerModule$][!weatherTimerIs$WeatherUpdates$]
alias.rc: *alias !cond0 !execute [!LabelHide CurrCond][!setEvar cond
0][!savesetting cond 0][!LabelDestroy CurrCond][!sounds%1
$soundsdir$menu_close.wav]
alias.rc: *alias !cond1 !execute [!LabelCreate CurrCond][!labelShow
CurrCond][!setEvar cond 1][!savesetting cond 1][!sounds%1
$soundsdir$menu_open.wav]
alias.rc: *alias !fcst0 !execute [!LabelHide Forecast][!setEvar fcst
0][!savesetting fcst 0][!LabelDestroy Forecast][!sounds%1
$soundsdir$menu_close.wav]
alias.rc: *alias !fcst1 !execute [!LabelCreate Forecast][!labelShow
Forecast][!setEvar fcst 1][!savesetting fcst 1][!sounds%1
$soundsdir$menu_open.wav]
alias.rc: maintogl '!execute [!main"%#1-main%#"]' ;[!setevar main
%#1-main%#][!saveSetting main %#1-main%#]'
alias.rc: systtogl '!execute [!syst"%#1-syst%#"]' ;[!setevar syst
%#1-syst%#][!saveSetting syst %#1-syst%#]'
alias.rc: sysitogl '!execute [!sysi"%#1-sysi%#"][!setevar sysi
%#1-sysi%#][!saveSetting sysi %#1-sysi%#][!sounds%#Sounds%#
$soundsdir$menu_open.wav]'
alias.rc: metrtogl '!execute [!metr"%#1-metr%#"][!setevar metr
%#1-metr%#][!saveSetting metr %#1-metr%#][!sounds%#Sounds%#
$soundsdir$menu_open.wav]'
alias.rc: *alias !modiWas0 !execute [!setevar modi 1][!saveSetting modi 1]
alias.rc: *alias !modiWas1 !execute [!setevar modi 2][!saveSetting modi 2]
alias.rc: *alias !modiWas2 !execute [!setevar modi 3][!saveSetting modi 3]
alias.rc: *alias !modiWas3 !execute [!setevar modi 0][!saveSetting modi 0]
alias.rc: caltogl '!execute [!cal"%#1-cldr%#" %#sounds%#][!setevar
cldr %#1-cldr%#][!saveSetting cldr %#1-cldr%#]'
alias.rc: mailtogl '!execute [!gmf"%#1-gmfd%#" %#sounds%#][!setevar
gmfd %#1-gmfd%#][!saveSetting gmfd %#1-gmfd%#]'
hotspots.rc: mainBarOnHide !parseEvars !execute [!setevar main
0][!saveSetting main 0][!jdesk0%#syst%#][!sounds%#Sounds%#
$soundsdir$minimize.wav]
hotspots.rc: mainBarOnShow !parseEvars !execute [!setevar main
1][!saveSetting main 1][!jdesk1%#syst%#][!sounds%#Sounds%#
$soundsdir$restore.wav]
hotspots.rc: systemBarOnHide !parseEvars !execute [!setevar syst
0][!saveSetting syst 0][!jdesk%#main%#0][!sounds%#Sounds%#
$soundsdir$minimize.wav]
hotspots.rc: systemBarOnShow !parseEvars !execute [!setevar syst
1][!saveSetting syst 1][!jdesk%#main%#1][!sounds%#Sounds%#
$soundsdir$restore.wav]
themeCmds.rc: *CommandAlias settings $txtEditor$ $SettingsFile$
themeCmds.rc: *CommandAlias settail $tail$ $SettingsFile$
todo.rc: toDoLblOnMove !ParseEvars !execute [!saveSetting
toDoLblX %#toDoLblCurrentX%#][!saveSetting toDoLblY %#toDoLblCurrentY%#]
todo.rc: toDoLblOnHide !parseEvars !execute [!setevar tdlb
0][!saveSetting tdlb 0][!sounds%#Sounds%# $soundsdir$minimize.wav]
todo.rc: toDoLblOnShow !parseEvars !execute [!setevar tdlb
1][!saveSetting tdlb 1][!sounds%#Sounds%# $soundsdir$restore.wav]
weather.rc:;--- $SettingsFile$.
Mmmmm, egrep. Now you know why I aliased that puppy though, eh?
---------------------------------------------------------------------
Can't Unsubscribe? Check http://desktopian.org/listunsub.html
LS List Homepage: http://wuzzle.org/list/litestep.php
Get the LS FAQ: http://lsfaq.shellfront.org