AminetAminet
Search:
85290 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/moni/sunny.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Adjust color temperature to the daylight
Author: alforan at tin.it (Alfonso Ranieri)
Uploader:polluks+aminet sdf org (Stefan Haubenthal)
Type:util/moni
Version:0.5 (9.7.2024)
Architecture:ppc-morphos
Date:2026-05-03
URL:http://alfie.altervista.org
Download:util/moni/sunny.lha - View contents
Readme:util/moni/sunny.readme
Downloads:7

LEGAL WARNING
=============
THIS SOFTWARE AND INFORMATION ARE PROVIDED AS IS. ALL USE IS AT YOUR OWN RISK
AND NO LIABILITY OR RESPONSIBILITY IS ASSUMED. NO WARRANTIES ARE MADE.

MOTIVATION
==========
sunny is been written because I am too used to "night colors" on various
operating systems. The "default" 6500K temperature is "too much" for me.
During the day, I use a temperature of 5600K. When the sun sets, I shift
around 2300K, depending on my humor.

LIMITATIONS
===========
First of all, IMHO, gamma should be monitor property and screens that
use that monitor should inherit that. Instead on mos, gamma is applied
on each screen. That means sunny can only changes gamma on each screen.

Second, screen must be created with the attribute SA_GammaControl set to TRUE.
Workbench is not created with that attribute, so a patch to OpenScreenTagList
is needed to intercept the opening of "Workbench" and add SA_GammaControl, TRUE
to its init attributes. The patch must be applied before LoadWB is called.
Luckly, LoadWB is called in MOSSYS:S/startup-sequence after S:user-startup .
So, all you have to do is add the following two lines:

run <>NIL: C:sunny
C:WaitForPort SUNNY

at the beginnig of your S:user-startup. If you run sunny after, without having
booted with the patch active, sunny will be not able to change the screen
temperature.

Third, if Workbench is opened with SA_GammaControl set to TRUE, gamma in
Settings/screen Resolution/Edit/Gamma are not applied to the monitor.
They are saved, but you can't see what you are doing.

Forth, are the above values considered? They aren't at the moment.
intuition.library has a bug that prevents reading them. You must
wait for intuition "version>60" or "version=60 revision>40" (aka mos>3.18).

So, the initial gamma ramp is a linear "default" one. Probably it is what you
use every day, anyway.

Finally, mouse pointers: the more the color is in the "red-zone", the more
mounse pointers (any mouse pointer) will look like an alien entity. There
is nothing you can do: mouse pointers are rendered in a lower level than
screen gamma on our graphics cards. Look online to find many infos about.
Only modern graphic card could fix that.

BUGS
====
Oh dear, this is still a beta version. It works fine, but it has many things
not yet implemented. But it is "usable".

