Redshift Plasmoid
KDE Plasma 4 Extensions
Score 76%
Description:

Redshift plasmoid provides a configuration interface and allows to start/stop Redshift daemon either manually or automatically based on the current activity.


Important note
After install, reboot or run redshiftautostart manually to start using the plasmoid.


Issue & Feature Request
Any issue or feature request can be posted to this github page:
https://github.com/simgunz/redshift-plasmoid/issues


More Info
- Redshift: http://jonls.dk/redshift/
Last changelog:

3 years ago

1.0
Improve plasmoid status behavior
Add global shortcut to toggle redshift on/off
Add Czech translation (thanks to Pavel Fric)
Add Spanish translation (thanks to ThecaTTony)
Add doxygen comments and documentation
Code cleaning

0.6.2
Minor translation fixes

0.6.1
Add trayicon status passive when not in manual mode
Update readme with Qt5 build error solution
Fix entry name error

0.6
Add osd for manual mode
Add German translation (thanks to Matthias Mail

ls960

5 years ago

installed gtk-redshift, uninstalled/reinstalled plasmoid: now right icons are in right folder, but plasmoid has as usual the big-question-mark one .. :(

Report

simgunz

5 years ago

I can't figure out what is the problem. I'll install Kubuntu in a VM to test this, but I don't have much time in these days. So you need to be patient.

Report

simgunz

5 years ago

I tried to install the plasmoid on kubuntu. It shows the icon correctly if the plasmoid is placed on the desktop, but the problem come when the plasmoid is placed on the panel. Even the network widget's icon is missing. This seems to be a kubuntu problem, because on other distro everything work. I really can't undersand where the problem comes from.
Try:
rm -r /var/tmp/kdecache-YOURUSER
kbuildsycoca4

After this I can see the icon when redshift is on, but no when is off.

Report

ls960

5 years ago

Ok, now I got the same result. (but I have no problems with other plasmoid's icons like networkmanager)

Grazie! :)

Report

wolftune

4 years ago

I installed the latest 0.51 version after installing redshift through apt and I have the icon issue again. I did not install redshift-gtk.

In the icons folder all I have is /usr/share/icons/hicolor/scalable/apps/redshift-status-manual.svgz

I took the 3 icons from my old computer redshift-status-on.svg redshift-status-off.svg and redshift.svg and copied them to my new isntall. I'll see if that does it.

Report

wolftune

4 years ago

Hi, I installed a new system with redshift and then compiled the latest 0.51 version of the plasma widget. I had the icon problem.

All I had was file:///usr/share/icons/hicolor/scalable/apps/redshift-status-manual.svgz

I moved the icons from my old system into the new one and now it works. But you should know that this didn't work right automatically.

Report

wolftune

4 years ago

Hi, I installed a new system with redshift and then compiled the latest 0.51 version of the plasma widget. The instructions didn't tell me that I needed to install g++ but once I did that it worked. But then I had the icon problem.

All I had was file:///usr/share/icons/hicolor/scalable/apps/redshift-status-manual.svgz

I moved the icons from my old system into the new one and now it works, everything is great! But you should know that this didn't work right automatically.

Report

musonio

5 years ago

I am sorry about my ignorance,
but I get the following error in Kubuntu:
________________

$ plasmapkg -i 148737-redshift-0.3.plasmoid
plasmapkg(3763)/libplasma Plasma::PackageStructurePrivate::createPackageMetadata: No metadata file in the package, expected it at: "/tmp/kde-darwin/plasmapkgYdBwM0//metadata.desktop"
plasmapkg(3763)/libplasma Plasma::Package::installPackage: "/home/darwin/.kde/share/apps/plasma/plasmoids//redshift" already exists
Falló la instalación de /mnt/sdc2/HOME/DARWIN/New/148737-redshift-0.3.plasmoid.

________________
Any help?

Report

simgunz

5 years ago

Try this:
Extract the plasmoid manually. From inside the directory just extracted do:
plasmapkg -i .

Let me know if it works.
Probably is the structure of the plasmoid that is wrong, I'll update soon.

Report

musonio

5 years ago

darwin@darwin-G31M-ES2C:/mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid$ plasmapkg -i .
plasmapkg(3115)/libplasma Plasma::Package::installPackage: "/home/darwin/.kde/share/apps/plasma/plasmoids//redshift" already exists
Falló la instalación de /mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid.



darwin@darwin-G31M-ES2C:/mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid$ cd contents/
darwin@darwin-G31M-ES2C:/mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid/contents$ plasmapkg -i .
plasmapkg(3121)/libplasma Plasma::PackageStructurePrivate::createPackageMetadata: No metadata file in the package, expected it at: "/mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid/contents//metadata.desktop"
plasmapkg(3121)/libplasma Plasma::Package::installPackage: No metadata file in package "/mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid/contents" "/mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid/contents/metadata.desktop"
Falló la instalación de /mnt/sdc2/HOME/DARWIN/New/redshift-plasmoid/contents.

Report

simgunz

5 years ago

It seems that the plasmoid is already installed.
Do this:

plasmapkg -r redshift

After that plasmapkg -i . from inside the folder contained in the zip.

(Actually you can do in one command with plasmapkg -u . but it does not work sometimes)

I'll upload a new version of the plasmoid soon with the right folders structure.

Report

musonio

5 years ago

Damn!
It seems that the first time it had actually worked. I thought that the error messages were actually mistaken.
It works great!!!.
The only problem is what ls960 informed below, i.e., no icon.
I do have redshift and gtk-redshift installed and the icons inplace, but still I get a blank square in the plasmoid.

Report

Mogger

5 years ago

I just tried it out and it seems to work perfect! In particular the process management is very reliable. Thanks for your awesome work!

Some suggestions:

1. Bug: (Same with the F.lux / Redshift plasmoid.) If you have a config file (~/.config/redshift.conf), Redshift will fail to launch (too many arguments). Would be nice if the plasmoid could detect if there's such a file.

2. Suggestion: The tooltip isn't very useful at the moment, maybe you could make the icon and text indicate the status of Redshift.

3. Suggestion: As I suggested on the other Redshift plasmoid's page - activity support! If the plasmoid could disable Redshift for some activities - e.g. Movies, Presentation, Image Manipulation - and resume it when you switch back, it would greatly enhance Redshift.

Report

simgunz

5 years ago

I chose not read the config file because if you have a plasmoid that can let you configure redshift and can store the configuration, why do you need to create a config file by hand? If you think that this feature is really important I can implement it, but I think that for the average user is unuseful.

I can improve the tooltip. Now it's primary function is to let the user know how to use the plasmoid. Suggest me what can I write in it.

I'm already thinking about activities management, because I red your post in the other page, but I need to figure out a good way to implement it. The point is that it's not a good practice to hardcode the names of the activities in the plasmoid, like "Movie", "Presenation" since in different languages they can assume different names. So I need to add a configuration option to select the activities where redshift should be turned off. I can add a new tab where it is possible to choose the activities of interest, but this make the configuration dialog complex. Any idea?

Report

Mogger

5 years ago

Well, as for now the plasmoid fails to work if you have a config file. Maybe you can use the -c argument to make Redshift ignore ~/.config/redshift.config?

Tooltip: the icon should be the same as the plasmoid (i.e. also reflect the current state) and the text could be something like

"Redshift
Click to toggle it off"

if Redshift is active, and "... toggle it on" otherwise.

For activities support, I think a new section in the configuration dialog is a good idea. I imagine it similar to the one for system tray (right click on system tray -> System Tray Settings -> Entries). However, it should list all your activities instead, and makes it possible to use special settings:

No special settings - follow the "global" settings.
Always on - Redshift is always activated when switching to this activity (you can of course toggle it off as usual). When switching back to a "No special settings" activity, Redshift returns to its previous "global" state.
Always off - Same as always on but deactivated instead.

Not sure about the wording, "Always" can be confusing, so maybe it could be something like "Activate" and "Deactivate" instead.

Report

simgunz

5 years ago

If I use the -c option I must specifiy a new configuration file, but there is no other specification file, since all the parameters are setted inside the plasmoid. A solution can be to rename redshift.conf -> redshift.conf.bak and notify the user about it.
What do you think about it?

That's a good idea for the activities. The problem is implementing it, infact it needs that the configuration dialog get the list of the activities from the system and load them, but this is impossible to do with kconfigxt and python. So there are two alternatives: rewrite the plasmoid in C++ or use the old way for the creation of the configuration dialog. I'll try to implement it.

Report

Mogger

5 years ago

Moving the config file works as well. I just tried to pass -c an empty file and it seems to work (e.g. redshift -c /dev/null -l 10:10 -v; not sure /dev/null is a smart idea though :), this solution feels "cleaner" to me since it doesn't affect the user's current configuration.

Too bad about the activities, kconfigxt and python thing. I like the script plasmoid because it's easy to install (says me who's only made a very simple binary plasmoid :D); thanks for looking into adding activity support!

Report

simgunz

5 years ago

The option -c /dev/null seems to work. I'll implement it.

Report

simgunz

5 years ago

The tooltip cannot be changed as you suggest because python plasmoid does not support this feature. The function toolTipAboutToShow is not called, because this is not implemented in KPythonPluginFactory.

Report

Mogger

5 years ago

OK, not a big deal. :)

