From cc6d6fcfc6e8403e87dae9f092e61f0edf8e3cc6 Mon Sep 17 00:00:00 2001 From: ryo Date: Wed, 30 Oct 2024 20:10:03 +0000 Subject: Initial commit --- bin/blind.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/blind.sh (limited to 'bin/blind.sh') diff --git a/bin/blind.sh b/bin/blind.sh new file mode 100755 index 0000000..431967c --- /dev/null +++ b/bin/blind.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env dash + +now=$(TZ=Iran date +%H) +night=21 +morning=5 + +if [ "$now" -ge "$night" ] || [ "$now" -le "$morning" ] +then + brightnessctl -q set 200 +else + brightnessctl -q set 900 +fi -- cgit v1.2.3