summaryrefslogtreecommitdiff
path: root/kde-misc/plasma-redshift-control/files/plasma-redshift-control-1.0.18-reset-gamma-ramps.patch
blob: 5e2b3682213744fe4a0d83e32b4c9bae7284a746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From a26a425145120b8e7782d0225e146fcef7b0640f Mon Sep 17 00:00:00 2001
From: grmat <grmat@sub.red>
Date: Wed, 20 Jun 2018 10:14:40 +0200
Subject: [PATCH] add -P switch to one-shot redshift call

---
 package/contents/ui/main.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml
index 2ea8fd3..38d7b8a 100644
--- a/package/contents/ui/main.qml
+++ b/package/contents/ui/main.qml
@@ -67,7 +67,7 @@ Item {
     // - commands
     property string redshiftCommand: 'redshift' + locationCmdPart + modeCmdPart + ' -t ' + dayTemperature + ':' + nightTemperature + brightnessAndGamma + (smoothTransitions ? '' : ' -r')
     property string redshiftOneTimeBrightnessAndGamma: ' -b ' + (currentBrightness*0.01).toFixed(2) + ':' + (currentBrightness*0.01).toFixed(2) + ' -g ' + gammaR + ':' + gammaG + ':' + gammaB
-    property string redshiftOneTimeCommand: 'redshift -O ' + manualTemperature + redshiftOneTimeBrightnessAndGamma + ' -r'
+    property string redshiftOneTimeCommand: 'redshift -PO ' + manualTemperature + redshiftOneTimeBrightnessAndGamma + ' -r'
     property string redshiftPrintCommand: 'LANG=C ' + redshiftCommand + ' -p'
 
     property bool inTray: (plasmoid.parent === null || plasmoid.parent.objectName === 'taskItemContainer')
-- 
2.17.1