From 493fc342caeb7c87408b7d7100cafd5bf8ed7492 Mon Sep 17 00:00:00 2001 From: Jake VanderVaate Date: Mon, 7 Mar 2022 22:08:19 -0600 Subject: added dmenu scripts --- dm-nightlight | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 dm-nightlight (limited to 'dm-nightlight') 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 -- cgit v1.2.1