WA2LWinTools/etc/wallpaper.domainname.cfg
WA2LWinTools/etc/wallpaper.hostname.cfg
The configuration file containing the domainname has preference over the wallpaper.cfg file, if it exists on the related host.
The configuration file containing the hostname has preference over the wallpaper.domainname.cfg file, if it exists on the related host.
The domainname is resolved from the %DOMAINNAME% and the hostname from the %COMPUTERNAME% environment variables.
The settings for the wallpaper command have to follow the section with the name [WALLPAPER] .
The file format is OPTION=VALUE
Between the OPTION , the = and the VALUE are no spaces.
You can comment out any OPTION or completely remove the related setting line to use the default settings.
Example: WALLPAPER_HTML=shark
Example: WALLPAPER_HTML=shark sharkfin rega
Default: WALLPAPER_HTML=wallpaper
Example: WALLPAPER_TIMEOUT=20000
Default: WALLPAPER_TIMEOUT=15000
Example: WALLPAPER_PICK=RANDOM
Default: WALLPAPER_PICK=ROUNDROBIN
To set the width based on the actual monitor with the variable %MONITOR_WIDTH_MONITORNUMBER% can be used. Also formulas are allowed, as:
WALLPAPER_WIDTH = ( %MONITOR_WIDTH_1% + %MONITOR_WIDTH_2% ) * 1.1
The result of a calculation is always rounded to the nearest integer value.
See section NUMERIC FUNCTIONS for an overview of functions available in formulas.
Example: WALLPAPER_WIDTH=%MONITOR_WIDTH_1%
Example: WALLPAPER_WIDTH=1600
Default: WALLPAPER_WIDTH=width of primary monitor
To set the height based on the actual monitor with the variable %MONITOR_HEIGHT_MONITORNUMBER% can be used. Also formulas are allowed, as:
WALLPAPER_HEIGHT = %MONITOR_HEIGHT_1% + 40 WALLPAPER_HEIGHT = max(%MONITOR_HEIGHT_1%,%MONITOR_HEIGHT_2%) + 40 WALLPAPER_HEIGHT = max(max(%MONITOR_HEIGHT_1%,%MONITOR_HEIGHT_2%),%MONITOR_HEIGHT_3%)) + 40
The result of a calculation is always rounded to the nearest integer value.
See section NUMERIC FUNCTIONS for an overview of functions available in formulas.
Example: WALLPAPER_HEIGHT=%MONITOR_HEIGHT_1%
Example: WALLPAPER_HEIGHT=1200
Default: WALLPAPER_HEIGHT=height of primary monitor
Example: WALLPAPER_ALIGNMENT=center
Default: WALLPAPER_ALIGNMENT=center
Example: WALLPAPER_SET=False
Default: WALLPAPER_SET=True
Example: WALLPAPER_INTERVAL=5
Default: WALLPAPER_INTERVAL=0
Example: WALLPAPER_GENERATE=False
Default: WALLPAPER_GENERATE=True
If you experience the wallpaper to disappear some time after it is set thru wallpaper, set WALLPAPER_CLEANUP=False .
Example: WALLPAPER_CLEANUP=True
Default: WALLPAPER_CLEANUP=False
Example: WALLPAPER_FORMAT=bmp
Default: WALLPAPER_FORMAT=bmp
Example: WALLPAPER_TMPDIR=%TMP%
Default: WALLPAPER_TMPDIR=var\cache\wallpaper
This setting should match the background color of the selected wallpaper to generate the impression as if the wallpaper fills always the whole screen without showing a black frame when using an external monitor having a bigger resolution as the notebook screen.
The background color of wallpapers based on lib/wallpaper.js will be automatically set to the color defined in the WALLPAPER_BGCOLOR setting.
When the setting is left empty, the desktop background is not changed.
Example: WALLPAPER_BGCOLOR=
Example: WALLPAPER_BGCOLOR=33,40,130
Default: WALLPAPER_BGCOLOR=0,118,163
If the web server defined in WEBSERVER_PING_URL cannot be reached the wallpaper is not updated.
It only makes sense to set WEBSERVER_PING_URL=True when your wallpaper uses dynamic content from the internet, as when you use WALLPAPER_HTML=webcams , WALLPAPER_HTML=porthole or WALLPAPER_HTML=window distributed with WA2L/WinTools.
Example: WALLPAPER_PING=True
Default: WALLPAPER_PING=False
If this URL cannot be reached the wallpaper is not updated. This setting has only effect, if WALLPAPER_PING=True has been set.
Depending on the setup of your network, you might have to set a proxy in proxy.cfg to reach certain web servers.
Mostly a Intranet WALLPAPER_PING_URL is sufficient to verify network connection - this to avoid to set a proxy.
Example: WALLPAPER_PING_URL=http://www.yahoo.com
Default: WALLPAPER_PING_URL=http://www.google.com
The * wildcard can be used to select multiple files and/or directories to be included.
The variables %INSTALLDRIVE% and %INSTALLDIR% can also be used to be drive letter independent.
Example: WALLPAPER_GALLERY="%INSTALLDRIVE%:\images\*.jpg" "%INSTALLDRIVE%:\fotos\*\*.jpg"
Example: WALLPAPER_GALLERY="%INSTALLDIR%\var\wallpaper\mygallery\*.jpg"
Default: WALLPAPER_GALLERY="%INSTALLDIR%\var\wallpaper\gallery\*.jpg"
Which of those functions you can really use in the context of calculating the width and height of the wallpaper image lays in your hands...
# # WA2LWinTools/wallpaper.cfg - Configuration file for wallpaper # # [00] 24.05.2011 CWa Initial Version # [09] 06.12.2014 CWa ++ # [WALLPAPER] WALLPAPER_HTML=sharkfin WALLPAPER_WIDTH=1386 WALLPAPER_HEIGHT=768 WALLPAPER_ALIGNMENT=center
# # WA2LWinTools/wallpaper.cfg - Configuration file for wallpaper # # [00] 24.05.2011 CWa Initial Version # [10] 28.11.2016 CWa ++ # [WALLPAPER] WALLPAPER_HTML=wallpaper rega shark sharkfin whale gallery full blank
This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.