HOW TO
======
Copy sunny to C: Add the two lines as above to your S:user-startup and reboot.
Via Exchange or in a shell, open sunny interface and set your latitude and
longitude. These are in decimal form; the latitude is positive for the north
emisphere and negative for the south emisfere; the longitude is positive at east
of Greenwich and negative at west of Greenwich. These values are probably alrady
derived from the system. If you live in a small nation, you can leave them as
they are (f.e you don't live in USA, Russia, Cina, Indonesia, Brasil and so on).

Adjust the temperatures for the night time and the day time and save.
Tell me what is wrong and what to change. Of course I will not implement
stuff like geolocation.

USAGE
=====
sunny must be started early in S:user-startup

If run twice, it opens its window.
When its window is closed, all MUI resources are freed.

It's command line arguments are;
CX_PRIORITY/K/N,CX_POPKEY/K,CX_POPUP/S,SCREEN/M:

Don't use CX_POPUP in s:user-startup !!!

It's ICON tooltypes are
CX_PRIORITY=PRIO/N
CX_POPKEY=KEY
CX_POPUP
SCREENS=SCREENLIST

From version 0.5, sunny accepts a screens list at startup, f.e.
you can run sunny as
run DETACH sunny Workbench M@Muiscreen
or as a tooltype
SCRENS=Workbench:M@Muiscreen

to make sunny operates on Workbench ad Muiscreen; note that for
MUI screens, you must add M@ to the screen name.

P.S.
For translators: if you wish, you can add your name to
MSG_About_Text; to generate a sunny.ct file, just do:
make ctfile

Saluti
- alfie


Contents of util/moni/sunny.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  858    2667  32.2% -lh5- d044 Jul  9  2024 sunny/aboutclass.c
[generic]                  222     365  60.8% -lh5- beac Jul  9  2024 sunny/adjdeps.rexx
[generic]                 3387   17769  19.1% -lh5- 62c9 Jul  9  2024 sunny/appclass.c
[generic]                 1541    4331  35.6% -lh5- 9a02 Jul  9  2024 sunny/catalogs/deutsch.ct
[generic]                 1013    2196  46.1% -lh5- db5d Jul  9  2024 sunny/catalogs/Deutsch/sunny.catalog
[generic]                 1436    4164  34.5% -lh5- e386 Jul  9  2024 sunny/catalogs/italiano.ct
[generic]                  981    2126  46.1% -lh5- 5cbf Jul  9  2024 sunny/catalogs/Italiano/sunny.catalog
[generic]                 1236    2321  53.3% -lh5- d117 Jul  9  2024 sunny/Changes.txt
[generic]                 5010   12878  38.9% -lh5- d5f5 Jul  9  2024 sunny/codes.h
[generic]                 3278   11615  28.2% -lh5- b7b2 Jul  9  2024 sunny/colormap.c
[generic]                 1023    4114  24.9% -lh5- 3277 Jul  9  2024 sunny/cx.c
[generic]                 1460    4571  31.9% -lh5- dfaa Jul  9  2024 sunny/date.c
[generic]                 2008    8059  24.9% -lh5- 48c6 Jul  9  2024 sunny/gammaclass.c
[generic]                 2163    7656  28.3% -lh5- 261f Jul  9  2024 sunny/global.c
[generic]                  478    1716  27.9% -lh5- e7a5 Jul  9  2024 sunny/gui.c
[generic]                 1217    3733  32.6% -lh5- d292 Jul  9  2024 sunny/infoclass.c
[generic]                  781    2587  30.2% -lh5- 9923 Jul  9  2024 sunny/loc.c
[generic]                 2009    9720  20.7% -lh5- a9ca Jul  9  2024 sunny/loc.h
[generic]                  293     942  31.1% -lh5- 6f6d Jul  8  2024 sunny/loc_h.sd
[generic]                 1287    4450  28.9% -lh5- fd75 Jul  9  2024 sunny/macros.h
[generic]                  732    1448  50.6% -lh5- 597a Jul  9  2024 sunny/makefile
[generic]                  290    1696  17.1% -lh5- 2214 Jul  9  2024 sunny/makefile.dep
[generic]                 2074    8897  23.3% -lh5- a212 Jul  9  2024 sunny/mgroupclass.c
[generic]                 1310    7482  17.5% -lh5- 6942 Jul  9  2024 sunny/options.c
[generic]                 1421    5030  28.3% -lh5- e04b Jul  9  2024 sunny/parseargs.c
[generic]                  968    2889  33.5% -lh5- d5f3 Jul  9  2024 sunny/patch.c
[generic]                 1968    3851  51.1% -lh5- 4594 Jul  9  2024 sunny/README.txt
[generic]                 1590    6391  24.9% -lh5- afca Jul  9  2024 sunny/rx.c
[generic]                  845    3031  27.9% -lh5- 61e8 Jul  9  2024 sunny/sliderclass.c
[generic]                  953    2918  32.7% -lh5- d942 Jul  9  2024 sunny/start.c
[generic]                52837  116188  45.5% -lh5- 6bae Jul  9  2024 sunny/sunny
[generic]                 1367    7384  18.5% -lh5- 5161 Jul  9  2024 sunny/sunny.c
[generic]                  909    2913  31.2% -lh5- 3b0c Jul  9  2024 sunny/sunny.cd
[generic]                   58      78  74.4% -lh5- df29 Jul  8  2024 sunny/sunny.d
[generic]                 1856    6689  27.7% -lh5- 2c69 Jul  9  2024 sunny/sunny.h
[generic]                 5383    5383 100.0% -lh0- 968b Jul  9  2024 sunny/sunny.info
[generic]                  835    2965  28.2% -lh5- 8921 Jul  9  2024 sunny/sunny_protos.h
[generic]                  142     336  42.3% -lh5- 2901 Jul  9  2024 sunny/sunny_rev.h
[generic]                  735    2164  34.0% -lh5- 1a37 Jul  9  2024 sunny/temp.c
[generic]                 1087    7275  14.9% -lh5- db9c Jul  9  2024 sunny/timer.c
[generic]                 1269    4302  29.5% -lh5- cbdf Jul  9  2024 sunny/transitions.c
[generic]                  235     779  30.2% -lh5- 3b44 Jul  9  2024 sunny/undoc.h
[generic]                  317     803  39.5% -lh5- 9d84 Jul  9  2024 sunny/utils.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        43 files  110862  308872  35.9%            May  3 01:04
Page generated in 0.03 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>