dotfiles/home/.config/eww/scripts/nightlight
2022-11-20 03:14:18 +01:00

14 lines
278 B
Bash

#!/bin/bash
# shellcheck source=include
source "./scripts/include"
# Consider usning a file as a flag for whether nightlight is on or off
# as we might be in transition state and just killing the program might
# not be enough.
if [ "$1" = "toggle" ]; then
gammastep -x
fi