summaryrefslogtreecommitdiff
path: root/hyprsunset.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hyprsunset.sh')
-rwxr-xr-xhyprsunset.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/hyprsunset.sh b/hyprsunset.sh
index 07a5aa1..4b6e045 100755
--- a/hyprsunset.sh
+++ b/hyprsunset.sh
@@ -9,6 +9,13 @@ NORMAL_TEMP=6000
SUNRISE_HOUR=6
SUNSET_HOUR=20
+set -E
+
+trap '
+CMD="$BASH_COMMAND"
+hyprsunset &
+$BASH_COMMAND' ERR
+
apply_settings() {
current_hour=$(date +%H | sed 's/^0//')