From 8e7b5e0a0e4d965827dccf6570edee8266c5e4b3 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 1 Sep 2024 13:36:10 +0200 Subject: [PATCH] daytime-term: Keep dark mode longer in the morning --- build-cockpit-toolbox | 2 ++ daytime-term | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index 8b7a87e..aae5c75 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -24,6 +24,8 @@ sudo dnf install -y ansible bash-completion man-db man-pages moreutils fd-find r tmt flatpak-builder flatpak-spawn \ fedpkg centpkg +sudo dnf downgrade -y neovim + # https://bugzilla.redhat.com/show_bug.cgi?id=2281714 sudo dnf install -y libglvnd-gles diff --git a/daytime-term b/daytime-term index 102e417..9d7c888 100755 --- a/daytime-term +++ b/daytime-term @@ -6,7 +6,7 @@ if [ "${1:-}" = "night" ]; then night=1 elif [ "${1:-}" = "day" ]; then night= -elif [ `date +%k` -ge 20 ] || [ `date +%k` -lt 5 ]; then +elif [ `date +%k` -ge 20 ] || [ `date +%k` -lt 7 ]; then night=1 fi -- 2.39.5