Report

simgunz

5 years ago

Actually I find the way to adjust the tooltip.

Report

simgunz

5 years ago

A workaround you can use to use redshift with activities now is this: put the plasmoid on the desktop, then switch to the movie activity and stop the activity where you putted redshift on the desktop. This will stop redshift. It's not that comfortable and the drawback is that you can't put the plasmoid on the panel, but maybe someone can find it useful.

Report

3 years ago

1.0
Improve plasmoid status behavior
Add global shortcut to toggle redshift on/off
Add Czech translation (thanks to Pavel Fric)
Add Spanish translation (thanks to ThecaTTony)
Add doxygen comments and documentation
Code cleaning

0.6.2
Minor translation fixes

0.6.1
Add trayicon status passive when not in manual mode
Update readme with Qt5 build error solution
Fix entry name error

0.6
Add osd for manual mode
Add German translation (thanks to Matthias Mail

product-maker Lerenn Mar 09 2016

product-maker RingOV Jul 07 2015

product-maker giogziro95 Feb 19 2015

product-maker roentgen Oct 07 2014

product-maker Omega9 Sep 08 2014

product-maker jadrian Aug 25 2014

product-maker Zipristin Jul 24 2014

product-maker PVince81 Jun 24 2014

product-maker jayarmstrong Oct 28 2013

product-maker grusta May 17 2013

product-maker MatthiasM Mar 18 2013

product-maker powersack Feb 04 2013

product-maker Grobelard Aug 31 2012

product-maker skynet1248 Aug 11 2012

product-maker Deathmachine Aug 06 2012

product-maker liquidsky Jul 15 2012

product-maker addegsson Jul 13 2012

product-maker janet Jul 12 2012

product-maker pbuard Jun 06 2012

product-maker SvenArcher Jun 05 2012

product-maker pgalves Jun 02 2012

product-maker eRSZ Feb 27 2012

product-maker t3ddy Feb 07 2012

product-maker Mogger Feb 06 2012

product-maker vitoubien Feb 06 2012

product-maker dreamsoul Feb 06 2012

product-maker FraMari Feb 06 2012

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.0
updated Jul 23 2014
added Feb 06 2012
downloads today
2
page views today 11