Skip to content

Matthias-Hermsdorf/cinnamon-sct-applet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCT Toggle

A Cinnamon Applet commonly used in Linux Mint to toggle through color temperatures.

Install from this repo

  1. Install sct with your favorite package management or by the terminal command sudo apt install sct . This command line tool sets the screen temperature easily with sct 5000
  2. Download the code from here.
  3. Copy the "[email protected]" directory to ~/.local/share/cinnamon/applets .
  4. Open the Mint Menu, search for "Applets" and open the applet configuration app.
  5. Add the applet to your screen by searching for [email protected], select it and press the + button to add it.

Install from the official repo

Go to the applets app, search sct, download the widget and activate it.

Don't forget to give a star for the applet ;-)

You have to install sct seperatly with sudo apt install sct or your favorite app store. It does not get shipped with the applet.

Usage

Color temperature steps at 4000K, 5500K and 6500K are predefined. Just click on the Applet Icon to select the next one.

You can define your favorite color steps in the applet settings by right clicking the applet and choose setup. Add up to 7 steps with Values between 1000 and 10000, where 1000 is red, 6500 is daylight and 10000 is very blue.

If the app icon is not the one you want to use, change it in the settings and select another one from the gtk icon library.

Development hints

At the moment the Applet gets developed in this Repo: https://github.com/Matthias-Hermsdorf/cinnamon-sct-applet and versions get copied to the Main repo. Perhaps I change that and use a branche in my fork.

make a soft link from the repo to ~/.locale/share/cinnamon/applets to have the code in your custom projects folder, but make it available for the cinnamon applets runtime.

After changing code restart the applet with this command:

dbus-send --session --dest=org.Cinnamon.LookingGlass 
--type=method_call /org/Cinnamon/LookingGlass org.Cinnamon.
LookingGlass.ReloadExtension string:'[email protected]' string:'APPLET'

make Strings translateable with the _ function of the translation.js After that generate a pot file through

cinnamon-xlet-makepot .

and edit the po translations with the app poedit

After modifing the po translations use

cinnamon-xlet-makepot -i .

to make the translations available in the applet. Could be necessary to reload the applet with the dbus-send command above.

Use global.log to make debug lines. Works like console.log. You can visit the log console in the looking glas. To open it use the cinnamon command opener, Alt+F2 in default, and type lg. Or make your own shortcut in the keyboard app.

About

Toggle through color temperatures by clicking on the applet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published