summaryrefslogtreecommitdiff
path: root/dm-nightlight
diff options
context:
space:
mode:
Diffstat (limited to 'dm-nightlight')
-rwxr-xr-xdm-nightlight13
1 files changed, 13 insertions, 0 deletions
diff --git a/dm-nightlight b/dm-nightlight
new file mode 100755
index 0000000..97a261e
--- /dev/null
+++ b/dm-nightlight
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+dm="dmenu -i -c -l 10"
+options="Normal\n4000k\n3300k\n2500k"
+
+
+temp=$(printf "$options" | $dm )
+
+case "$temp" in
+ Normal) redshift -x >> /dev/null;;
+ "") : ;;
+ "$temp") redshift -P -O "$(echo """$temp""" | sed 's/k//g')" >> /dev/null ;;
+esac