diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-12 14:30:10 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-12 14:30:10 +0800 |
| commit | f8a2391314432a9e9f0f5f7b79c40dba841420f2 (patch) | |
| tree | 07daf40bd4beba2978746165eb927e23f99f06c1 /hyprsunset.sh | |
| parent | 28f5b02e1e7b6a27408fbb06e4e1abe3b280f79d (diff) | |
bump
Diffstat (limited to 'hyprsunset.sh')
| -rwxr-xr-x | hyprsunset.sh | 7 |
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//') |
