summary refs log tree commit diff
path: root/.config/gammastep
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-02-23 13:34:45 +0100
committerRobert Günzler <r@gnzler.io>2021-04-26 02:09:45 +0200
commit6cb604cdeb78b151d7e179d4f34f00101c912282 (patch)
treeb7db626a911ef6c6d3d85342534bbe273f6c20c5 /.config/gammastep
parent881daf6c567da2fe91f6b4a3f74e2fce662d806a (diff)
move from redshift to gammastep
Diffstat (limited to '.config/gammastep')
-rw-r--r--.config/gammastep/config.ini18
-rwxr-xr-x.config/gammastep/hooks/notif.sh10
2 files changed, 28 insertions, 0 deletions
diff --git a/.config/gammastep/config.ini b/.config/gammastep/config.ini
new file mode 100644
index 0000000..2d08e66
--- /dev/null
+++ b/.config/gammastep/config.ini
@@ -0,0 +1,18 @@
+[redshift]
+adjustment-method=wayland
+gamma=0.9
+fade=1
+
+brightness-day=1.0
+# gamma-day=
+temp-day=6600
+
+brightness-night=1.0
+# gamma-night=
+temp-night=4100
+
+location-provider=manual
+
+[manual]
+lat=52.54
+lon=13.44
diff --git a/.config/gammastep/hooks/notif.sh b/.config/gammastep/hooks/notif.sh
new file mode 100755
index 0000000..de04d6c
--- /dev/null
+++ b/.config/gammastep/hooks/notif.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+case "$1" in
+	period-changed)
+		case "$3" in
+		transition|night)	pkill -USR2 waybar-redshift ;;
+		none|day)		pkill -USR1 waybar-redshift ;;
+		esac
+		;;
+esac